Datasets:
GEM
/

Modalities:
Text
Languages:
English
Libraries:
Datasets
License:
ratishsp commited on
Commit
59359ce
1 Parent(s): ebf805f

setting the type of scorers, b1, b2, b3 as list

Browse files
Files changed (1) hide show
  1. mlb_data_to_text.py +16 -24
mlb_data_to_text.py CHANGED
@@ -126,52 +126,44 @@ class MlbDataToText(datasets.GeneratorBasedBuilder):
126
  "play_by_play": [{
127
  "top": [{
128
  "runs": datasets.Value("string"),
129
- "scorers": [{
130
- datasets.Value("string"),
131
- }
132
  ],
133
  "pitcher": datasets.Value("string"),
134
  "o": datasets.Value("string"),
135
  "b": datasets.Value("string"),
136
  "s": datasets.Value("string"),
137
  "batter": datasets.Value("string"),
138
- "b1": [{
139
- datasets.Value("string"),
140
- }
141
  ],
142
- "b2": [{
143
- datasets.Value("string"),
144
- }
145
  ],
146
- "b3": [{
147
- datasets.Value("string"),
148
- }
149
  ],
150
  "event": datasets.Value("string"),
151
  }
152
  ],
153
  "bottom": [{
154
  "runs": datasets.Value("string"),
155
- "scorers": [{
156
- datasets.Value("string"),
157
- }
158
  ],
159
  "pitcher": datasets.Value("string"),
160
  "o": datasets.Value("string"),
161
  "b": datasets.Value("string"),
162
  "s": datasets.Value("string"),
163
  "batter": datasets.Value("string"),
164
- "b1": [{
165
- datasets.Value("string"),
166
- }
167
  ],
168
- "b2": [{
169
- datasets.Value("string"),
170
- }
171
  ],
172
- "b3": [{
173
- datasets.Value("string"),
174
- }
175
  ],
176
  "event": datasets.Value("string"),
177
  }
 
126
  "play_by_play": [{
127
  "top": [{
128
  "runs": datasets.Value("string"),
129
+ "scorers": [
130
+ datasets.Value("string")
 
131
  ],
132
  "pitcher": datasets.Value("string"),
133
  "o": datasets.Value("string"),
134
  "b": datasets.Value("string"),
135
  "s": datasets.Value("string"),
136
  "batter": datasets.Value("string"),
137
+ "b1": [
138
+ datasets.Value("string")
 
139
  ],
140
+ "b2": [
141
+ datasets.Value("string")
 
142
  ],
143
+ "b3": [
144
+ datasets.Value("string")
 
145
  ],
146
  "event": datasets.Value("string"),
147
  }
148
  ],
149
  "bottom": [{
150
  "runs": datasets.Value("string"),
151
+ "scorers": [
152
+ datasets.Value("string")
 
153
  ],
154
  "pitcher": datasets.Value("string"),
155
  "o": datasets.Value("string"),
156
  "b": datasets.Value("string"),
157
  "s": datasets.Value("string"),
158
  "batter": datasets.Value("string"),
159
+ "b1": [
160
+ datasets.Value("string")
 
161
  ],
162
+ "b2": [
163
+ datasets.Value("string")
 
164
  ],
165
+ "b3": [
166
+ datasets.Value("string")
 
167
  ],
168
  "event": datasets.Value("string"),
169
  }