Update discevalmt.py
Browse files- discevalmt.py +3 -3
discevalmt.py
CHANGED
|
@@ -53,12 +53,12 @@ class DiscEvalMT(datasets.GeneratorBasedBuilder):
|
|
| 53 |
BUILDER_CONFIG_CLASS = DiscEvalMTConfig
|
| 54 |
BUILDER_CONFIGS = [
|
| 55 |
DiscEvalMTConfig(
|
| 56 |
-
|
| 57 |
filename='test-anaphora',
|
| 58 |
version=datasets.Version('2.0.0', ''),
|
| 59 |
),
|
| 60 |
DiscEvalMTConfig(
|
| 61 |
-
|
| 62 |
filename='test-lexical_choice',
|
| 63 |
version=datasets.Version('2.0.0', ''),
|
| 64 |
),
|
|
@@ -68,6 +68,6 @@ class DiscEvalMT(datasets.GeneratorBasedBuilder):
|
|
| 68 |
downloaded_files = dl_manager.download_and_extract(_URLS)
|
| 69 |
|
| 70 |
print(self.config.type)
|
| 71 |
-
return [datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={'filepath': downloaded_files[filename]}),
|
| 72 |
]
|
| 73 |
|
|
|
|
| 53 |
BUILDER_CONFIG_CLASS = DiscEvalMTConfig
|
| 54 |
BUILDER_CONFIGS = [
|
| 55 |
DiscEvalMTConfig(
|
| 56 |
+
name='anaphora',
|
| 57 |
filename='test-anaphora',
|
| 58 |
version=datasets.Version('2.0.0', ''),
|
| 59 |
),
|
| 60 |
DiscEvalMTConfig(
|
| 61 |
+
name='lexical choice',
|
| 62 |
filename='test-lexical_choice',
|
| 63 |
version=datasets.Version('2.0.0', ''),
|
| 64 |
),
|
|
|
|
| 68 |
downloaded_files = dl_manager.download_and_extract(_URLS)
|
| 69 |
|
| 70 |
print(self.config.type)
|
| 71 |
+
return [datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={'filepath': downloaded_files[self.config.filename]}),
|
| 72 |
]
|
| 73 |
|