Update QUAERO.py
Browse files
QUAERO.py
CHANGED
@@ -202,7 +202,7 @@ class QUAERO(datasets.GeneratorBasedBuilder):
|
|
202 |
final_json.append({'id': i['id']+'_'+str(index),
|
203 |
'document_id': i['id']+'_'+str(index),
|
204 |
'ner_tags': i['ner_tags'][:value+1],
|
205 |
-
'tokens': i['tokens'][:value+1]
|
206 |
'is_oov': i['is_oov'][:value+1]
|
207 |
})
|
208 |
else:
|
@@ -210,7 +210,7 @@ class QUAERO(datasets.GeneratorBasedBuilder):
|
|
210 |
final_json.append({'id': i['id']+'_'+str(index),
|
211 |
'document_id': i['document_id']+'_'+str(index),
|
212 |
'ner_tags': i['ner_tags'][prev_value+1:value+1],
|
213 |
-
'tokens': i['tokens'][prev_value+1:value+1]
|
214 |
'is_oov': i['is_oov'][prev_value+1:value+1]
|
215 |
})
|
216 |
|
|
|
202 |
final_json.append({'id': i['id']+'_'+str(index),
|
203 |
'document_id': i['id']+'_'+str(index),
|
204 |
'ner_tags': i['ner_tags'][:value+1],
|
205 |
+
'tokens': i['tokens'][:value+1],
|
206 |
'is_oov': i['is_oov'][:value+1]
|
207 |
})
|
208 |
else:
|
|
|
210 |
final_json.append({'id': i['id']+'_'+str(index),
|
211 |
'document_id': i['document_id']+'_'+str(index),
|
212 |
'ner_tags': i['ner_tags'][prev_value+1:value+1],
|
213 |
+
'tokens': i['tokens'][prev_value+1:value+1],
|
214 |
'is_oov': i['is_oov'][prev_value+1:value+1]
|
215 |
})
|
216 |
|