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 +6 -6
indian_names.py
CHANGED
@@ -4,20 +4,20 @@ csv_file_path = "/home/p21-0144/Downloads/indian-name-org.csv"
|
|
4 |
|
5 |
class indian_namesConfig(datasets.BuilderConfig):
|
6 |
def __init__(self, **kwargs):
|
7 |
-
super(
|
8 |
|
9 |
class indian_names(datasets.GeneratorBasedBuilder):
|
10 |
BUILDER_CONFIGS = [
|
11 |
-
|
12 |
-
name="
|
13 |
version=datasets.Version("1.0.0"),
|
14 |
-
description="
|
15 |
),
|
16 |
]
|
17 |
|
18 |
def _info(self):
|
19 |
return datasets.DatasetInfo(
|
20 |
-
description="
|
21 |
features=datasets.Features(
|
22 |
{
|
23 |
"id": datasets.Value("string"),
|
@@ -77,4 +77,4 @@ class indian_names(datasets.GeneratorBasedBuilder):
|
|
77 |
"id": str(sentence_counter),
|
78 |
"tokens": current_tokens,
|
79 |
"ner_tags": current_labels,
|
80 |
-
}
|
|
|
4 |
|
5 |
class indian_namesConfig(datasets.BuilderConfig):
|
6 |
def __init__(self, **kwargs):
|
7 |
+
super(indian_namesConfig, self).__init__(**kwargs)
|
8 |
|
9 |
class indian_names(datasets.GeneratorBasedBuilder):
|
10 |
BUILDER_CONFIGS = [
|
11 |
+
indian_namesConfig(
|
12 |
+
name="indian_names_dataset",
|
13 |
version=datasets.Version("1.0.0"),
|
14 |
+
description="Indian Names Dataset",
|
15 |
),
|
16 |
]
|
17 |
|
18 |
def _info(self):
|
19 |
return datasets.DatasetInfo(
|
20 |
+
description="Indian Names dataset",
|
21 |
features=datasets.Features(
|
22 |
{
|
23 |
"id": datasets.Value("string"),
|
|
|
77 |
"id": str(sentence_counter),
|
78 |
"tokens": current_tokens,
|
79 |
"ner_tags": current_labels,
|
80 |
+
}
|