system HF staff commited on
Commit
5c0bd62
1 Parent(s): 1cc09e9

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. turkish_movie_sentiment.py +4 -2
turkish_movie_sentiment.py CHANGED
@@ -18,12 +18,14 @@
18
  from __future__ import absolute_import, division, print_function
19
 
20
  import csv
21
- import logging
22
  import os
23
 
24
  import datasets
25
 
26
 
 
 
 
27
  _DESCRIPTION = """\
28
  This data set is a dataset from kaggle consisting of Turkish movie reviews and scored between 0-5.
29
  """
@@ -104,7 +106,7 @@ class TurkishMovieSentiment(datasets.GeneratorBasedBuilder):
104
 
105
  def _generate_examples(self, filepath):
106
  """Generate TurkishMovieSentiment examples."""
107
- logging.info("⏳ Generating examples from = %s", filepath)
108
  with open(filepath, encoding="utf-8") as f:
109
  rdr = csv.reader(f, delimiter=",")
110
  next(rdr)
18
  from __future__ import absolute_import, division, print_function
19
 
20
  import csv
 
21
  import os
22
 
23
  import datasets
24
 
25
 
26
+ logger = datasets.logging.get_logger(__name__)
27
+
28
+
29
  _DESCRIPTION = """\
30
  This data set is a dataset from kaggle consisting of Turkish movie reviews and scored between 0-5.
31
  """
106
 
107
  def _generate_examples(self, filepath):
108
  """Generate TurkishMovieSentiment examples."""
109
+ logger.info("⏳ Generating examples from = %s", filepath)
110
  with open(filepath, encoding="utf-8") as f:
111
  rdr = csv.reader(f, delimiter=",")
112
  next(rdr)