Update files from the datasets library (from 1.5.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.5.0
xtreme.py
CHANGED
@@ -933,7 +933,7 @@ class Xtreme(datasets.GeneratorBasedBuilder):
|
|
933 |
ner_tags = []
|
934 |
langs = []
|
935 |
for line in f:
|
936 |
-
if line
|
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
|