Datasets:

Languages:
Chinese
Multilinguality:
monolingual
Size Categories:
10K<n<100K
Language Creators:
found
Annotations Creators:
expert-generated
Source Datasets:
original
Tags:
License:
system HF staff commited on
Commit
75ffe11
1 Parent(s): df20608

Update files from the datasets library (from 1.4.0)

Browse files

Release notes: https://github.com/huggingface/datasets/releases/tag/1.4.0

Files changed (1) hide show
  1. 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
- logging.info("⏳ Generating examples from = %s", filepath)
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 = []