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