ShimizuYuki commited on
Commit
02b0218
1 Parent(s): 95b2b6e

Update script.py

Browse files
Files changed (1) hide show
  1. script.py +5 -5
script.py CHANGED
@@ -19,8 +19,8 @@ _HOMEPAGE = "https://huggingface.co/datasets/ShimizuYuki/Marvel_network"
19
  _LICENSE = "afl-3.0"
20
 
21
  _URLS = {
22
- "adjacency_list": "https://drive.google.com/file/d/1wcINfLn25tMIVJcp6MtxSNR7QNF8GI_D/view?usp=sharing",
23
- "hero_hero_comic": "https://drive.google.com/file/d/1wel0zjoa8GvBo255dlX7cVOPF9XbvQrI/view?usp=sharing",
24
  }
25
 
26
  class Marvel(datasets.GeneratorBasedBuilder):
@@ -49,7 +49,7 @@ class Marvel(datasets.GeneratorBasedBuilder):
49
  {
50
  "hero1": datasets.Value("string"),
51
  "hero2": datasets.Value("string"),
52
- "comic": datasets.Value("int64")
53
  # These are the features of your dataset like images, labels ...
54
  }
55
  )
@@ -85,9 +85,9 @@ class Marvel(datasets.GeneratorBasedBuilder):
85
  "hero2": row["hero2"],
86
  "counts": int(row["counts"]),
87
  }
88
- elif self.config.name == "hero_hero_comic":
89
  yield id_, {
90
  "hero1": row["hero1"],
91
  "hero2": row["hero2"],
92
- "comic": int(row["comic"]),
93
  }
 
19
  _LICENSE = "afl-3.0"
20
 
21
  _URLS = {
22
+ "adjacency_list": "https://drive.google.com/uc?id=1wcINfLn25tMIVJcp6MtxSNR7QNF8GI_D",
23
+ "hero_hero_comic": "https://drive.google.com/uc?id=1wel0zjoa8GvBo255dlX7cVOPF9XbvQrI",
24
  }
25
 
26
  class Marvel(datasets.GeneratorBasedBuilder):
 
49
  {
50
  "hero1": datasets.Value("string"),
51
  "hero2": datasets.Value("string"),
52
+ "comic": datasets.Value("string")
53
  # These are the features of your dataset like images, labels ...
54
  }
55
  )
 
85
  "hero2": row["hero2"],
86
  "counts": int(row["counts"]),
87
  }
88
+ else:
89
  yield id_, {
90
  "hero1": row["hero1"],
91
  "hero2": row["hero2"],
92
+ "comic": row["comic"],
93
  }