Datasets:
Update divemt.py
Browse files
divemt.py
CHANGED
@@ -145,5 +145,9 @@ class DivEMT(datasets.GeneratorBasedBuilder):
|
|
145 |
for id_, row in data.iterrows():
|
146 |
row_dic = row.to_dict()
|
147 |
for field in _STR_SEQ_FIELDS + _LANG_ANNOTATIONS_FIELDS:
|
148 |
-
|
|
|
|
|
|
|
|
|
149 |
yield id_, row_dic
|
|
|
145 |
for id_, row in data.iterrows():
|
146 |
row_dic = row.to_dict()
|
147 |
for field in _STR_SEQ_FIELDS + _LANG_ANNOTATIONS_FIELDS:
|
148 |
+
try:
|
149 |
+
row_dic[field] = json.loads(row_dic[field])
|
150 |
+
except:
|
151 |
+
pprint(row_dic)
|
152 |
+
raise KeyError
|
153 |
yield id_, row_dic
|