Kosuke-Yamada
commited on
Commit
•
e01c16e
1
Parent(s):
1f818cd
modify config
Browse files- ner-wikipedia-dataset.py +11 -11
ner-wikipedia-dataset.py
CHANGED
@@ -51,10 +51,10 @@ _URL = "https://raw.githubusercontent.com/stockmarkteam/ner-wikipedia-dataset/ma
|
|
51 |
|
52 |
|
53 |
class NerWikipediaDatasetConfig(datasets.BuilderConfig):
|
54 |
-
"""BuilderConfig for
|
55 |
|
56 |
def __init__(self, **kwargs):
|
57 |
-
"""BuilderConfig for
|
58 |
Args:
|
59 |
**kwargs: keyword arguments forwarded to super.
|
60 |
"""
|
@@ -78,15 +78,15 @@ class NerWikipediaDataset(datasets.GeneratorBasedBuilder):
|
|
78 |
# You will be able to load one or the other configurations in the following list with
|
79 |
# data = datasets.load_dataset('my_dataset', 'first_domain')
|
80 |
# data = datasets.load_dataset('my_dataset', 'second_domain')
|
81 |
-
BUILDER_CONFIGS = [
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
]
|
88 |
-
|
89 |
-
DEFAULT_CONFIG_NAME = "all" # It's not mandatory to have a default configuration. Just use one if it make sense.
|
90 |
|
91 |
def _info(self):
|
92 |
# TODO: This method specifies the datasets.DatasetInfo object which contains informations and typings for the dataset
|
|
|
51 |
|
52 |
|
53 |
class NerWikipediaDatasetConfig(datasets.BuilderConfig):
|
54 |
+
"""BuilderConfig for NerWikipediaDataset."""
|
55 |
|
56 |
def __init__(self, **kwargs):
|
57 |
+
"""BuilderConfig for NerWikipediaDataset
|
58 |
Args:
|
59 |
**kwargs: keyword arguments forwarded to super.
|
60 |
"""
|
|
|
78 |
# You will be able to load one or the other configurations in the following list with
|
79 |
# data = datasets.load_dataset('my_dataset', 'first_domain')
|
80 |
# data = datasets.load_dataset('my_dataset', 'second_domain')
|
81 |
+
# BUILDER_CONFIGS = [
|
82 |
+
# datasets.BuilderConfig(
|
83 |
+
# name="all",
|
84 |
+
# version=VERSION,
|
85 |
+
# description="This part of my dataset covers a first domain",
|
86 |
+
# ),
|
87 |
+
# ]
|
88 |
+
|
89 |
+
# DEFAULT_CONFIG_NAME = "all" # It's not mandatory to have a default configuration. Just use one if it make sense.
|
90 |
|
91 |
def _info(self):
|
92 |
# TODO: This method specifies the datasets.DatasetInfo object which contains informations and typings for the dataset
|