Datasets:

Multilinguality:
translation
Size Categories:
1K<n<10K
Language Creators:
crowdsourced
Annotations Creators:
expert-generated
Source Datasets:
original
Tags:
License:
rbawden commited on
Commit
5157745
1 Parent(s): 0a8ea4c

Update DiaBLa.py

Browse files
Files changed (1) hide show
  1. DiaBLa.py +13 -2
DiaBLa.py CHANGED
@@ -67,7 +67,18 @@ class Diabla(datasets.GeneratorBasedBuilder):
67
  'norm': datasets.Value('string'),
68
  'mt': datasets.Value('string'),
69
  'ref': datasets.Value('string'),
70
-
 
 
 
 
 
 
 
 
 
 
 
71
  }
72
  ),
73
  # TODO?
@@ -132,7 +143,7 @@ class Diabla(datasets.GeneratorBasedBuilder):
132
  'mt': mt_text,
133
  'id': id_,
134
  'ref': reference_text,
135
- #'utterance_meta': utterance_info
136
  }
137
 
138
  # add to history (without dialogue info and history)
 
67
  'norm': datasets.Value('string'),
68
  'mt': datasets.Value('string'),
69
  'ref': datasets.Value('string'),
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=6, names=['coherence', 'grammar', 'meaning', 'word choice', 'style', 'other'])
77
+ ]
78
+ ),
79
+ 'lang': ClassLabel(num_classes=2, names=['english', 'french']),
80
+ }
81
+ ),
82
  }
83
  ),
84
  # TODO?
 
143
  'mt': mt_text,
144
  'id': id_,
145
  'ref': reference_text,
146
+ 'utterance_meta': utterance_info
147
  }
148
 
149
  # add to history (without dialogue info and history)