Datasets:
Tasks:
Text Classification
Modalities:
Text
Formats:
parquet
Sub-tasks:
topic-classification
Languages:
German
Size:
10K - 100K
License:
Update files from the datasets library (from 1.8.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.8.0
- dataset_infos.json +1 -1
- gnad10.py +2 -0
dataset_infos.json
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"default": {"description": "This dataset is intended to advance topic classification for German texts. A classifier that is efffective in\nEnglish may not be effective in German dataset because it has a higher inflection and longer compound words.\nThe 10kGNAD dataset contains 10273 German news articles from an Austrian online newspaper categorized into\n9 categories. Article titles and text are concatenated together and authors are removed to avoid a keyword-like\nclassification on authors that write frequently about one category. This dataset can be used as a benchmark\nfor German topic classification.\n", "citation": "", "homepage": "https://tblock.github.io/10kGNAD/", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 9, "names": ["Web", "Panorama", "International", "Wirtschaft", "Sport", "Inland", "Etat", "Wissenschaft", "Kultur"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "builder_name": "gnad10", "config_name": "default", "version": {"version_str": "1.1.0", "description": null, "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 24418224, "num_examples": 9245, "dataset_name": "gnad10"}, "test": {"name": "test", "num_bytes": 2756405, "num_examples": 1028, "dataset_name": "gnad10"}}, "download_checksums": {"https://raw.githubusercontent.com/tblock/10kGNAD/master/train.csv": {"num_bytes": 24405789, "checksum": "e0c0fa6ffd83e351173a800b3879f8a1a31a97058ec8615bed8becfc475cc607"}, "https://raw.githubusercontent.com/tblock/10kGNAD/master/test.csv": {"num_bytes": 2755020, "checksum": "68ba71a01919261f36b362b6a31e7fa34255dde102a5586db23d72eae2e41514"}}, "download_size": 27160809, "post_processing_size": null, "dataset_size": 27174629, "size_in_bytes": 54335438}}
|
|
|
1 |
+
{"default": {"description": "This dataset is intended to advance topic classification for German texts. A classifier that is efffective in\nEnglish may not be effective in German dataset because it has a higher inflection and longer compound words.\nThe 10kGNAD dataset contains 10273 German news articles from an Austrian online newspaper categorized into\n9 categories. Article titles and text are concatenated together and authors are removed to avoid a keyword-like\nclassification on authors that write frequently about one category. This dataset can be used as a benchmark\nfor German topic classification.\n", "citation": "", "homepage": "https://tblock.github.io/10kGNAD/", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 9, "names": ["Web", "Panorama", "International", "Wirtschaft", "Sport", "Inland", "Etat", "Wissenschaft", "Kultur"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": [{"task": "text-classification", "text_column": "text", "label_column": "label", "labels": ["Etat", "Inland", "International", "Kultur", "Panorama", "Sport", "Web", "Wirtschaft", "Wissenschaft"]}], "builder_name": "gnad10", "config_name": "default", "version": {"version_str": "1.1.0", "description": null, "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 24418224, "num_examples": 9245, "dataset_name": "gnad10"}, "test": {"name": "test", "num_bytes": 2756405, "num_examples": 1028, "dataset_name": "gnad10"}}, "download_checksums": {"https://raw.githubusercontent.com/tblock/10kGNAD/master/train.csv": {"num_bytes": 24405789, "checksum": "e0c0fa6ffd83e351173a800b3879f8a1a31a97058ec8615bed8becfc475cc607"}, "https://raw.githubusercontent.com/tblock/10kGNAD/master/test.csv": {"num_bytes": 2755020, "checksum": "68ba71a01919261f36b362b6a31e7fa34255dde102a5586db23d72eae2e41514"}}, "download_size": 27160809, "post_processing_size": null, "dataset_size": 27174629, "size_in_bytes": 54335438}}
|
gnad10.py
CHANGED
@@ -18,6 +18,7 @@
|
|
18 |
import csv
|
19 |
|
20 |
import datasets
|
|
|
21 |
|
22 |
|
23 |
_DESCRIPTION = """\
|
@@ -64,6 +65,7 @@ class Gnad10(datasets.GeneratorBasedBuilder):
|
|
64 |
}
|
65 |
),
|
66 |
homepage="https://tblock.github.io/10kGNAD/",
|
|
|
67 |
)
|
68 |
|
69 |
def _split_generators(self, dl_manager):
|
|
|
18 |
import csv
|
19 |
|
20 |
import datasets
|
21 |
+
from datasets.tasks import TextClassification
|
22 |
|
23 |
|
24 |
_DESCRIPTION = """\
|
|
|
65 |
}
|
66 |
),
|
67 |
homepage="https://tblock.github.io/10kGNAD/",
|
68 |
+
task_templates=[TextClassification(text_column="text", label_column="label")],
|
69 |
)
|
70 |
|
71 |
def _split_generators(self, dl_manager):
|