Update discevalmt.py
Browse files- discevalmt.py +3 -3
discevalmt.py
CHANGED
@@ -26,8 +26,8 @@ English-French hand-crafted contrastive test set to test anaphora and lexical ch
|
|
26 |
'''
|
27 |
|
28 |
_URLS = {
|
29 |
-
'test-lexical_choice': 'lexical_choice.json',
|
30 |
-
'test-anaphora': 'anaphora.json'
|
31 |
}
|
32 |
|
33 |
|
@@ -59,5 +59,5 @@ class DiscEvalMT(datasets.GeneratorBasedBuilder):
|
|
59 |
def _split_generators(self, dl_manager):
|
60 |
downloaded_files = dl_manager.download_and_extract(_URLS)
|
61 |
|
62 |
-
return [datasets.SplitGenerator(name=datasets.Split.
|
63 |
|
|
|
26 |
'''
|
27 |
|
28 |
_URLS = {
|
29 |
+
'test-lexical_choice': 'eval/lexical_choice.json',
|
30 |
+
'test-anaphora': 'eval/anaphora.json'
|
31 |
}
|
32 |
|
33 |
|
|
|
59 |
def _split_generators(self, dl_manager):
|
60 |
downloaded_files = dl_manager.download_and_extract(_URLS)
|
61 |
|
62 |
+
return [datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={'filepath': downloaded_files['eval/anaphora.json']})]
|
63 |
|