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 -6
indian_names.py
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
-
import os
|
2 |
import datasets
|
3 |
|
4 |
|
@@ -8,7 +7,7 @@ logger = datasets.logging.get_logger(__name__)
|
|
8 |
_URL = "https://github.com/Kriyansparsana/demorepo/blob/main/test.txt"
|
9 |
|
10 |
|
11 |
-
class
|
12 |
"""BuilderConfig for Conll2003"""
|
13 |
|
14 |
def __init__(self, **kwargs):
|
@@ -16,14 +15,14 @@ class Conll2003Config(datasets.BuilderConfig):
|
|
16 |
Args:
|
17 |
**kwargs: keyword arguments forwarded to super.
|
18 |
"""
|
19 |
-
super(
|
20 |
|
21 |
|
22 |
-
class
|
23 |
"""Conll2003 dataset."""
|
24 |
|
25 |
BUILDER_CONFIGS = [
|
26 |
-
|
27 |
]
|
28 |
|
29 |
def _info(self):
|
@@ -50,7 +49,7 @@ class Conll2003(datasets.GeneratorBasedBuilder):
|
|
50 |
"""Returns SplitGenerators."""
|
51 |
downloaded_file = dl_manager.download_and_extract(_URL)
|
52 |
data_files = {
|
53 |
-
"train":
|
54 |
}
|
55 |
|
56 |
return [
|
|
|
|
|
1 |
import datasets
|
2 |
|
3 |
|
|
|
7 |
_URL = "https://github.com/Kriyansparsana/demorepo/blob/main/test.txt"
|
8 |
|
9 |
|
10 |
+
class indian_namesConfig(datasets.BuilderConfig):
|
11 |
"""BuilderConfig for Conll2003"""
|
12 |
|
13 |
def __init__(self, **kwargs):
|
|
|
15 |
Args:
|
16 |
**kwargs: keyword arguments forwarded to super.
|
17 |
"""
|
18 |
+
super(indian_namesConfig, self).__init__(**kwargs)
|
19 |
|
20 |
|
21 |
+
class indian_names(datasets.GeneratorBasedBuilder):
|
22 |
"""Conll2003 dataset."""
|
23 |
|
24 |
BUILDER_CONFIGS = [
|
25 |
+
indian_namesConfig(name="indian_names", version=datasets.Version("1.0.0"), description="indian_names dataset"),
|
26 |
]
|
27 |
|
28 |
def _info(self):
|
|
|
49 |
"""Returns SplitGenerators."""
|
50 |
downloaded_file = dl_manager.download_and_extract(_URL)
|
51 |
data_files = {
|
52 |
+
"train": downloaded_file,
|
53 |
}
|
54 |
|
55 |
return [
|