Datasets:
Tasks:
Token Classification
Sub-tasks:
named-entity-recognition
Languages:
Chinese
Size:
10K<n<100K
License:
Update files from the datasets library (from 1.4.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.4.0
- peoples_daily_ner.py +4 -3
peoples_daily_ner.py
CHANGED
@@ -16,11 +16,12 @@
|
|
16 |
# Lint as: python3
|
17 |
"""Introduction to People's Daily Dataset"""
|
18 |
|
19 |
-
import logging
|
20 |
-
|
21 |
import datasets
|
22 |
|
23 |
|
|
|
|
|
|
|
24 |
_DESCRIPTION = """\
|
25 |
People's Daily NER Dataset is a commonly used dataset for Chinese NER, with
|
26 |
text from People's Daily (人民日报), the largest official newspaper.
|
@@ -98,7 +99,7 @@ class PeoplesDailyNer(datasets.GeneratorBasedBuilder):
|
|
98 |
]
|
99 |
|
100 |
def _generate_examples(self, filepath):
|
101 |
-
|
102 |
with open(filepath, encoding="utf-8") as f:
|
103 |
guid = 0
|
104 |
tokens = []
|
|
|
16 |
# Lint as: python3
|
17 |
"""Introduction to People's Daily Dataset"""
|
18 |
|
|
|
|
|
19 |
import datasets
|
20 |
|
21 |
|
22 |
+
logger = datasets.logging.get_logger(__name__)
|
23 |
+
|
24 |
+
|
25 |
_DESCRIPTION = """\
|
26 |
People's Daily NER Dataset is a commonly used dataset for Chinese NER, with
|
27 |
text from People's Daily (人民日报), the largest official newspaper.
|
|
|
99 |
]
|
100 |
|
101 |
def _generate_examples(self, filepath):
|
102 |
+
logger.info("⏳ Generating examples from = %s", filepath)
|
103 |
with open(filepath, encoding="utf-8") as f:
|
104 |
guid = 0
|
105 |
tokens = []
|