Datasets:
Update DiaBLa.py
Browse files
DiaBLa.py
CHANGED
@@ -28,8 +28,7 @@ Machine Translation (MT) for informal, written bilingual dialogue.
|
|
28 |
'''
|
29 |
|
30 |
_URLS = {
|
31 |
-
'
|
32 |
-
'users': 'users.json'
|
33 |
}
|
34 |
|
35 |
|
@@ -87,10 +86,7 @@ class Diabla(datasets.GeneratorBasedBuilder):
|
|
87 |
def _split_generators(self, dl_manager):
|
88 |
downloaded_files = dl_manager.download_and_extract(_URLS)
|
89 |
|
90 |
-
|
91 |
-
# datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_files["train"]}),
|
92 |
-
# datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": downloaded_files["dev"]}),
|
93 |
-
# ]
|
94 |
|
95 |
def _generate_examples(self, filepath):
|
96 |
'''This function returns the examples in the raw (text) form.'''
|
|
|
28 |
'''
|
29 |
|
30 |
_URLS = {
|
31 |
+
'test': 'DiaBLa.json',
|
|
|
32 |
}
|
33 |
|
34 |
|
|
|
86 |
def _split_generators(self, dl_manager):
|
87 |
downloaded_files = dl_manager.download_and_extract(_URLS)
|
88 |
|
89 |
+
return [datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_files['test']})]
|
|
|
|
|
|
|
90 |
|
91 |
def _generate_examples(self, filepath):
|
92 |
'''This function returns the examples in the raw (text) form.'''
|