cryptexcode commited on
Commit
5a13108
·
1 Parent(s): 395e152

Update multiconer_v2.py

Browse files
Files changed (1) hide show
  1. multiconer_v2.py +6 -5
multiconer_v2.py CHANGED
@@ -317,8 +317,9 @@ class MultiCoNER2(datasets.GeneratorBasedBuilder):
317
  ner_tags = []
318
  else:
319
  continue
320
- yield guid, {
321
- "id": s_id,
322
- "tokens": tokens,
323
- "ner_tags": ner_tags,
324
- }
 
 
317
  ner_tags = []
318
  else:
319
  continue
320
+ if s_id:
321
+ yield guid, {
322
+ "id": s_id,
323
+ "tokens": tokens,
324
+ "ner_tags": ner_tags,
325
+ }