Datasets:
Update files from the datasets library (from 1.6.1)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.6.1
- financial_phrasebank.py +1 -1
financial_phrasebank.py
CHANGED
@@ -141,7 +141,7 @@ class FinancialPhrasebank(datasets.GeneratorBasedBuilder):
|
|
141 |
]
|
142 |
|
143 |
def _generate_examples(self, filepath):
|
144 |
-
"""
|
145 |
with open(filepath, encoding="iso-8859-1") as f:
|
146 |
for id_, line in enumerate(f):
|
147 |
sentence, label = line.rsplit("@", 1)
|
|
|
141 |
]
|
142 |
|
143 |
def _generate_examples(self, filepath):
|
144 |
+
"""Yields examples."""
|
145 |
with open(filepath, encoding="iso-8859-1") as f:
|
146 |
for id_, line in enumerate(f):
|
147 |
sentence, label = line.rsplit("@", 1)
|