Datasets:

Languages:
English
ArXiv:
License:
ShuhuaiRen commited on
Commit
07ce4d9
1 Parent(s): e700525

Upload TimeIT.py

Browse files
Files changed (1) hide show
  1. TimeIT.py +5 -7
TimeIT.py CHANGED
@@ -206,10 +206,8 @@ class TimeITDataset(datasets.GeneratorBasedBuilder):
206
  # The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
207
  timeitdata = json.load(open(filepath))
208
  for i, d in enumerate(timeitdata):
209
- # yield i, {
210
- # "question": d["QA"][0]['q'],
211
- # "answer": d["QA"][0]['a'],
212
- # "video_path": d["video"],
213
- # }
214
- # # print(d)
215
- yield i, d
 
206
  # The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
207
  timeitdata = json.load(open(filepath))
208
  for i, d in enumerate(timeitdata):
209
+ yield i, {
210
+ "question": d["QA"][0]['q'],
211
+ "answer": d["QA"][0]['a'],
212
+ "video_path": d["video"],
213
+ }