Datasets:

Modalities:
Text
Formats:
parquet
Languages:
German
Libraries:
Datasets
pandas
License:
parquet-converter commited on
Commit
373a08c
·
1 Parent(s): b0be5ed

Update parquet files

Browse files
.gitattributes DELETED
@@ -1,27 +0,0 @@
1
- *.7z filter=lfs diff=lfs merge=lfs -text
2
- *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.bin filter=lfs diff=lfs merge=lfs -text
4
- *.bin.* filter=lfs diff=lfs merge=lfs -text
5
- *.bz2 filter=lfs diff=lfs merge=lfs -text
6
- *.ftz filter=lfs diff=lfs merge=lfs -text
7
- *.gz filter=lfs diff=lfs merge=lfs -text
8
- *.h5 filter=lfs diff=lfs merge=lfs -text
9
- *.joblib filter=lfs diff=lfs merge=lfs -text
10
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
- *.model filter=lfs diff=lfs merge=lfs -text
12
- *.msgpack filter=lfs diff=lfs merge=lfs -text
13
- *.onnx filter=lfs diff=lfs merge=lfs -text
14
- *.ot filter=lfs diff=lfs merge=lfs -text
15
- *.parquet filter=lfs diff=lfs merge=lfs -text
16
- *.pb filter=lfs diff=lfs merge=lfs -text
17
- *.pt filter=lfs diff=lfs merge=lfs -text
18
- *.pth filter=lfs diff=lfs merge=lfs -text
19
- *.rar filter=lfs diff=lfs merge=lfs -text
20
- saved_model/**/* filter=lfs diff=lfs merge=lfs -text
21
- *.tar.* filter=lfs diff=lfs merge=lfs -text
22
- *.tflite filter=lfs diff=lfs merge=lfs -text
23
- *.tgz filter=lfs diff=lfs merge=lfs -text
24
- *.xz filter=lfs diff=lfs merge=lfs -text
25
- *.zip filter=lfs diff=lfs merge=lfs -text
26
- *.zstandard filter=lfs diff=lfs merge=lfs -text
27
- *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md DELETED
@@ -1,195 +0,0 @@
1
- ---
2
- annotations_creators:
3
- - crowdsourced
4
- language_creators:
5
- - found
6
- language:
7
- - de
8
- license:
9
- - cc-by-nc-sa-4.0
10
- multilinguality:
11
- - monolingual
12
- size_categories:
13
- - 10K<n<100K
14
- source_datasets:
15
- - extended|other-from-One-Million-Posts-Corpus
16
- task_categories:
17
- - text-classification
18
- task_ids:
19
- - topic-classification
20
- paperswithcode_id: null
21
- pretty_name: 10k German News Articles Datasets
22
- dataset_info:
23
- features:
24
- - name: text
25
- dtype: string
26
- - name: label
27
- dtype:
28
- class_label:
29
- names:
30
- 0: Web
31
- 1: Panorama
32
- 2: International
33
- 3: Wirtschaft
34
- 4: Sport
35
- 5: Inland
36
- 6: Etat
37
- 7: Wissenschaft
38
- 8: Kultur
39
- splits:
40
- - name: train
41
- num_bytes: 24418224
42
- num_examples: 9245
43
- - name: test
44
- num_bytes: 2756405
45
- num_examples: 1028
46
- download_size: 27160809
47
- dataset_size: 27174629
48
- ---
49
-
50
- # Dataset Card for 10k German News Articles Datasets
51
-
52
- ## Table of Contents
53
- - [Dataset Description](#dataset-description)
54
- - [Dataset Summary](#dataset-summary)
55
- - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
56
- - [Languages](#languages)
57
- - [Dataset Structure](#dataset-structure)
58
- - [Data Instances](#data-instances)
59
- - [Data Fields](#data-fields)
60
- - [Data Splits](#data-splits)
61
- - [Dataset Creation](#dataset-creation)
62
- - [Curation Rationale](#curation-rationale)
63
- - [Source Data](#source-data)
64
- - [Annotations](#annotations)
65
- - [Personal and Sensitive Information](#personal-and-sensitive-information)
66
- - [Considerations for Using the Data](#considerations-for-using-the-data)
67
- - [Social Impact of Dataset](#social-impact-of-dataset)
68
- - [Discussion of Biases](#discussion-of-biases)
69
- - [Other Known Limitations](#other-known-limitations)
70
- - [Additional Information](#additional-information)
71
- - [Dataset Curators](#dataset-curators)
72
- - [Licensing Information](#licensing-information)
73
- - [Citation Information](#citation-information)
74
- - [Contributions](#contributions)
75
-
76
- ## Dataset Description
77
-
78
- - **Homepage:** [10k German News Article Dataset](https://tblock.github.io/10kGNAD/)
79
- - **Repository:** [10k German News Article Dataset](https://github.com/tblock/10kGNAD)
80
- - **Point of Contact:** [Steven Liu](stevhliu@gmail.com)
81
-
82
- ### Dataset Summary
83
-
84
- The 10k German News Article Dataset consists of 10273 German language news articles from the online Austrian
85
- newspaper website DER Standard. Each news article has been classified into one of 9 categories by professional
86
- forum moderators employed by the newspaper. This dataset is extended from the original
87
- [One Million Posts Corpus](https://ofai.github.io/million-post-corpus/). The dataset was created to support
88
- topic classification in German because a classifier effective on a English dataset may not be as effective on
89
- a German dataset due to higher inflections and longer compound words. Additionally, this dataset can be used
90
- as a benchmark dataset for German topic classification.
91
-
92
- ### Supported Tasks and Leaderboards
93
-
94
- This dataset can be used to train a model, like [BERT](https://huggingface.co/bert-base-uncased) for `topic classification` on German news articles. There are 9 possible categories.
95
-
96
- ### Languages
97
-
98
- The text is in German and it comes from an online Austrian newspaper website. The BCP-47 code for German is
99
- `de-DE`.
100
-
101
- ## Dataset Structure
102
-
103
- ### Data Instances
104
-
105
- An example data instance contains a German news article (title and article are concatenated) and it's corresponding topic category.
106
-
107
- ```
108
- {'text': ''Die Gewerkschaft GPA-djp lanciert den "All-in-Rechner" und findet, dass die Vertragsform auf die Führungsebene beschränkt gehört. Wien – Die Gewerkschaft GPA-djp sieht Handlungsbedarf bei sogenannten All-in-Verträgen.'
109
- 'label': 'Wirtschaft'
110
- }
111
- ```
112
-
113
- ### Data Fields
114
-
115
- * `text`: contains the title and content of the article
116
- * `label`: can be one of 9 possible topic categories (`Web`, `Panorama`, `International`, `Wirtschaft`, `Sport`, `Inland`, `Etat`, `Wissenschaft`, `Kultur`)
117
-
118
- ### Data Splits
119
-
120
- The data is split into a training set consisting of 9245 articles and a test set consisting of 1028 articles.
121
-
122
- ## Dataset Creation
123
-
124
- ### Curation Rationale
125
-
126
- The dataset was created to support topic classification in the German language. English text classification datasets are common ([AG News](https://huggingface.co/datasets/ag_news) and [20 Newsgroup](https://huggingface.co/datasets/newsgroup)), but German datasets are less common. A classifier trained on an English dataset may not work as well on a set of German text due to grammatical differences. Thus there is a need for a German dataset for effectively assessing model performance.
127
-
128
- ### Source Data
129
-
130
- #### Initial Data Collection and Normalization
131
-
132
- The 10k German News Article Dataset is extended from the One Million Posts Corpus. 10273 German news articles were collected from this larger corpus. In the One Million Posts Corpus, each article has a topic path like
133
- `Newsroom/Wirtschaft/Wirtschaftpolitik/Finanzmaerkte/Griechenlandkrise`. The 10kGNAD uses the second part of the topic path as the topic label. Article title and texts are concatenated into one text and author names are removed to avoid keyword classification on authors who write frequently on a particular topic.
134
-
135
- #### Who are the source language producers?
136
-
137
- The language producers are the authors of the Austrian newspaper website DER Standard.
138
-
139
- ### Annotations
140
-
141
- #### Annotation process
142
-
143
- [More Information Needed]
144
-
145
- #### Who are the annotators?
146
-
147
- [More Information Needed]
148
-
149
- ### Personal and Sensitive Information
150
-
151
- [More Information Needed]
152
-
153
- ## Considerations for Using the Data
154
-
155
- ### Social Impact of Dataset
156
-
157
- [More Information Needed]
158
-
159
- ### Discussion of Biases
160
-
161
- [More Information Needed]
162
-
163
- ### Other Known Limitations
164
-
165
- [More Information Needed]
166
-
167
- ## Additional Information
168
-
169
- ### Dataset Curators
170
-
171
- This dataset was curated by Timo Block.
172
-
173
- ### Licensing Information
174
-
175
- This dataset is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 license.
176
-
177
- ### Citation Information
178
-
179
- Please consider citing the authors of the "One Million Post Corpus" if you use the dataset.:
180
- ```
181
- @InProceedings{Schabus2017,
182
- Author = {Dietmar Schabus and Marcin Skowron and Martin Trapp},
183
- Title = {One Million Posts: A Data Set of German Online Discussions},
184
- Booktitle = {Proceedings of the 40th International ACM SIGIR Conference on Research and Development in Information Retrieval (SIGIR)},
185
- Pages = {1241--1244},
186
- Year = {2017},
187
- Address = {Tokyo, Japan},
188
- Doi = {10.1145/3077136.3080711},
189
- Month = aug
190
- }
191
- ```
192
-
193
- ### Contributions
194
-
195
- Thanks to [@stevhliu](https://github.com/stevhliu) for adding this dataset.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dataset_infos.json DELETED
@@ -1 +0,0 @@
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}}
 
 
default/gnad10-test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:24d5b661a99e7795e42d35a105865ad45e5f130179ad849d6f33021aadf483e8
3
+ size 1760078
default/gnad10-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d63c4dd59a0bd3716dc2f42845dd2597f3796ce42543d29d1dc281b21fd7fca6
3
+ size 15484296
gnad10.py DELETED
@@ -1,88 +0,0 @@
1
- # coding=utf-8
2
- # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
- """Ten Thousand German News Articles Dataset"""
16
-
17
-
18
- import csv
19
-
20
- import datasets
21
- from datasets.tasks import TextClassification
22
-
23
-
24
- _DESCRIPTION = """\
25
- This dataset is intended to advance topic classification for German texts. A classifier that is efffective in
26
- English may not be effective in German dataset because it has a higher inflection and longer compound words.
27
- The 10kGNAD dataset contains 10273 German news articles from an Austrian online newspaper categorized into
28
- 9 categories. Article titles and text are concatenated together and authors are removed to avoid a keyword-like
29
- classification on authors that write frequently about one category. This dataset can be used as a benchmark
30
- for German topic classification.
31
- """
32
-
33
- _HOMEPAGE = "https://tblock.github.io/10kGNAD/"
34
-
35
- _LICENSE = "Creative Commons Attribution-NonCommercial-ShareAlike 4.0"
36
-
37
- _TRAIN_DOWNLOAD_URL = "https://raw.githubusercontent.com/tblock/10kGNAD/master/train.csv"
38
- _TEST_DOWNLOAD_URL = "https://raw.githubusercontent.com/tblock/10kGNAD/master/test.csv"
39
-
40
-
41
- class Gnad10(datasets.GeneratorBasedBuilder):
42
- """10k German news articles for topic classification"""
43
-
44
- VERSION = datasets.Version("1.1.0")
45
-
46
- def _info(self):
47
- return datasets.DatasetInfo(
48
- description=_DESCRIPTION,
49
- features=datasets.Features(
50
- {
51
- "text": datasets.Value("string"),
52
- "label": datasets.features.ClassLabel(
53
- names=[
54
- "Web",
55
- "Panorama",
56
- "International",
57
- "Wirtschaft",
58
- "Sport",
59
- "Inland",
60
- "Etat",
61
- "Wissenschaft",
62
- "Kultur",
63
- ]
64
- ),
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):
72
- """Returns SplitGenerators."""
73
-
74
- train_path = dl_manager.download_and_extract(_TRAIN_DOWNLOAD_URL)
75
- test_path = dl_manager.download_and_extract(_TEST_DOWNLOAD_URL)
76
- return [
77
- datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": train_path}),
78
- datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": test_path}),
79
- ]
80
-
81
- def _generate_examples(self, filepath):
82
- """Generate German news articles examples."""
83
-
84
- with open(filepath, encoding="utf-8") as csv_file:
85
- csv_reader = csv.reader(csv_file, delimiter=";", quotechar="'", quoting=csv.QUOTE_ALL)
86
- for id_, row in enumerate(csv_reader):
87
- label, text = row
88
- yield id_, {"text": text, "label": label}