rbawden commited on
Commit
8236ab8
1 Parent(s): 3d4cc61

Update DiaBLa.py

Browse files
Files changed (1) hide show
  1. DiaBLa.py +3 -3
DiaBLa.py CHANGED
@@ -51,7 +51,7 @@ class Diabla(datasets.GeneratorBasedBuilder):
51
  BUILDER_CONFIGS = [
52
  DiablaConfig(
53
  name='plain_text',
54
- version=datasets.Version('1.0.0", ''),
55
  description='Plain text',
56
  ),
57
  ]
@@ -70,7 +70,7 @@ class Diabla(datasets.GeneratorBasedBuilder):
70
  'utterance_meta': datasets.features.Sequence(
71
  {
72
  'eval-judgment': ClassLabel(num_classes=3, names=['poor', 'medium', 'perfect']),
73
- 'eval-verbatim': datasets.Value("string"),
74
  'eval-problems': datasets.features.Sequence(
75
  [
76
  ClassLabel(num_classes=5, names=['coherence', 'grammar', 'meaning', 'word choice', 'style'])
@@ -168,7 +168,7 @@ class Diabla(datasets.GeneratorBasedBuilder):
168
  def _split_generators(self, dl_manager):
169
  downloaded_files = dl_manager.download_and_extract(_URLS)
170
 
171
- return [datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_files['test']})]
172
 
173
  def _generate_examples(self, filepath):
174
  '''This function returns the examples in the raw (text) form.'''
 
51
  BUILDER_CONFIGS = [
52
  DiablaConfig(
53
  name='plain_text',
54
+ version=datasets.Version('1.0.0', ''),
55
  description='Plain text',
56
  ),
57
  ]
 
70
  'utterance_meta': datasets.features.Sequence(
71
  {
72
  'eval-judgment': ClassLabel(num_classes=3, names=['poor', 'medium', 'perfect']),
73
+ 'eval-verbatim': datasets.Value('string'),
74
  'eval-problems': datasets.features.Sequence(
75
  [
76
  ClassLabel(num_classes=5, names=['coherence', 'grammar', 'meaning', 'word choice', 'style'])
 
168
  def _split_generators(self, dl_manager):
169
  downloaded_files = dl_manager.download_and_extract(_URLS)
170
 
171
+ return [datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={'filepath': downloaded_files['test']})]
172
 
173
  def _generate_examples(self, filepath):
174
  '''This function returns the examples in the raw (text) form.'''