ashishu007 commited on
Commit
b4c98c4
1 Parent(s): 015f28f

add jsonl files

Browse files
Files changed (5) hide show
  1. .gitattributes +3 -0
  2. sportsett_basketball.py +322 -38
  3. test.jsonl +3 -0
  4. train.jsonl +3 -0
  5. validation.jsonl +3 -0
.gitattributes CHANGED
@@ -28,3 +28,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
28
  validation.json filter=lfs diff=lfs merge=lfs -text
29
  test.json filter=lfs diff=lfs merge=lfs -text
30
  train.json filter=lfs diff=lfs merge=lfs -text
 
 
 
 
28
  validation.json filter=lfs diff=lfs merge=lfs -text
29
  test.json filter=lfs diff=lfs merge=lfs -text
30
  train.json filter=lfs diff=lfs merge=lfs -text
31
+ test.jsonl filter=lfs diff=lfs merge=lfs -text
32
+ train.jsonl filter=lfs diff=lfs merge=lfs -text
33
+ validation.jsonl filter=lfs diff=lfs merge=lfs -text
sportsett_basketball.py CHANGED
@@ -56,9 +56,9 @@ _LICENSE = ""
56
  # The HuggingFace dataset library don't host the datasets but only point to the original files
57
  # This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
58
  _URLs = {
59
- "train": "train.json",
60
- "validation": "validation.json",
61
- "test": "test.json"
62
  }
63
 
64
 
@@ -83,7 +83,8 @@ class SportSettBasketball(datasets.GeneratorBasedBuilder):
83
  "city": datasets.Value("string"),
84
  "state": datasets.Value("string"),
85
  "attendance": datasets.Value("string"),
86
- "capacity": datasets.Value("string")
 
87
  },
