system HF staff commited on
Commit
b64aa22
1 Parent(s): ec21716

Update files from the datasets library (from 1.5.0)

Browse files

Release notes: https://github.com/huggingface/datasets/releases/tag/1.5.0

Files changed (1) hide show
  1. xtreme.py +1 -1
xtreme.py CHANGED
@@ -933,7 +933,7 @@ class Xtreme(datasets.GeneratorBasedBuilder):
933
  ner_tags = []
934
  langs = []
935
  for line in f:
936
- if line.startswith("-DOCSTART-") or line == "" or line == "\n":
937
  if tokens:
938
  yield guid_index, {"tokens": tokens, "ner_tags": ner_tags, "langs": langs}
939
  guid_index += 1
 
933
  ner_tags = []
934
  langs = []
935
  for line in f:
936
+ if line == "" or line == "\n":
937
  if tokens:
938
  yield guid_index, {"tokens": tokens, "ner_tags": ner_tags, "langs": langs}
939
  guid_index += 1