system HF staff commited on
Commit
7811b14
1 Parent(s): d6551fb

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. finer.py +4 -2
finer.py CHANGED
@@ -19,11 +19,13 @@
19
  from __future__ import absolute_import, division, print_function
20
 
21
  import csv
22
- import logging
23
 
24
  import datasets
25
 
26
 
 
 
 
27
  _CITATION = """\
28
  @article{ruokolainen2019finnish,
29
  title={A finnish news corpus for named entity recognition},
@@ -140,7 +142,7 @@ class Finer(datasets.GeneratorBasedBuilder):
140
  ]
141
 
142
  def _generate_examples(self, filepath):
143
- logging.info("⏳ Generating 🇫🇮 examples from = %s", filepath)
144
  with open(filepath, encoding="utf-8") as f:
145
  data = csv.reader(f, delimiter="\t", quoting=csv.QUOTE_NONE)
146
  current_tokens = []
 
19
  from __future__ import absolute_import, division, print_function
20
 
21
  import csv
 
22
 
23
  import datasets
24
 
25
 
26
+ logger = datasets.logging.get_logger(__name__)
27
+
28
+
29
  _CITATION = """\
30
  @article{ruokolainen2019finnish,
31
  title={A finnish news corpus for named entity recognition},
 
142
  ]
143
 
144
  def _generate_examples(self, filepath):
145
+ logger.info("⏳ Generating 🇫🇮 examples from = %s", filepath)
146
  with open(filepath, encoding="utf-8") as f:
147
  data = csv.reader(f, delimiter="\t", quoting=csv.QUOTE_NONE)
148
  current_tokens = []