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 +2 -7
indian_names.py
CHANGED
@@ -20,13 +20,12 @@ class indian_namesConfig(datasets.BuilderConfig):
|
|
20 |
class indian_names(datasets.GeneratorBasedBuilder):
|
21 |
"""The WNUT 17 Emerging Entities Dataset."""
|
22 |
|
23 |
-
BUILDER_CONFIGS = [
|
24 |
-
indian_namesConfig(
|
25 |
name="indian_names", version=datasets.Version("1.0.0"), description="The WNUT 17 Emerging Entities Dataset"
|
26 |
),
|
27 |
]
|
28 |
|
29 |
-
def _info
|
30 |
return datasets.DatasetInfo(
|
31 |
features=datasets.Features(
|
32 |
{
|
@@ -72,10 +71,6 @@ class indian_names(datasets.GeneratorBasedBuilder):
|
|
72 |
token, label = row.split("\t")
|
73 |
current_tokens.append(token)
|
74 |
current_labels.append(label)
|
75 |
-
else:
|
76 |
-
# Handle cases where the delimiter is missing
|
77 |
-
# You can choose to skip these rows or handle them differently
|
78 |
-
logger.warning(f"Delimiter missing in row: {row}")
|
79 |
else:
|
80 |
# New sentence
|
81 |
if not current_tokens:
|
|
|
20 |
class indian_names(datasets.GeneratorBasedBuilder):
|
21 |
"""The WNUT 17 Emerging Entities Dataset."""
|
22 |
|
23 |
+
BUILDER_CONFIGS = [(
|
|
|
24 |
name="indian_names", version=datasets.Version("1.0.0"), description="The WNUT 17 Emerging Entities Dataset"
|
25 |
),
|
26 |
]
|
27 |
|
28 |
+
def _info
|
29 |
return datasets.DatasetInfo(
|
30 |
features=datasets.Features(
|
31 |
{
|
|
|
71 |
token, label = row.split("\t")
|
72 |
current_tokens.append(token)
|
73 |
current_labels.append(label)
|
|
|
|
|
|
|
|
|
74 |
else:
|
75 |
# New sentence
|
76 |
if not current_tokens:
|