rbawden commited on
Commit
c0173f7
1 Parent(s): 6821ffd

Update DiaBLa.py

Browse files
Files changed (1) hide show
  1. DiaBLa.py +37 -39
DiaBLa.py CHANGED
@@ -74,47 +74,45 @@ class Diabla(datasets.GeneratorBasedBuilder):
74
  ],
75
  'lang': datasets.Value("string")
76
  },
77
- 'dialogue_meta':
78
- {
79
- 'start_time': datasets.Value('string'),
80
- 'end_time' : datasets.Value('string'),
81
- 'translation_model': datasets.Value('string'),
82
- 'final_evaluation_user1': {
83
- 'style': datasets.Value("string"), # possible values =['poor', 'average', 'good', 'excellent']
84
- 'coherence': datasets.Value("string"), # possible values =['poor', 'average', 'good', 'excellent']
85
- 'grammaticality': datasets.Value("string"), # possible values =['poor', 'average', 'good', 'excellent']
86
- 'meaning': datasets.Value("string"), # possible values =['poor', 'average', 'good', 'excellent']
87
- 'word choice': datasets.Value("string"), # possible values =['poor', 'average', 'good', 'excellent']
88
- },
89
- 'final_evaluation_user2': {
90
- 'style': datasets.Value("string"), # possible values =['poor', 'average', 'good', 'excellent']
91
- 'coherence': datasets.Value("string"), # possible values =['poor', 'average', 'good', 'excellent']
92
- 'grammaticality': datasets.Value("string"), # possible values =['poor', 'average', 'good', 'excellent']
93
- 'meaning': datasets.Value("string"), # possible values =['poor', 'average', 'good', 'excellent']
94
- 'word choice': datasets.Value("string"), # possible values =['poor', 'average', 'good', 'excellent']
95
- },
96
- 'scenario': [[
97
  datasets.Value("string")
98
  ]],
99
- 'user1': {
100
- 'rolenum': datasets.Value('int64'),
101
- 'role':[
102
- datasets.Value('string')
103
- ],
104
- 'initiated_dialogue': datasets.Value('bool'),
105
- 'turn_number': datasets.Value('int64'),
106
- 'lang': datasets.Value("string"), # possible values = ['english', 'french']
107
- },
108
- 'user2':
109
- {
110
- 'rolenum': datasets.Value('int64'),
111
- 'role':[
112
- datasets.Value('string')
113
- ],
114
- 'initiated_dialogue': datasets.Value('bool'),
115
- 'turn_number': datasets.Value('int64'),
116
- 'lang': datasets.Value("string"), # possible values = ['english', 'french']
117
- }
118
  },
119
  'dialogue_history': [
120
  {
 
74
  ],
75
  'lang': datasets.Value("string")
76
  },
77
+ 'dialogue_meta': {
78
+ 'start_time': datasets.Value('string'),
79
+ 'end_time' : datasets.Value('string'),
80
+ 'translation_model': datasets.Value('string'),
81
+ 'final_evaluation_user1': {
82
+ 'style': datasets.Value("string"),
83
+ 'coherence': datasets.Value("string"),
84
+ 'grammaticality': datasets.Value("string"),
85
+ 'meaning': datasets.Value("string"),
86
+ 'word_choice': datasets.Value("string"),
87
+ },
88
+ 'final_evaluation_user2': {
89
+ 'style': datasets.Value("string"),
90
+ 'coherence': datasets.Value("string"),
91
+ 'grammaticality': datasets.Value("string"),
92
+ 'meaning': datasets.Value("string"),
93
+ 'word_choice': datasets.Value("string"),
94
+ },
95
+ 'scenario': [[
 
96
  datasets.Value("string")
97
  ]],
98
+ 'user1': {
99
+ 'rolenum': datasets.Value('int64'),
100
+ 'role':[
101
+ datasets.Value('string')
102
+ ],
103
+ 'initiated_dialogue': datasets.Value('bool')
104
+ 'turn_number': datasets.Value('int64'),
105
+ 'lang': datasets.Value("string"),
106
+ },
107
+ 'user2':{
108
+ 'rolenum': datasets.Value('int64'),
109
+ 'role':[
110
+ datasets.Value('string')
111
+ ],
112
+ 'initiated_dialogue': datasets.Value('bool'),
113
+ 'turn_number': datasets.Value('int64'),
114
+ 'lang': datasets.Value("string"),
115
+ }
 
116
  },
117
  'dialogue_history': [
118
  {