Datasets:
Tasks:
Text Classification
Modalities:
Text
Formats:
parquet
Languages:
English
Size:
10K - 100K
ArXiv:
License:
Update files from the datasets library (from 1.6.1)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.6.1
- banking77.py +1 -1
banking77.py
CHANGED
@@ -159,7 +159,7 @@ class Banking77(datasets.GeneratorBasedBuilder):
|
|
159 |
]
|
160 |
|
161 |
def _generate_examples(self, filepath):
|
162 |
-
"""
|
163 |
with open(filepath, encoding="utf-8") as f:
|
164 |
csv_reader = csv.reader(f, quotechar='"', delimiter=",", quoting=csv.QUOTE_ALL, skipinitialspace=True)
|
165 |
# call next to skip header
|
|
|
159 |
]
|
160 |
|
161 |
def _generate_examples(self, filepath):
|
162 |
+
"""Yields examples as (key, example) tuples."""
|
163 |
with open(filepath, encoding="utf-8") as f:
|
164 |
csv_reader = csv.reader(f, quotechar='"', delimiter=",", quoting=csv.QUOTE_ALL, skipinitialspace=True)
|
165 |
# call next to skip header
|