system HF staff commited on
Commit
27cb585
1 Parent(s): 3415e69

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. msra_ner.py +4 -3
msra_ner.py CHANGED
@@ -16,11 +16,12 @@
16
  # Lint as: python3
17
  """Introduction to MSRA NER Dataset"""
18
 
19
- import logging
20
-
21
  import datasets
22
 
23
 
 
 
 
24
  _CITATION = """\
25
  @inproceedings{levow2006third,
26
  author = {Gina{-}Anne Levow},
@@ -117,7 +118,7 @@ class MsraNer(datasets.GeneratorBasedBuilder):
117
  ]
118
 
119
  def _generate_examples(self, filepath):
120
- logging.info("⏳ Generating examples from = %s", filepath)
121
  with open(filepath, encoding="utf-8") as f:
122
  guid = 0
123
  tokens = []
 
16
  # Lint as: python3
17
  """Introduction to MSRA NER Dataset"""
18
 
 
 
19
  import datasets
20
 
21
 
22
+ logger = datasets.logging.get_logger(__name__)
23
+
24
+
25
  _CITATION = """\
26
  @inproceedings{levow2006third,
27
  author = {Gina{-}Anne Levow},
 
118
  ]
119
 
120
  def _generate_examples(self, filepath):
121
+ logger.info("⏳ Generating examples from = %s", filepath)
122
  with open(filepath, encoding="utf-8") as f:
123
  guid = 0
124
  tokens = []