Datasets:
Tasks:
Text Classification
Sub-tasks:
topic-classification
Languages:
Kannada
Size:
1K<n<10K
License:
Update files from the datasets library (from 1.16.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.16.0
- kannada_news.py +1 -3
kannada_news.py
CHANGED
|
@@ -79,9 +79,7 @@ class KannadaNews(datasets.GeneratorBasedBuilder):
|
|
| 79 |
|
| 80 |
if not os.path.exists(path_to_manual_file):
|
| 81 |
raise FileNotFoundError(
|
| 82 |
-
"{} does not exist. Make sure you insert a manual dir via `datasets.load_dataset('kannada_news', data_dir=...)` that includes a file name {}. Manual download instructions: {})"
|
| 83 |
-
path_to_manual_file, _TRAIN_FILENAME, self.manual_download_instructions
|
| 84 |
-
)
|
| 85 |
)
|
| 86 |
return [
|
| 87 |
datasets.SplitGenerator(
|
|
|
|
| 79 |
|
| 80 |
if not os.path.exists(path_to_manual_file):
|
| 81 |
raise FileNotFoundError(
|
| 82 |
+
f"{path_to_manual_file} does not exist. Make sure you insert a manual dir via `datasets.load_dataset('kannada_news', data_dir=...)` that includes a file name {_TRAIN_FILENAME}. Manual download instructions: {self.manual_download_instructions})"
|
|
|
|
|
|
|
| 83 |
)
|
| 84 |
return [
|
| 85 |
datasets.SplitGenerator(
|