Datasets:
Tasks:
Text Classification
Sub-tasks:
multi-class-classification
Languages:
English
Size:
10K<n<100K
License:
Update files from the datasets library (from 1.6.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.6.0
- dataset_infos.json +0 -0
- newsgroup.py +1 -2
dataset_infos.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
newsgroup.py
CHANGED
|
@@ -16,7 +16,6 @@
|
|
| 16 |
# Lint as: python3
|
| 17 |
"""20Newsgroup dataset"""
|
| 18 |
|
| 19 |
-
from __future__ import absolute_import, division, print_function
|
| 20 |
|
| 21 |
import os
|
| 22 |
|
|
@@ -132,7 +131,7 @@ class Newsgroups(datasets.GeneratorBasedBuilder):
|
|
| 132 |
),
|
| 133 |
datasets.SplitGenerator(
|
| 134 |
name=datasets.Split.TEST,
|
| 135 |
-
gen_kwargs={"files_path": os.path.join(path, "20news-bydate-
|
| 136 |
),
|
| 137 |
]
|
| 138 |
elif self.config.name.startswith("19997"):
|
|
|
|
| 16 |
# Lint as: python3
|
| 17 |
"""20Newsgroup dataset"""
|
| 18 |
|
|
|
|
| 19 |
|
| 20 |
import os
|
| 21 |
|
|
|
|
| 131 |
),
|
| 132 |
datasets.SplitGenerator(
|
| 133 |
name=datasets.Split.TEST,
|
| 134 |
+
gen_kwargs={"files_path": os.path.join(path, "20news-bydate-test", self.config.sub_dir)},
|
| 135 |
),
|
| 136 |
]
|
| 137 |
elif self.config.name.startswith("19997"):
|