Kosuke-Yamada
commited on
Commit
•
6f45866
1
Parent(s):
397c16a
modify function
Browse files- ner-wikipedia-dataset.py +1 -1
ner-wikipedia-dataset.py
CHANGED
@@ -164,7 +164,7 @@ class NerWikipediaDataset(datasets.GeneratorBasedBuilder):
|
|
164 |
]
|
165 |
|
166 |
# method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
|
167 |
-
def _generate_examples(self, data):
|
168 |
# TODO: This method handles input defined in _split_generators to yield (key, example) tuples from the dataset.
|
169 |
# The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
|
170 |
for key, data in enumerate(data):
|
|
|
164 |
]
|
165 |
|
166 |
# method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
|
167 |
+
def _generate_examples(self, data, split):
|
168 |
# TODO: This method handles input defined in _split_generators to yield (key, example) tuples from the dataset.
|
169 |
# The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
|
170 |
for key, data in enumerate(data):
|