Datasets:
Tasks:
Token Classification
Sub-tasks:
named-entity-recognition
Languages:
Portuguese
Size:
10K<n<100K
Tags:
legal
License:
Update files from the datasets library (from 1.5.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.5.0
- lener_br.py +1 -1
lener_br.py
CHANGED
@@ -138,7 +138,7 @@ class LenerBr(datasets.GeneratorBasedBuilder):
|
|
138 |
ner_tags = []
|
139 |
|
140 |
for line in f:
|
141 |
-
if line
|
142 |
if tokens:
|
143 |
yield guid, {
|
144 |
"id": str(guid),
|
|
|
138 |
ner_tags = []
|
139 |
|
140 |
for line in f:
|
141 |
+
if line == "" or line == "\n":
|
142 |
if tokens:
|
143 |
yield guid, {
|
144 |
"id": str(guid),
|