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 +1 -2
indian_names.py
CHANGED
@@ -64,10 +64,9 @@ class indina_names(datasets.GeneratorBasedBuilder):
|
|
64 |
row_values = row.split("\t")
|
65 |
if len(row_values) == 2:
|
66 |
token, label = row_values
|
67 |
-
else
|
68 |
current_tokens.append(token)
|
69 |
current_labels.append(label)
|
70 |
-
else:
|
71 |
# New sentence
|
72 |
if not current_tokens:
|
73 |
# Consecutive empty lines will cause empty sentences
|
|
|
64 |
row_values = row.split("\t")
|
65 |
if len(row_values) == 2:
|
66 |
token, label = row_values
|
67 |
+
else:
|
68 |
current_tokens.append(token)
|
69 |
current_labels.append(label)
|
|
|
70 |
# New sentence
|
71 |
if not current_tokens:
|
72 |
# Consecutive empty lines will cause empty sentences
|