Datasets:
fix typo
Browse files
TGIF.py
CHANGED
|
@@ -59,8 +59,10 @@ class TGIF(datasets.GeneratorBasedBuilder):
|
|
| 59 |
|
| 60 |
def _split_generators(self, dl_manager):
|
| 61 |
archive_path = dl_manager.download_and_extract(_DL_URL)
|
| 62 |
-
archive_data_path =
|
| 63 |
-
|
|
|
|
|
|
|
| 64 |
|
| 65 |
train_splits = [
|
| 66 |
datasets.SplitGenerator(
|
|
@@ -75,7 +77,7 @@ class TGIF(datasets.GeneratorBasedBuilder):
|
|
| 75 |
datasets.SplitGenerator(
|
| 76 |
name=datasets.Split.VALIDATION,
|
| 77 |
gen_kwargs={
|
| 78 |
-
"split_links_file": os.path.join(archive_data_path, "
|
| 79 |
"infos_file": infos_file
|
| 80 |
},
|
| 81 |
)
|
|
|
|
| 59 |
|
| 60 |
def _split_generators(self, dl_manager):
|
| 61 |
archive_path = dl_manager.download_and_extract(_DL_URL)
|
| 62 |
+
archive_data_path = os.path.join(
|
| 63 |
+
archive_path, "TGIF-Release-master/data/splits/")
|
| 64 |
+
infos_file = os.path.join(
|
| 65 |
+
archive_path, "TGIF-Release-master/data/tgif-v1.0.tsv")
|
| 66 |
|
| 67 |
train_splits = [
|
| 68 |
datasets.SplitGenerator(
|
|
|
|
| 77 |
datasets.SplitGenerator(
|
| 78 |
name=datasets.Split.VALIDATION,
|
| 79 |
gen_kwargs={
|
| 80 |
+
"split_links_file": os.path.join(archive_data_path, "val.txt"),
|
| 81 |
"infos_file": infos_file
|
| 82 |
},
|
| 83 |
)
|