Datasets:
Update script.py
Browse files
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/
|
| 23 |
-
"hero_hero_comic": "https://drive.google.com/
|
| 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("
|
| 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 |
-
|
| 89 |
yield id_, {
|
| 90 |
"hero1": row["hero1"],
|
| 91 |
"hero2": row["hero2"],
|
| 92 |
-
"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 |
}
|