Kosuke-Yamada
commited on
Commit
·
1d0c339
1
Parent(s):
be361e4
modify dataset file
Browse files- ner-wikinews-dataset.py +5 -5
ner-wikinews-dataset.py
CHANGED
@@ -51,19 +51,19 @@ _LICENSE = ""
|
|
51 |
_URL = "https://huggingface.co/datasets/llm-book/ner-wikinews-dataset/raw/main/annotated_wikinews_raw.json"
|
52 |
|
53 |
|
54 |
-
class
|
55 |
-
"""BuilderConfig for
|
56 |
|
57 |
def __init__(self, **kwargs):
|
58 |
-
"""BuilderConfig for
|
59 |
Args:
|
60 |
**kwargs: keyword arguments forwarded to super.
|
61 |
"""
|
62 |
-
super(
|
63 |
|
64 |
|
65 |
# TODO: Name of the dataset usually matches the script name with CamelCase instead of snake_case
|
66 |
-
class
|
67 |
"""TODO: Short description of my dataset."""
|
68 |
|
69 |
VERSION = datasets.Version("1.1.0")
|
|
|
51 |
_URL = "https://huggingface.co/datasets/llm-book/ner-wikinews-dataset/raw/main/annotated_wikinews_raw.json"
|
52 |
|
53 |
|
54 |
+
class NerWikinewsDatasetConfig(datasets.BuilderConfig):
|
55 |
+
"""BuilderConfig for NerWikinewsDataset."""
|
56 |
|
57 |
def __init__(self, **kwargs):
|
58 |
+
"""BuilderConfig for NerWikinewsDataset
|
59 |
Args:
|
60 |
**kwargs: keyword arguments forwarded to super.
|
61 |
"""
|
62 |
+
super(NerWikinewsDatasetConfig, self).__init__(**kwargs)
|
63 |
|
64 |
|
65 |
# TODO: Name of the dataset usually matches the script name with CamelCase instead of snake_case
|
66 |
+
class NerWikinewsDataset(datasets.GeneratorBasedBuilder):
|
67 |
"""TODO: Short description of my dataset."""
|
68 |
|
69 |
VERSION = datasets.Version("1.1.0")
|