Datasets:
Tasks:
Token Classification
Sub-tasks:
named-entity-recognition
Languages:
Korean
Size:
1K<n<10K
License:
Update files from the datasets library (from 1.4.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.4.0
- kor_ner.py +4 -3
kor_ner.py
CHANGED
|
@@ -16,11 +16,12 @@
|
|
| 16 |
|
| 17 |
from __future__ import absolute_import, division, print_function
|
| 18 |
|
| 19 |
-
import logging
|
| 20 |
-
|
| 21 |
import datasets
|
| 22 |
|
| 23 |
|
|
|
|
|
|
|
|
|
|
| 24 |
_CITATION = """\
|
| 25 |
@InProceedings{Kim:2016,
|
| 26 |
title = "Korean Named Entity Recognition Dataset",
|
|
@@ -142,7 +143,7 @@ class KorNER(datasets.GeneratorBasedBuilder):
|
|
| 142 |
]
|
| 143 |
|
| 144 |
def _generate_examples(self, filepath, split):
|
| 145 |
-
|
| 146 |
with open(filepath, encoding="utf-8") as f:
|
| 147 |
text = ""
|
| 148 |
annot_text = ""
|
|
|
|
| 16 |
|
| 17 |
from __future__ import absolute_import, division, print_function
|
| 18 |
|
|
|
|
|
|
|
| 19 |
import datasets
|
| 20 |
|
| 21 |
|
| 22 |
+
logger = datasets.logging.get_logger(__name__)
|
| 23 |
+
|
| 24 |
+
|
| 25 |
_CITATION = """\
|
| 26 |
@InProceedings{Kim:2016,
|
| 27 |
title = "Korean Named Entity Recognition Dataset",
|
|
|
|
| 143 |
]
|
| 144 |
|
| 145 |
def _generate_examples(self, filepath, split):
|
| 146 |
+
logger.info("⏳ Generating examples from = %s", filepath)
|
| 147 |
with open(filepath, encoding="utf-8") as f:
|
| 148 |
text = ""
|
| 149 |
annot_text = ""
|