Update discevalmt.py
Browse files- discevalmt.py +7 -0
discevalmt.py
CHANGED
@@ -42,6 +42,8 @@ class DiscEvalMTConfig(datasets.BuilderConfig):
|
|
42 |
"""
|
43 |
super(DiscEvalMT, self).__init__(**kwargs)
|
44 |
|
|
|
|
|
45 |
|
46 |
class DiscEvalMT(datasets.GeneratorBasedBuilder):
|
47 |
'''DiscEvalMT: English-French contrastive test set for 2 discourse phenomena (anaphora and lexical cohesion)'''
|
@@ -54,3 +56,8 @@ class DiscEvalMT(datasets.GeneratorBasedBuilder):
|
|
54 |
),
|
55 |
]
|
56 |
|
|
|
|
|
|
|
|
|
|
|
|
42 |
"""
|
43 |
super(DiscEvalMT, self).__init__(**kwargs)
|
44 |
|
45 |
+
|
46 |
+
|
47 |
|
48 |
class DiscEvalMT(datasets.GeneratorBasedBuilder):
|
49 |
'''DiscEvalMT: English-French contrastive test set for 2 discourse phenomena (anaphora and lexical cohesion)'''
|
|
|
56 |
),
|
57 |
]
|
58 |
|
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['test-anaphora']})]
|
63 |
+
|