88
  "teams": {
89
  "home": {
@@ -93,9 +94,7 @@ class SportSettBasketball(datasets.GeneratorBasedBuilder):
93
  "division": datasets.Value("string"),
94
  "wins": datasets.Value("string"),
95
  "losses": datasets.Value("string"),
96
- "conference_standing": datasets.Value("string"),
97
- "division_standing": datasets.Value("string"),
98
- "streak_num": datasets.Value("string"),
99
  "game_number": datasets.Value("string"),
100
  "previous_game_id": datasets.Value("string"),
101
  "next_game_id": datasets.Value("string"),
@@ -103,29 +102,167 @@ class SportSettBasketball(datasets.GeneratorBasedBuilder):
103
  "game": {
104
  "FG3A": datasets.Value("string"),
105
  "FG3M": datasets.Value("string"),
 
106
  "FGA": datasets.Value("string"),
107
  "FGM": datasets.Value("string"),
 
108
  "FTA": datasets.Value("string"),
109
  "FTM": datasets.Value("string"),
 
 
 
 
 
 
 
 
110
  "PF": datasets.Value("string"),
 
 
 
 
 
 
 
 
 
 
 
 
 
111
  "DREB": datasets.Value("string"),
112
  "OREB": datasets.Value("string"),
 
113
  "BLK": datasets.Value("string"),
114
  "AST": datasets.Value("string"),
115
  "STL": datasets.Value("string"),
116
  "TOV": datasets.Value("string"),
117
  "PTS": datasets.Value("string"),
118
- "SEC": datasets.Value("string")
119
  },
120
- "H1": {},
121
- "H2": {},
122
- "Q1": {},
123
- "Q2": {},
124
- "Q3": {},
125
- "Q4": {},
126
- "OT": {}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
127
  },
128
- "box_score": [ {
 
129
  "first_name": datasets.Value("string"),
130
  "last_name": datasets.Value("string"),
131
  "name": datasets.Value("string"),
@@ -133,12 +270,16 @@ class SportSettBasketball(datasets.GeneratorBasedBuilder):
133
  "MIN": datasets.Value("string"),
134
  "FGM": datasets.Value("string"),
135
  "FGA": datasets.Value("string"),
 
136
  "FG3M": datasets.Value("string"),
137
  "FG3A": datasets.Value("string"),
 
138
  "FTM": datasets.Value("string"),
139
  "FTA": datasets.Value("string"),
 
140
  "OREB": datasets.Value("string"),
141
  "DREB": datasets.Value("string"),
 
142
  "AST": datasets.Value("string"),
143
  "STL": datasets.Value("string"),
144
  "BLK": datasets.Value("string"),
@@ -146,6 +287,7 @@ class SportSettBasketball(datasets.GeneratorBasedBuilder):
146
  "PF": datasets.Value("string"),
147
  "PTS": datasets.Value("string"),
148
  "+/-": datasets.Value("string"),
 
149
  }
150
  ],
151
  "next_game": {
@@ -167,9 +309,7 @@ class SportSettBasketball(datasets.GeneratorBasedBuilder):
167
  "division": datasets.Value("string"),
168
  "wins": datasets.Value("string"),
169
  "losses": datasets.Value("string"),
170
- "conference_standing": datasets.Value("string"),
171
- "division_standing": datasets.Value("string"),
172
- "streak_num": datasets.Value("string"),
173
  "game_number": datasets.Value("string"),
174
  "previous_game_id": datasets.Value("string"),
175
  "next_game_id": datasets.Value("string"),
@@ -177,29 +317,166 @@ class SportSettBasketball(datasets.GeneratorBasedBuilder):
177
  "game": {
178
  "FG3A": datasets.Value("string"),
179
  "FG3M": datasets.Value("string"),
 
180
  "FGA": datasets.Value("string"),
181
  "FGM": datasets.Value("string"),
 
182
  "FTA": datasets.Value("string"),
183
  "FTM": datasets.Value("string"),
 
 
 
 
 
 
 
 
184
  "PF": datasets.Value("string"),
 
 
 
 
 
 
 
 
 
 
 
 
 
185
  "DREB": datasets.Value("string"),
186
  "OREB": datasets.Value("string"),
 
187
  "BLK": datasets.Value("string"),
188
  "AST": datasets.Value("string"),
189
  "STL": datasets.Value("string"),
190
  "TOV": datasets.Value("string"),
191
  "PTS": datasets.Value("string"),
192
- "SEC": datasets.Value("string")
193
  },
194
- "H1": {},
195
- "H2": {},
196
- "Q1": {},
197
- "Q2": {},
198
- "Q3": {},
199
- "Q4": {},
200
- "OT": {}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
201
  },
202
- "box_score": [
203
  {
204
  "first_name": datasets.Value("string"),
205
  "last_name": datasets.Value("string"),
@@ -208,12 +485,16 @@ class SportSettBasketball(datasets.GeneratorBasedBuilder):
208
  "MIN": datasets.Value("string"),
209
  "FGM": datasets.Value("string"),
210
  "FGA": datasets.Value("string"),
 
211
  "FG3M": datasets.Value("string"),
212
  "FG3A": datasets.Value("string"),
 
213
  "FTM": datasets.Value("string"),
214
  "FTA": datasets.Value("string"),
 
215
  "OREB": datasets.Value("string"),
216
  "DREB": datasets.Value("string"),
 
217
  "AST": datasets.Value("string"),
218
  "STL": datasets.Value("string"),
219
  "BLK": datasets.Value("string"),
@@ -221,8 +502,9 @@ class SportSettBasketball(datasets.GeneratorBasedBuilder):
221
  "PF": datasets.Value("string"),
222
  "PTS": datasets.Value("string"),
223
  "+/-": datasets.Value("string"),
 
224
  }
225
- ],
226
  "next_game": {
227
  "day": datasets.Value("string"),
228
  "month": datasets.Value("string"),
@@ -291,12 +573,14 @@ class SportSettBasketball(datasets.GeneratorBasedBuilder):
291
  # This method handles input defined in _split_generators to yield (key, example) tuples from the dataset.
292
  # The `key` is here for legacy reason (tfds) and is not important in itself.
293
 
294
- js = json.load(open(filepath, encoding="utf-8"))
295
- for id_, data in enumerate(js):
296
- yield id_, {
297
- "sportsett_id": data["sportsett_id"],
298
- "gem_id": data["gem_id"],
299
- "game": data["game"],
300
- "teams": data["teams"],
301
- "summaries": data["summaries"],
302
- }
 
 
 
56
  # The HuggingFace dataset library don't host the datasets but only point to the original files
57
  # This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
58
  _URLs = {
59
+ "train": "train.jsonl",
60
+ "validation": "validation.jsonl",
61
+ "test": "test.jsonl"
62
  }
63
 
64
 
 
83
  "city": datasets.Value("string"),
84
  "state": datasets.Value("string"),
85
  "attendance": datasets.Value("string"),
86
+ "capacity": datasets.Value("string"),
87
+ "game_id": datasets.Value("string")
88
  },
89
  "teams": {
90
  "home": {
 
94
  "division": datasets.Value("string"),
95
  "wins": datasets.Value("string"),
96
  "losses": datasets.Value("string"),
97
+ "conference_standing": datasets.Value("int32"),
 
 
98
  "game_number": datasets.Value("string"),
99
  "previous_game_id": datasets.Value("string"),
100
  "next_game_id": datasets.Value("string"),
 
102
  "game": {
103
  "FG3A": datasets.Value("string"),
104
  "FG3M": datasets.Value("string"),
105
+ "FG3_PCT": datasets.Value("string"),
106
  "FGA": datasets.Value("string"),
107
  "FGM": datasets.Value("string"),
108
+ "FG_PCT": datasets.Value("string"),
109
  "FTA": datasets.Value("string"),
110
  "FTM": datasets.Value("string"),
111
+ "FT_PCT": datasets.Value("string"),
112
+ "DREB": datasets.Value("string"),
113
+ "OREB": datasets.Value("string"),
114
+ "TREB": datasets.Value("string"),
115
+ "BLK": datasets.Value("string"),
116
+ "AST": datasets.Value("string"),
117
+ "STL": datasets.Value("string"),
118
+ "TOV": datasets.Value("string"),
119
  "PF": datasets.Value("string"),
120
+ "PTS": datasets.Value("string"),
121
+ "MIN": datasets.Value("string")
122
+ },
123
+ "H1": {
124
+ "FG3A": datasets.Value("string"),
125
+ "FG3M": datasets.Value("string"),
126
+ "FG3_PCT": datasets.Value("string"),
127
+ "FGA": datasets.Value("string"),
128
+ "FGM": datasets.Value("string"),
129
+ "FG_PCT": datasets.Value("string"),
130
+ "FTA": datasets.Value("string"),
131
+ "FTM": datasets.Value("string"),
132
+ "FT_PCT": datasets.Value("string"),
133
  "DREB": datasets.Value("string"),
134
  "OREB": datasets.Value("string"),
135
+ "TREB": datasets.Value("string"),
136
  "BLK": datasets.Value("string"),
137
  "AST": datasets.Value("string"),
138
  "STL": datasets.Value("string"),
139
  "TOV": datasets.Value("string"),
140
  "PTS": datasets.Value("string"),
141
+ "MIN": datasets.Value("string")
142
  },
143
+ "H2": {
144
+ "FG3A": datasets.Value("string"),
145
+ "FG3M": datasets.Value("string"),
146
+ "FG3_PCT": datasets.Value("string"),
147
+ "FGA": datasets.Value("string"),
148
+ "FGM": datasets.Value("string"),
149
+ "FG_PCT": datasets.Value("string"),
150
+ "FTA": datasets.Value("string"),
151
+ "FTM": datasets.Value("string"),
152
+ "FT_PCT": datasets.Value("string"),
153
+ "DREB": datasets.Value("string"),
154
+ "OREB": datasets.Value("string"),
155
+ "TREB": datasets.Value("string"),
156
+ "BLK": datasets.Value("string"),
157
+ "AST": datasets.Value("string"),
158
+ "STL": datasets.Value("string"),
159
+ "TOV": datasets.Value("string"),
160
+ "PTS": datasets.Value("string"),
161
+ "MIN": datasets.Value("string")
162
+ },
163
+ "Q1": {
164
+ "FG3A": datasets.Value("string"),
165
+ "FG3M": datasets.Value("string"),
166
+ "FG3_PCT": datasets.Value("string"),
167
+ "FGA": datasets.Value("string"),
168
+ "FGM": datasets.Value("string"),
169
+ "FG_PCT": datasets.Value("string"),
170
+ "FTA": datasets.Value("string"),
171
+ "FTM": datasets.Value("string"),
172
+ "FT_PCT": datasets.Value("string"),
173
+ "DREB": datasets.Value("string"),
174
+ "OREB": datasets.Value("string"),
175
+ "TREB": datasets.Value("string"),
176
+ "BLK": datasets.Value("string"),
177
+ "AST": datasets.Value("string"),
178
+ "STL": datasets.Value("string"),
179
+ "TOV": datasets.Value("string"),
180
+ "PTS": datasets.Value("string"),
181
+ "MIN": datasets.Value("string")
182
+ },
183
+ "Q2": {
184
+ "FG3A": datasets.Value("string"),
185
+ "FG3M": datasets.Value("string"),
186
+ "FG3_PCT": datasets.Value("string"),
187
+ "FGA": datasets.Value("string"),
188
+ "FGM": datasets.Value("string"),
189
+ "FG_PCT": datasets.Value("string"),
190
+ "FTA": datasets.Value("string"),
191
+ "FTM": datasets.Value("string"),
192
+ "FT_PCT": datasets.Value("string"),
193
+ "DREB": datasets.Value("string"),
194
+ "OREB": datasets.Value("string"),
195
+ "TREB": datasets.Value("string"),
196
+ "BLK": datasets.Value("string"),
197
+ "AST": datasets.Value("string"),
198
+ "STL": datasets.Value("string"),
199
+ "TOV": datasets.Value("string"),
200
+ "PTS": datasets.Value("string"),
201
+ "MIN": datasets.Value("string")
202
+ },
203
+ "Q3": {
204
+ "FG3A": datasets.Value("string"),
205
+ "FG3M": datasets.Value("string"),
206
+ "FG3_PCT": datasets.Value("string"),
207
+ "FGA": datasets.Value("string"),
208
+ "FGM": datasets.Value("string"),
209
+ "FG_PCT": datasets.Value("string"),
210
+ "FTA": datasets.Value("string"),
211
+ "FTM": datasets.Value("string"),
212
+ "FT_PCT": datasets.Value("string"),
213
+ "DREB": datasets.Value("string"),
214
+ "OREB": datasets.Value("string"),
215
+ "TREB": datasets.Value("string"),
216
+ "BLK": datasets.Value("string"),
217
+ "AST": datasets.Value("string"),
218
+ "STL": datasets.Value("string"),
219
+ "TOV": datasets.Value("string"),
220
+ "PTS": datasets.Value("string"),
221
+ "MIN": datasets.Value("string")
222
+ },
223
+ "Q4": {
224
+ "FG3A": datasets.Value("string"),
225
+ "FG3M": datasets.Value("string"),
226
+ "FG3_PCT": datasets.Value("string"),
227
+ "FGA": datasets.Value("string"),
228
+ "FGM": datasets.Value("string"),
229
+ "FG_PCT": datasets.Value("string"),
230
+ "FTA": datasets.Value("string"),
231
+ "FTM": datasets.Value("string"),
232
+ "FT_PCT": datasets.Value("string"),
233
+ "DREB": datasets.Value("string"),
234
+ "OREB": datasets.Value("string"),
235
+ "TREB": datasets.Value("string"),
236
+ "BLK": datasets.Value("string"),
237
+ "AST": datasets.Value("string"),
238
+ "STL": datasets.Value("string"),
239
+ "TOV": datasets.Value("string"),
240
+ "PTS": datasets.Value("string"),
241
+ "MIN": datasets.Value("string")
242
+ },
243
+ "OT": {
244
+ "FG3A": datasets.Value("string"),
245
+ "FG3M": datasets.Value("string"),
246
+ "FG3_PCT": datasets.Value("string"),
247
+ "FGA": datasets.Value("string"),
248
+ "FGM": datasets.Value("string"),
249
+ "FG_PCT": datasets.Value("string"),
250
+ "FTA": datasets.Value("string"),
251
+ "FTM": datasets.Value("string"),
252
+ "FT_PCT": datasets.Value("string"),
253
+ "DREB": datasets.Value("string"),
254
+ "OREB": datasets.Value("string"),
255
+ "TREB": datasets.Value("string"),
256
+ "BLK": datasets.Value("string"),
257
+ "AST": datasets.Value("string"),
258
+ "STL": datasets.Value("string"),
259
+ "TOV": datasets.Value("string"),
260
+ "PTS": datasets.Value("string"),
261
+ "MIN": datasets.Value("string")
262
+ }
263
  },
264
+ "box_score": [
265
+ {
266
  "first_name": datasets.Value("string"),
267
  "last_name": datasets.Value("string"),
268
  "name": datasets.Value("string"),
 
270
  "MIN": datasets.Value("string"),
271
  "FGM": datasets.Value("string"),
272
  "FGA": datasets.Value("string"),
273
+ "FG_PCT": datasets.Value("string"),
274
  "FG3M": datasets.Value("string"),
275
  "FG3A": datasets.Value("string"),
276
+ "FG3_PCT": datasets.Value("string"),
277
  "FTM": datasets.Value("string"),
278
  "FTA": datasets.Value("string"),
279
+ "FT_PCT": datasets.Value("string"),
280
  "OREB": datasets.Value("string"),
281
  "DREB": datasets.Value("string"),
282
+ "TREB": datasets.Value("string"),
283
  "AST": datasets.Value("string"),
284
  "STL": datasets.Value("string"),
285
  "BLK": datasets.Value("string"),
 
287
  "PF": datasets.Value("string"),
288
  "PTS": datasets.Value("string"),
289
  "+/-": datasets.Value("string"),
290
+ "DOUBLE": datasets.Value("string")
291
  }
292
  ],
293
  "next_game": {
 
309
  "division": datasets.Value("string"),
310
  "wins": datasets.Value("string"),
311
  "losses": datasets.Value("string"),
312
+ "conference_standing": datasets.Value("int32"),
 
 
313
  "game_number": datasets.Value("string"),
314
  "previous_game_id": datasets.Value("string"),
315
  "next_game_id": datasets.Value("string"),
 
317
  "game": {
318
  "FG3A": datasets.Value("string"),
319
  "FG3M": datasets.Value("string"),
320
+ "FG3_PCT": datasets.Value("string"),
321
  "FGA": datasets.Value("string"),
322
  "FGM": datasets.Value("string"),
323
+ "FG_PCT": datasets.Value("string"),
324
  "FTA": datasets.Value("string"),
325
  "FTM": datasets.Value("string"),
326
+ "FT_PCT": datasets.Value("string"),
327
+ "DREB": datasets.Value("string"),
328
+ "OREB": datasets.Value("string"),
329
+ "TREB": datasets.Value("string"),
330
+ "BLK": datasets.Value("string"),
331
+ "AST": datasets.Value("string"),
332
+ "STL": datasets.Value("string"),
333
+ "TOV": datasets.Value("string"),
334
  "PF": datasets.Value("string"),
335
+ "PTS": datasets.Value("string"),
336
+ "MIN": datasets.Value("string")
337
+ },
338
+ "H1": {
339
+ "FG3A": datasets.Value("string"),
340
+ "FG3M": datasets.Value("string"),
341
+ "FG3_PCT": datasets.Value("string"),
342
+ "FGA": datasets.Value("string"),
343
+ "FGM": datasets.Value("string"),
344
+ "FG_PCT": datasets.Value("string"),
345
+ "FTA": datasets.Value("string"),
346
+ "FTM": datasets.Value("string"),
347
+ "FT_PCT": datasets.Value("string"),
348
  "DREB": datasets.Value("string"),
349
  "OREB": datasets.Value("string"),
350
+ "TREB": datasets.Value("string"),
351
  "BLK": datasets.Value("string"),
352
  "AST": datasets.Value("string"),
353
  "STL": datasets.Value("string"),
354
  "TOV": datasets.Value("string"),
355
  "PTS": datasets.Value("string"),
356
+ "MIN": datasets.Value("string")
357
  },
358
+ "H2": {
359
+ "FG3A": datasets.Value("string"),
360
+ "FG3M": datasets.Value("string"),
361
+ "FG3_PCT": datasets.Value("string"),
362
+ "FGA": datasets.Value("string"),
363
+ "FGM": datasets.Value("string"),
364
+ "FG_PCT": datasets.Value("string"),
365
+ "FTA": datasets.Value("string"),
366
+ "FTM": datasets.Value("string"),
367
+ "FT_PCT": datasets.Value("string"),
368
+ "DREB": datasets.Value("string"),
369
+ "OREB": datasets.Value("string"),
370
+ "TREB": datasets.Value("string"),
371
+ "BLK": datasets.Value("string"),
372
+ "AST": datasets.Value("string"),
373
+ "STL": datasets.Value("string"),
374
+ "TOV": datasets.Value("string"),
375
+ "PTS": datasets.Value("string"),
376
+ "MIN": datasets.Value("string")
377
+ },
378
+ "Q1": {
379
+ "FG3A": datasets.Value("string"),
380
+ "FG3M": datasets.Value("string"),
381
+ "FG3_PCT": datasets.Value("string"),
382
+ "FGA": datasets.Value("string"),
383
+ "FGM": datasets.Value("string"),
384
+ "FG_PCT": datasets.Value("string"),
385
+ "FTA": datasets.Value("string"),
386
+ "FTM": datasets.Value("string"),
387
+ "FT_PCT": datasets.Value("string"),
388
+ "DREB": datasets.Value("string"),
389
+ "OREB": datasets.Value("string"),
390
+ "TREB": datasets.Value("string"),
391
+ "BLK": datasets.Value("string"),
392
+ "AST": datasets.Value("string"),
393
+ "STL": datasets.Value("string"),
394
+ "TOV": datasets.Value("string"),
395
+ "PTS": datasets.Value("string"),
396
+ "MIN": datasets.Value("string")
397
+ },
398
+ "Q2": {
399
+ "FG3A": datasets.Value("string"),
400
+ "FG3M": datasets.Value("string"),
401
+ "FG3_PCT": datasets.Value("string"),
402
+ "FGA": datasets.Value("string"),
403
+ "FGM": datasets.Value("string"),
404
+ "FG_PCT": datasets.Value("string"),
405
+ "FTA": datasets.Value("string"),
406
+ "FTM": datasets.Value("string"),
407
+ "FT_PCT": datasets.Value("string"),
408
+ "DREB": datasets.Value("string"),
409
+ "OREB": datasets.Value("string"),
410
+ "TREB": datasets.Value("string"),
411
+ "BLK": datasets.Value("string"),
412
+ "AST": datasets.Value("string"),
413
+ "STL": datasets.Value("string"),
414
+ "TOV": datasets.Value("string"),
415
+ "PTS": datasets.Value("string"),
416
+ "MIN": datasets.Value("string")
417
+ },
418
+ "Q3": {
419
+ "FG3A": datasets.Value("string"),
420
+ "FG3M": datasets.Value("string"),
421
+ "FG3_PCT": datasets.Value("string"),
422
+ "FGA": datasets.Value("string"),
423
+ "FGM": datasets.Value("string"),
424
+ "FG_PCT": datasets.Value("string"),
425
+ "FTA": datasets.Value("string"),
426
+ "FTM": datasets.Value("string"),
427
+ "FT_PCT": datasets.Value("string"),
428
+ "DREB": datasets.Value("string"),
429
+ "OREB": datasets.Value("string"),
430
+ "TREB": datasets.Value("string"),
431
+ "BLK": datasets.Value("string"),
432
+ "AST": datasets.Value("string"),
433
+ "STL": datasets.Value("string"),
434
+ "TOV": datasets.Value("string"),
435
+ "PTS": datasets.Value("string"),
436
+ "MIN": datasets.Value("string")
437
+ },
438
+ "Q4": {
439
+ "FG3A": datasets.Value("string"),
440
+ "FG3M": datasets.Value("string"),
441
+ "FG3_PCT": datasets.Value("string"),
442
+ "FGA": datasets.Value("string"),
443
+ "FGM": datasets.Value("string"),
444
+ "FG_PCT": datasets.Value("string"),
445
+ "FTA": datasets.Value("string"),
446
+ "FTM": datasets.Value("string"),
447
+ "FT_PCT": datasets.Value("string"),
448
+ "DREB": datasets.Value("string"),
449
+ "OREB": datasets.Value("string"),
450
+ "TREB": datasets.Value("string"),
451
+ "BLK": datasets.Value("string"),
452
+ "AST": datasets.Value("string"),
453
+ "STL": datasets.Value("string"),
454
+ "TOV": datasets.Value("string"),
455
+ "PTS": datasets.Value("string"),
456
+ "MIN": datasets.Value("string")
457
+ },
458
+ "OT": {
459
+ "FG3A": datasets.Value("string"),
460
+ "FG3M": datasets.Value("string"),
461
+ "FG3_PCT": datasets.Value("string"),
462
+ "FGA": datasets.Value("string"),
463
+ "FGM": datasets.Value("string"),
464
+ "FG_PCT": datasets.Value("string"),
465
+ "FTA": datasets.Value("string"),
466
+ "FTM": datasets.Value("string"),
467
+ "FT_PCT": datasets.Value("string"),
468
+ "DREB": datasets.Value("string"),
469
+ "OREB": datasets.Value("string"),
470
+ "TREB": datasets.Value("string"),
471
+ "BLK": datasets.Value("string"),
472
+ "AST": datasets.Value("string"),
473
+ "STL": datasets.Value("string"),
474
+ "TOV": datasets.Value("string"),
475
+ "PTS": datasets.Value("string"),
476
+ "MIN": datasets.Value("string")
477
+ }
478
  },
479
+ "box_score": [
480
  {
481
  "first_name": datasets.Value("string"),
482
  "last_name": datasets.Value("string"),
 
485
  "MIN": datasets.Value("string"),
486
  "FGM": datasets.Value("string"),
487
  "FGA": datasets.Value("string"),
488
+ "FG_PCT": datasets.Value("string"),
489
  "FG3M": datasets.Value("string"),
490
  "FG3A": datasets.Value("string"),
491
+ "FG3_PCT": datasets.Value("string"),
492
  "FTM": datasets.Value("string"),
493
  "FTA": datasets.Value("string"),
494
+ "FT_PCT": datasets.Value("string"),
495
  "OREB": datasets.Value("string"),
496
  "DREB": datasets.Value("string"),
497
+ "TREB": datasets.Value("string"),
498
  "AST": datasets.Value("string"),
499
  "STL": datasets.Value("string"),
500
  "BLK": datasets.Value("string"),
 
502
  "PF": datasets.Value("string"),
503
  "PTS": datasets.Value("string"),
504
  "+/-": datasets.Value("string"),
505
+ "DOUBLE": datasets.Value("string")
506
  }
507
+ ],
508
  "next_game": {
509
  "day": datasets.Value("string"),
510
  "month": datasets.Value("string"),
 
573
  # This method handles input defined in _split_generators to yield (key, example) tuples from the dataset.
574
  # The `key` is here for legacy reason (tfds) and is not important in itself.
575
 
576
+ # js = json.load(open(filepath, encoding="utf-8"))
577
+ with open(filepath, encoding="utf-8") as f:
578
+ for id_, row in enumerate(f):
579
+ data = json.loads(row)
580
+ yield id_, {
581
+ "sportsett_id": data["sportsett_id"],
582
+ "gem_id": data["gem_id"],
583
+ "game": data["game"],
584
+ "teams": data["teams"],
585
+ "summaries": data["summaries"],
586
+ }
test.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ea1ae24fca386cd354dae4bb257c57de12d86c6322641fc185cb6b4d05e472e0
3
+ size 20033855
train.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:939115ea2e1108246e5491ab893e3e6216c81b14c7cd2c95fb96df1b188108de
3
+ size 62446027
validation.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:22bf7f51b08e249bbd53c70453121502876a36ad37dd4aa7dd0921343c662e14
3
+ size 20228684