developeranalyser
commited on
Commit
•
8c41fdd
1
Parent(s):
b2ab282
Update train_data_v3.py
Browse files- train_data_v3.py +9 -9
train_data_v3.py
CHANGED
@@ -123,7 +123,7 @@ class Fleurs(datasets.GeneratorBasedBuilder):
|
|
123 |
|
124 |
# Fleurs
|
125 |
def _split_generators(self, dl_manager):
|
126 |
-
splits = [ "train","dev"
|
127 |
|
128 |
# metadata_path = dl_manager.download_and_extract(_METADATA_URL)
|
129 |
|
@@ -157,14 +157,14 @@ class Fleurs(datasets.GeneratorBasedBuilder):
|
|
157 |
"text_paths": meta_paths.get("dev")
|
158 |
},
|
159 |
),
|
160 |
-
datasets.SplitGenerator(
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
),
|
168 |
]
|
169 |
|
170 |
def _get_data(self, lines, lang_id):
|
|
|
123 |
|
124 |
# Fleurs
|
125 |
def _split_generators(self, dl_manager):
|
126 |
+
splits = [ "train","dev"] #["train", "dev", "test"]
|
127 |
|
128 |
# metadata_path = dl_manager.download_and_extract(_METADATA_URL)
|
129 |
|
|
|
157 |
"text_paths": meta_paths.get("dev")
|
158 |
},
|
159 |
),
|
160 |
+
# datasets.SplitGenerator(
|
161 |
+
# name=datasets.Split.TEST,
|
162 |
+
# gen_kwargs={
|
163 |
+
# "local_extracted_archives": local_extracted_archives.get("test", [None] * len(meta_paths.get("test"))),
|
164 |
+
# "archive_iters": archive_iters.get("test"),
|
165 |
+
# "text_paths": meta_paths.get("test")
|
166 |
+
# },
|
167 |
+
# ),
|
168 |
]
|
169 |
|
170 |
def _get_data(self, lines, lang_id):
|