system HF staff commited on
Commit
b104e73
1 Parent(s): b699ad9

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. conll2002.py +4 -3
conll2002.py CHANGED
@@ -16,11 +16,12 @@
16
  # Lint as: python3
17
  """Introduction to the CoNLL-2002 Shared Task: Language-Independent Named Entity Recognition"""
18
 
19
- import logging
20
-
21
  import datasets
22
 
23
 
 
 
 
24
  _CITATION = """\
25
  @inproceedings{tjong-kim-sang-2002-introduction,
26
  title = "Introduction to the {C}o{NLL}-2002 Shared Task: Language-Independent Named Entity Recognition",
@@ -193,7 +194,7 @@ class Conll2002(datasets.GeneratorBasedBuilder):
193
  ]
194
 
195
  def _generate_examples(self, filepath):
196
- logging.info("⏳ Generating examples from = %s", filepath)
197
  with open(filepath, encoding="utf-8") as f:
198
  guid = 0
199
  tokens = []
 
16
  # Lint as: python3
17
  """Introduction to the CoNLL-2002 Shared Task: Language-Independent Named Entity Recognition"""
18
 
 
 
19
  import datasets
20
 
21
 
22
+ logger = datasets.logging.get_logger(__name__)
23
+
24
+
25
  _CITATION = """\
26
  @inproceedings{tjong-kim-sang-2002-introduction,
27
  title = "Introduction to the {C}o{NLL}-2002 Shared Task: Language-Independent Named Entity Recognition",
 
194
  ]
195
 
196
  def _generate_examples(self, filepath):
197
+ logger.info("⏳ Generating examples from = %s", filepath)
198
  with open(filepath, encoding="utf-8") as f:
199
  guid = 0
200
  tokens = []