Datasets:
License:
Fix split generator
Browse files- wmt_vat.py +2 -1
wmt_vat.py
CHANGED
@@ -124,6 +124,7 @@ class WmtVat(datasets.GeneratorBasedBuilder):
|
|
124 |
"""Returns SplitGenerators."""
|
125 |
src_file = dl_manager.download_and_extract(_PATHS[self.config.name]["src"])
|
126 |
ref_file = dl_manager.download_and_extract(_PATHS[self.config.name]["ref"])
|
|
|
127 |
return [
|
128 |
datasets.SplitGenerator(
|
129 |
name=datasets.Split.TEST,
|
@@ -131,7 +132,7 @@ class WmtVat(datasets.GeneratorBasedBuilder):
|
|
131 |
"src_path": src_file,
|
132 |
"ref_path": ref_file,
|
133 |
"pair": self.config.name[5:].replace("_", "-"),
|
134 |
-
"meta_path":
|
135 |
},
|
136 |
)
|
137 |
]
|
|
|
124 |
"""Returns SplitGenerators."""
|
125 |
src_file = dl_manager.download_and_extract(_PATHS[self.config.name]["src"])
|
126 |
ref_file = dl_manager.download_and_extract(_PATHS[self.config.name]["ref"])
|
127 |
+
meta_file = dl_manager.download_and_extract(_METADATA_PATHS[self.config.name[:5]]) # Only wmtXX
|
128 |
return [
|
129 |
datasets.SplitGenerator(
|
130 |
name=datasets.Split.TEST,
|
|
|
132 |
"src_path": src_file,
|
133 |
"ref_path": ref_file,
|
134 |
"pair": self.config.name[5:].replace("_", "-"),
|
135 |
+
"meta_path": meta_file
|
136 |
},
|
137 |
)
|
138 |
]
|