Datasets:
Tasks:
Text Classification
Sub-tasks:
multi-class-classification
Languages:
English
Size:
1K<n<10K
License:
Update files from the datasets library (from 1.6.1)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.6.1
trec.py
CHANGED
@@ -155,7 +155,7 @@ class Trec(datasets.GeneratorBasedBuilder):
|
|
155 |
]
|
156 |
|
157 |
def _generate_examples(self, filepath):
|
158 |
-
"""
|
159 |
# TODO: Yields (key, example) tuples from the dataset
|
160 |
with open(filepath, "rb") as f:
|
161 |
for id_, row in enumerate(f):
|
|
|
155 |
]
|
156 |
|
157 |
def _generate_examples(self, filepath):
|
158 |
+
"""Yields examples."""
|
159 |
# TODO: Yields (key, example) tuples from the dataset
|
160 |
with open(filepath, "rb") as f:
|
161 |
for id_, row in enumerate(f):
|