Update files from the datasets library (from 1.6.1)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.6.1
times_of_india_news_headlines.py
CHANGED
@@ -81,7 +81,7 @@ class TimesOfIndiaNewsHeadlines(datasets.GeneratorBasedBuilder):
|
|
81 |
return [datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"path": path_to_manual_file})]
|
82 |
|
83 |
def _generate_examples(self, path=None):
|
84 |
-
"""
|
85 |
with open(path, encoding="utf8") as csv_file:
|
86 |
csv_reader = csv.reader(
|
87 |
csv_file, quotechar='"', delimiter=",", skipinitialspace=True, quoting=csv.QUOTE_ALL
|
|
|
81 |
return [datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"path": path_to_manual_file})]
|
82 |
|
83 |
def _generate_examples(self, path=None):
|
84 |
+
"""Yields examples."""
|
85 |
with open(path, encoding="utf8") as csv_file:
|
86 |
csv_reader = csv.reader(
|
87 |
csv_file, quotechar='"', delimiter=",", skipinitialspace=True, quoting=csv.QUOTE_ALL
|