rbawden commited on
Commit
f7c38a2
·
verified ·
1 Parent(s): a2e3a85

Update DiscEvalMT.py

Browse files
Files changed (1) hide show
  1. DiscEvalMT.py +1 -3
DiscEvalMT.py CHANGED
@@ -56,12 +56,10 @@ class DiscEvalMT(datasets.GeneratorBasedBuilder):
56
  BUILDER_CONFIGS = [
57
  DiscEvalMTConfig(
58
  evaltype='anaphora',
59
- filename='test-anaphora',
60
  version=datasets.Version('2.0.0'),
61
  ),
62
  DiscEvalMTConfig(
63
  evaltype='lexical_choice',
64
- filename='test-lexical_choice',
65
  version=datasets.Version('2.0.0'),
66
  ),
67
  ]
@@ -70,6 +68,6 @@ class DiscEvalMT(datasets.GeneratorBasedBuilder):
70
  downloaded_files = dl_manager.download_and_extract(_URLS)
71
 
72
  print(self.config.filename)
73
- return datasets.SplitGenerator(name="test", gen_kwargs={'filepath': downloaded_files['lexical_choice/eval.json']}),
74
 
75
 
 
56
  BUILDER_CONFIGS = [
57
  DiscEvalMTConfig(
58
  evaltype='anaphora',
 
59
  version=datasets.Version('2.0.0'),
60
  ),
61
  DiscEvalMTConfig(
62
  evaltype='lexical_choice',
 
63
  version=datasets.Version('2.0.0'),
64
  ),
65
  ]
 
68
  downloaded_files = dl_manager.download_and_extract(_URLS)
69
 
70
  print(self.config.filename)
71
+ return datasets.SplitGenerator(name="test", gen_kwargs={'filepath': downloaded_files['test-' + self.config.evaltype]}),
72
 
73