Datasets:
Tasks:
Token Classification
Sub-tasks:
named-entity-recognition
Languages:
English
Size:
1K<n<10K
License:
Update indian_names.py
Browse files- indian_names.py +5 -5
indian_names.py
CHANGED
@@ -64,11 +64,11 @@ class WNUT_17(datasets.GeneratorBasedBuilder):
|
|
64 |
sentence_counter = 0
|
65 |
for row in f:
|
66 |
row = row.rstrip()
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
# New sentence
|
73 |
if not current_tokens:
|
74 |
# Consecutive empty lines will cause empty sentences
|
|
|
64 |
sentence_counter = 0
|
65 |
for row in f:
|
66 |
row = row.rstrip()
|
67 |
+
if row:
|
68 |
+
token, label = row.split("\t")
|
69 |
+
current_tokens.append(token)
|
70 |
+
current_labels.append(label)
|
71 |
+
else:
|
72 |
# New sentence
|
73 |
if not current_tokens:
|
74 |
# Consecutive empty lines will cause empty sentences
|