Datasets:

Modalities:
Text
Sub-tasks:
fact-checking
ArXiv:
Libraries:
Datasets
License:
parquet-converter commited on
Commit
c045e69
1 Parent(s): 74ef270

Update parquet files

Browse files
.gitattributes DELETED
@@ -1,38 +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
- *.bz2 filter=lfs diff=lfs merge=lfs -text
5
- *.ftz filter=lfs diff=lfs merge=lfs -text
6
- *.gz filter=lfs diff=lfs merge=lfs -text
7
- *.h5 filter=lfs diff=lfs merge=lfs -text
8
- *.joblib filter=lfs diff=lfs merge=lfs -text
9
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
10
- *.model filter=lfs diff=lfs merge=lfs -text
11
- *.msgpack filter=lfs diff=lfs merge=lfs -text
12
- *.onnx filter=lfs diff=lfs merge=lfs -text
13
- *.ot filter=lfs diff=lfs merge=lfs -text
14
- *.parquet filter=lfs diff=lfs merge=lfs -text
15
- *.pb filter=lfs diff=lfs merge=lfs -text
16
- *.pt filter=lfs diff=lfs merge=lfs -text
17
- *.pth filter=lfs diff=lfs merge=lfs -text
18
- *.rar filter=lfs diff=lfs merge=lfs -text
19
- saved_model/**/* filter=lfs diff=lfs merge=lfs -text
20
- *.tar.* filter=lfs diff=lfs merge=lfs -text
21
- *.tflite filter=lfs diff=lfs merge=lfs -text
22
- *.tgz filter=lfs diff=lfs merge=lfs -text
23
- *.wasm 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
28
- # Audio files - uncompressed
29
- *.pcm filter=lfs diff=lfs merge=lfs -text
30
- *.sam filter=lfs diff=lfs merge=lfs -text
31
- *.raw filter=lfs diff=lfs merge=lfs -text
32
- # Audio files - compressed
33
- *.aac filter=lfs diff=lfs merge=lfs -text
34
- *.flac filter=lfs diff=lfs merge=lfs -text
35
- *.mp3 filter=lfs diff=lfs merge=lfs -text
36
- *.ogg filter=lfs diff=lfs merge=lfs -text
37
- *.wav filter=lfs diff=lfs merge=lfs -text
38
- *.csv filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md DELETED
@@ -1,168 +0,0 @@
1
- ---
2
- annotations_creators:
3
- - crowdsourced
4
- language_creators:
5
- - found
6
- language:
7
- - de
8
- - fr
9
- license:
10
- - mit
11
- multilinguality:
12
- - multilingual
13
- size_categories:
14
- - 10K<n<100K
15
- source_datasets: []
16
- task_categories:
17
- - text-classification
18
- task_ids:
19
- - fact-checking
20
- pretty_name: X-Stance
21
- tags:
22
- - stance-detection
23
- ---
24
-
25
- # Dataset Card for X-Stance
26
-
27
- ## Table of Contents
28
- - [Table of Contents](#table-of-contents)
29
- - [Dataset Description](#dataset-description)
30
- - [Dataset Summary](#dataset-summary)
31
- - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
32
- - [Languages](#languages)
33
- - [Dataset Structure](#dataset-structure)
34
- - [Data Instances](#data-instances)
35
- - [Data Fields](#data-fields)
36
- - [Data Splits](#data-splits)
37
- - [Dataset Creation](#dataset-creation)
38
- - [Curation Rationale](#curation-rationale)
39
- - [Source Data](#source-data)
40
- - [Annotations](#annotations)
41
- - [Personal and Sensitive Information](#personal-and-sensitive-information)
42
- - [Considerations for Using the Data](#considerations-for-using-the-data)
43
- - [Social Impact of Dataset](#social-impact-of-dataset)
44
- - [Discussion of Biases](#discussion-of-biases)
45
- - [Other Known Limitations](#other-known-limitations)
46
- - [Additional Information](#additional-information)
47
- - [Dataset Curators](#dataset-curators)
48
- - [Licensing Information](#licensing-information)
49
- - [Citation Information](#citation-information)
50
- - [Contributions](#contributions)
51
-
52
- ## Dataset Description
53
-
54
- - **Repository:** [https://github.com/ZurichNLP/xstance](https://github.com/ZurichNLP/xstance)
55
- - **Paper:** [http://ceur-ws.org/Vol-2624/paper9.pdf](http://ceur-ws.org/Vol-2624/paper9.pdf), [https://arxiv.org/abs/2003.08385](https://arxiv.org/abs/2003.08385)
56
- - **Point of Contact:** [Jannis Vamvas](https://twitter.com/j_vamvas)
57
-
58
- ### Dataset Summary
59
-
60
- The x-stance dataset contains more than 150 political questions, and 67k comments written by candidates on those questions. The comments are partly German, partly French and Italian. The data have been extracted from the Swiss voting advice platform Smartvote.
61
-
62
- ### Languages
63
-
64
- German, French/Italian
65
-
66
- ## Dataset Structure
67
-
68
- ### Data Instances
69
- An example of 'train' looks as follows:
70
- ```
71
- {
72
- 'id': '0',
73
- 'question': 'Eine Volksinitiative fordert, dass die Gesamtfläche der Bauzonen in der Schweiz für die nächsten 20 Jahre auf dem heutigen Stand begrenzt wird. Befürworten Sie dieses Anliegen?',
74
- 'comment': 'Eine fixe Grösse verbieten, ist das falsche Mittel', '
75
- 'label': 0
76
- }
77
- ```
78
-
79
- ### Data Fields
80
-
81
- - `id`: a 'string' feature.
82
- - `question`: a 'string' expressing a claim/topic.
83
- - `comment`: a 'string' to be classified for its stance to the source.
84
- - `label`:
85
- ```
86
- 0: "AGAINST",
87
- 1: "FAVOR"
88
- ```
89
-
90
- ### Data Splits
91
-
92
- |languages|name|instances|
93
- |---------|----|----:|
94
- |de|train|33850|
95
- |de|validation|2871|
96
- |de|test|11891|
97
- |fr|train|11790|
98
- |fr|validation|1055|
99
- |fr|test|5814|
100
-
101
- ## Dataset Creation
102
-
103
- ### Curation Rationale
104
-
105
- [More Information Needed]
106
-
107
- ### Source Data
108
-
109
- #### Initial Data Collection and Normalization
110
-
111
- [More Information Needed]
112
-
113
- #### Who are the source language producers?
114
-
115
- [More Information Needed]
116
-
117
- ### Annotations
118
-
119
- #### Annotation process
120
-
121
- [More Information Needed]
122
-
123
- #### Who are the annotators?
124
-
125
- [More Information Needed]
126
-
127
- ### Personal and Sensitive Information
128
-
129
- [More Information Needed]
130
-
131
- ## Considerations for Using the Data
132
-
133
- ### Social Impact of Dataset
134
-
135
- [More Information Needed]
136
-
137
- ### Discussion of Biases
138
-
139
- [More Information Needed]
140
-
141
- ### Other Known Limitations
142
-
143
- [More Information Needed]
144
-
145
- ## Additional Information
146
-
147
- ### Dataset Curators
148
-
149
- [More Information Needed]
150
-
151
- ### Licensing Information
152
-
153
- [MIT License](https://github.com/ZurichNLP/xstance/blob/master/LICENSE)
154
-
155
- ### Citation Information
156
-
157
- ```
158
- @article{vamvas2020x,
159
- title={X-stance: A multilingual multi-target dataset for stance detection},
160
- author={Vamvas, Jannis and Sennrich, Rico},
161
- journal={arXiv preprint arXiv:2003.08385},
162
- year={2020}
163
- }
164
- ```
165
-
166
- ### Contributions
167
-
168
- Thanks to [mkonxd](https://github.com/mkonxd), [leondz](https://github.com/leondz) for adding this dataset.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dataset_infos.json DELETED
@@ -1 +0,0 @@
1
- {"de": {"description": "The x-stance dataset contains more than 150 political questions, and 67k comments written by candidates on those questions. The comments are partly German, partly French and Italian. The data have been extracted from the Swiss voting advice platform Smartvote.\n", "citation": "@inproceedings{vamvas2020xstance,\n author = \"Vamvas, Jannis and Sennrich, Rico\",\n title = \"{X-Stance}: A Multilingual Multi-Target Dataset for Stance Detection\",\n booktitle = \"Proceedings of the 5th Swiss Text Analytics Conference (SwissText) \\& 16th Conference on Natural Language Processing (KONVENS)\",\n address = \"Zurich, Switzerland\",\n year = \"2020\",\n month = \"jun\",\n url = \"http://ceur-ws.org/Vol-2624/paper9.pdf\"\n}\n", "homepage": "", "license": "cc-by-4.0", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "question": {"dtype": "string", "id": null, "_type": "Value"}, "comment": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 2, "names": ["AGAINST", "FAVOR"], "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "x_stance", "config_name": "de", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 11290213, "num_examples": 33850, "dataset_name": "x_stance"}, "validation": {"name": "validation", "num_bytes": 954346, "num_examples": 2871, "dataset_name": "x_stance"}, "test": {"name": "test", "num_bytes": 3788752, "num_examples": 11891, "dataset_name": "x_stance"}}, "download_checksums": {"x-stance-train-de.csv": {"num_bytes": 11023000, "checksum": "74842e9dd186851c4b71b8da57987c92cca29a9c86acd99dc057e32e507976c8"}, "x-stance-valid-de.csv": {"num_bytes": 931688, "checksum": "99b81cca23ffe41b3f5d4576c293f0265dada74dd49368a251934712456c834c"}, "x-stance-test-de.csv": {"num_bytes": 3694416, "checksum": "9ce9fc600881a052fb48b6e58f2485b0d7a86a9fda23679574acf37426c9b478"}}, "download_size": 15649104, "post_processing_size": null, "dataset_size": 16033311, "size_in_bytes": 31682415}, "fr": {"description": "The x-stance dataset contains more than 150 political questions, and 67k comments written by candidates on those questions. The comments are partly German, partly French and Italian. The data have been extracted from the Swiss voting advice platform Smartvote.\n", "citation": "@inproceedings{vamvas2020xstance,\n author = \"Vamvas, Jannis and Sennrich, Rico\",\n title = \"{X-Stance}: A Multilingual Multi-Target Dataset for Stance Detection\",\n booktitle = \"Proceedings of the 5th Swiss Text Analytics Conference (SwissText) \\& 16th Conference on Natural Language Processing (KONVENS)\",\n address = \"Zurich, Switzerland\",\n year = \"2020\",\n month = \"jun\",\n url = \"http://ceur-ws.org/Vol-2624/paper9.pdf\"\n}\n", "homepage": "", "license": "cc-by-4.0", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "question": {"dtype": "string", "id": null, "_type": "Value"}, "comment": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 2, "names": ["AGAINST", "FAVOR"], "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "x_stance", "config_name": "fr", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 4357694, "num_examples": 11790, "dataset_name": "x_stance"}, "validation": {"name": "validation", "num_bytes": 378539, "num_examples": 1055, "dataset_name": "x_stance"}, "test": {"name": "test", "num_bytes": 2035193, "num_examples": 5814, "dataset_name": "x_stance"}}, "download_checksums": {"x-stance-train-fr.csv": {"num_bytes": 4260329, "checksum": "01c3d47b3758263a0b1e07d9bb124d9fa91eeaaa44fb002a2f6a41a3e3d76c30"}, "x-stance-valid-fr.csv": {"num_bytes": 369863, "checksum": "5886d34e849610c565172f0d0138dac3d645ab9e34251c46af89f8a6756f6eef"}, "x-stance-test-fr.csv": {"num_bytes": 1986935, "checksum": "ce413cd614f6a345125d1f2d692a31f9c017c48bd1b741eb86c815f4da4444f0"}}, "download_size": 6617127, "post_processing_size": null, "dataset_size": 6771426, "size_in_bytes": 13388553}}
 
 
x-stance-test-fr.csv → de/x-stance-test.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ce413cd614f6a345125d1f2d692a31f9c017c48bd1b741eb86c815f4da4444f0
3
- size 1986935
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7355053ef8b9e634d40032a265123315980326fe298163ab610ff7255154d7fe
3
+ size 1386420
x-stance-train-fr.csv → de/x-stance-train.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:01c3d47b3758263a0b1e07d9bb124d9fa91eeaaa44fb002a2f6a41a3e3d76c30
3
- size 4260329
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:290eb612633f696e61f63223780a27457028a7188e898aa781103e66fbab4d87
3
+ size 4238472
x-stance-valid-fr.csv → de/x-stance-validation.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5886d34e849610c565172f0d0138dac3d645ab9e34251c46af89f8a6756f6eef
3
- size 369863
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9b2cb504b0494096dbc520f5bf717d65159e7c3e57608798f20e5f8a9cbb87d2
3
+ size 379969
x-stance-valid-de.csv → fr/x-stance-test.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:99b81cca23ffe41b3f5d4576c293f0265dada74dd49368a251934712456c834c
3
- size 931688
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cca640a7e6f9fca5c0cf7507926edfcf750bb4d1000789b3592ea63169261d3a
3
+ size 753427
x-stance-test-de.csv → fr/x-stance-train.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:9ce9fc600881a052fb48b6e58f2485b0d7a86a9fda23679574acf37426c9b478
3
- size 3694416
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:209b069da7c09b9e6bb54ffd15a9ec969be17f9b0dcf3726122ef842bdeafadd
3
+ size 1596383
fr/x-stance-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:deb48ab38286b67e08d3f123196216c784d14810192c9f624f1dd40fdea1076e
3
+ size 153429
x-stance-train-de.csv DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:74842e9dd186851c4b71b8da57987c92cca29a9c86acd99dc057e32e507976c8
3
- size 11023000
 
 
 
 
x-stance.py DELETED
@@ -1,102 +0,0 @@
1
- # Copyright 2022 Mads Kongsbak and Leon Derczynski
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
- """X-stance dataset for German and French/Italian stance detection"""
15
-
16
-
17
- import csv
18
- import json
19
- import os
20
-
21
- import datasets
22
-
23
- _CITATION = """\
24
- @inproceedings{vamvas2020xstance,
25
- author = "Vamvas, Jannis and Sennrich, Rico",
26
- title = "{X-Stance}: A Multilingual Multi-Target Dataset for Stance Detection",
27
- booktitle = "Proceedings of the 5th Swiss Text Analytics Conference (SwissText) \& 16th Conference on Natural Language Processing (KONVENS)",
28
- address = "Zurich, Switzerland",
29
- year = "2020",
30
- month = "jun",
31
- url = "http://ceur-ws.org/Vol-2624/paper9.pdf"
32
- }
33
- """
34
-
35
- _DESCRIPTION = """\
36
- The x-stance dataset contains more than 150 political questions, and 67k comments written by candidates on those questions. The comments are partly German, partly French and Italian. The data have been extracted from the Swiss voting advice platform Smartvote.
37
- """
38
-
39
- _HOMEPAGE = ""
40
-
41
- _LICENSE = "cc-by-4.0"
42
-
43
- class XStanceConfig(datasets.BuilderConfig):
44
-
45
- def __init__(self, **kwargs):
46
- super(XStanceConfig, self).__init__(**kwargs)
47
-
48
- class XStance(datasets.GeneratorBasedBuilder):
49
- """The x-stance dataset split into two datasets in German and French/Italian"""
50
-
51
- VERSION = datasets.Version("1.0.0")
52
-
53
- BUILDER_CONFIGS = [
54
- XStanceConfig(name="de", version=VERSION, description=""),
55
- XStanceConfig(name="fr", version=VERSION, description="")
56
- ]
57
-
58
- def _info(self):
59
- features = datasets.Features(
60
- {
61
- "id": datasets.Value("string"),
62
- "question": datasets.Value("string"),
63
- "comment": datasets.Value("string"),
64
- "label": datasets.features.ClassLabel(
65
- names=[
66
- "AGAINST",
67
- "FAVOR",
68
- ]
69
- )
70
- }
71
- )
72
-
73
- return datasets.DatasetInfo(
74
- description=_DESCRIPTION,
75
- features=features,
76
- homepage=_HOMEPAGE,
77
- license=_LICENSE,
78
- citation=_CITATION,
79
- )
80
-
81
- def _split_generators(self, dl_manager):
82
- train_text = dl_manager.download_and_extract(f"x-stance-train-{self.config.name}.csv")
83
- valid_text = dl_manager.download_and_extract(f"x-stance-valid-{self.config.name}.csv")
84
- test_text = dl_manager.download_and_extract(f"x-stance-test-{self.config.name}.csv")
85
-
86
- return [
87
- datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": train_text, "split": "train"}),
88
- datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": valid_text, "split": "validation"}),
89
- datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": test_text, "split": "test"}),
90
- ]
91
-
92
- def _generate_examples(self, filepath, split):
93
- with open(filepath, encoding="utf-8") as f:
94
- reader = csv.DictReader(f, delimiter=",")
95
- guid = 0
96
- for instance in reader:
97
- instance["question"] = instance.pop("question")
98
- instance["comment"] = instance.pop("comment")
99
- instance["label"] = instance.pop("label")
100
- instance['id'] = str(guid)
101
- yield guid, instance
102
- guid += 1