Update TimeTravel.py
Browse files- TimeTravel.py +0 -6
TimeTravel.py
CHANGED
@@ -153,12 +153,6 @@ class TimeTravel(datasets.GeneratorBasedBuilder):
|
|
153 |
# The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
|
154 |
with open(filepath, encoding="utf-8") as f:
|
155 |
for key, row in enumerate(f):
|
156 |
-
try:
|
157 |
-
data = json.loads(row)
|
158 |
-
except:
|
159 |
-
print('something wrong!!!!!!!!!!!!!!!!!!!!!!!!!!!')
|
160 |
-
print(row)
|
161 |
-
print('ending.......')
|
162 |
yield key, {
|
163 |
"story_id": data["story_id"],
|
164 |
"premise": data["premise"],
|
|
|
153 |
# The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
|
154 |
with open(filepath, encoding="utf-8") as f:
|
155 |
for key, row in enumerate(f):
|
|
|
|
|
|
|
|
|
|
|
|
|
156 |
yield key, {
|
157 |
"story_id": data["story_id"],
|
158 |
"premise": data["premise"],
|