system HF staff commited on
Commit
5e1e5f9
0 Parent(s):

Update files from the datasets library (from 1.2.0)

Browse files

Release notes: https://github.com/huggingface/datasets/releases/tag/1.2.0

.gitattributes ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,148 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators:
3
+ - expert-generated
4
+ language_creators:
5
+ - crowdsourced
6
+ languages:
7
+ catalan:
8
+ - ca
9
+ spanish:
10
+ - es
11
+ licenses:
12
+ - cc-by-nc-sa-4-0
13
+ multilinguality:
14
+ - monolingual
15
+ size_categories:
16
+ - 10K<n<100K
17
+ source_datasets:
18
+ - original
19
+ task_categories:
20
+ - text-classification
21
+ task_ids:
22
+ - text-classification-other-stance-detection
23
+ ---
24
+
25
+ # Dataset Card for Catalonia Independence Corpus
26
+
27
+ ## Table of Contents
28
+ - [Dataset Card for [Dataset Name]](#dataset-card-for-dataset-name)
29
+ - [Table of Contents](#table-of-contents)
30
+ - [Dataset Description](#dataset-description)
31
+ - [Dataset Summary](#dataset-summary)
32
+ - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
33
+ - [Languages](#languages)
34
+ - [Dataset Structure](#dataset-structure)
35
+ - [Data Instances](#data-instances)
36
+ - [Data Fields](#data-fields)
37
+ - [Data Splits](#data-splits)
38
+ - [Dataset Creation](#dataset-creation)
39
+ - [Curation Rationale](#curation-rationale)
40
+ - [Source Data](#source-data)
41
+ - [Initial Data Collection and Normalization](#initial-data-collection-and-normalization)
42
+ - [Who are the source language producers?](#who-are-the-source-language-producers)
43
+ - [Annotations](#annotations)
44
+ - [Annotation process](#annotation-process)
45
+ - [Who are the annotators?](#who-are-the-annotators)
46
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
47
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
48
+ - [Social Impact of Dataset](#social-impact-of-dataset)
49
+ - [Discussion of Biases](#discussion-of-biases)
50
+ - [Other Known Limitations](#other-known-limitations)
51
+ - [Additional Information](#additional-information)
52
+ - [Dataset Curators](#dataset-curators)
53
+ - [Licensing Information](#licensing-information)
54
+ - [Citation Information](#citation-information)
55
+
56
+ ## Dataset Description
57
+
58
+ - **Homepage:** https://github.com/ixa-ehu/catalonia-independence-corpus
59
+ - **Repository:** https://github.com/ixa-ehu/catalonia-independence-corpus
60
+ - **Paper:** [Multilingual Stance Detection: The Catalonia Independence Corpus](https://www.aclweb.org/anthology/2020.lrec-1.171/)
61
+ - **Leaderboard:**
62
+ - **Point of Contact:** [Rodrigo Agerri](https://github.com/ragerri) (corpus creator)
63
+
64
+ ### Dataset Summary
65
+
66
+ This dataset contains two corpora in Spanish and Catalan that consist of annotated Twitter messages for automatic stance detection. The data was collected over 12 days during February and March of 2019 from tweets posted in Barcelona, and during September of 2018 from tweets posted in the town of Terrassa, Catalonia.
67
+
68
+ Each corpus is annotated with three classes: AGAINST, FAVOR and NEUTRAL, which express the stance towards the target - independence of Catalonia.
69
+
70
+ ### Supported Tasks and Leaderboards
71
+
72
+ [More Information Needed]
73
+
74
+ ### Languages
75
+
76
+ Spanish and Catalan
77
+
78
+ ## Dataset Structure
79
+
80
+ ### Data Instances
81
+
82
+ [More Information Needed]
83
+
84
+ ### Data Fields
85
+
86
+ [More Information Needed]
87
+
88
+ ### Data Splits
89
+
90
+ [More Information Needed]
91
+
92
+ ## Dataset Creation
93
+
94
+ ### Curation Rationale
95
+
96
+ [More Information Needed]
97
+
98
+ ### Source Data
99
+
100
+ #### Initial Data Collection and Normalization
101
+
102
+ [More Information Needed]
103
+
104
+ #### Who are the source language producers?
105
+
106
+ [More Information Needed]
107
+
108
+ ### Annotations
109
+
110
+ #### Annotation process
111
+
112
+ [More Information Needed]
113
+
114
+ #### Who are the annotators?
115
+
116
+ [More Information Needed]
117
+
118
+ ### Personal and Sensitive Information
119
+
120
+ [More Information Needed]
121
+
122
+ ## Considerations for Using the Data
123
+
124
+ ### Social Impact of Dataset
125
+
126
+ [More Information Needed]
127
+
128
+ ### Discussion of Biases
129
+
130
+ [More Information Needed]
131
+
132
+ ### Other Known Limitations
133
+
134
+ [More Information Needed]
135
+
136
+ ## Additional Information
137
+
138
+ ### Dataset Curators
139
+
140
+ [More Information Needed]
141
+
142
+ ### Licensing Information
143
+
144
+ [More Information Needed]
145
+
146
+ ### Citation Information
147
+
148
+ [More Information Needed]
catalonia_independence.py ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ """This dataset contains two corpora in Spanish and Catalan that consist of annotated Twitter messages for automatic stance detection."""
16
+
17
+ from __future__ import absolute_import, division, print_function
18
+
19
+ import csv
20
+ import os
21
+
22
+ import datasets
23
+
24
+
25
+ _CITATION = """\
26
+ @inproceedings{zotova-etal-2020-multilingual,
27
+ title = "Multilingual Stance Detection in Tweets: The {C}atalonia Independence Corpus",
28
+ author = "Zotova, Elena and
29
+ Agerri, Rodrigo and
30
+ Nunez, Manuel and
31
+ Rigau, German",
32
+ booktitle = "Proceedings of the 12th Language Resources and Evaluation Conference",
33
+ month = may,
34
+ year = "2020",
35
+ address = "Marseille, France",
36
+ publisher = "European Language Resources Association",
37
+ url = "https://www.aclweb.org/anthology/2020.lrec-1.171",
38
+ pages = "1368--1375",
39
+ abstract = "Stance detection aims to determine the attitude of a given text with respect to a specific topic or claim. While stance detection has been fairly well researched in the last years, most the work has been focused on English. This is mainly due to the relative lack of annotated data in other languages. The TW-10 referendum Dataset released at IberEval 2018 is a previous effort to provide multilingual stance-annotated data in Catalan and Spanish. Unfortunately, the TW-10 Catalan subset is extremely imbalanced. This paper addresses these issues by presenting a new multilingual dataset for stance detection in Twitter for the Catalan and Spanish languages, with the aim of facilitating research on stance detection in multilingual and cross-lingual settings. The dataset is annotated with stance towards one topic, namely, the ndependence of Catalonia. We also provide a semi-automatic method to annotate the dataset based on a categorization of Twitter users. We experiment on the new corpus with a number of supervised approaches, including linear classifiers and deep learning methods. Comparison of our new corpus with the with the TW-1O dataset shows both the benefits and potential of a well balanced corpus for multilingual and cross-lingual research on stance detection. Finally, we establish new state-of-the-art results on the TW-10 dataset, both for Catalan and Spanish.",
40
+ language = "English",
41
+ ISBN = "979-10-95546-34-4",
42
+ }
43
+ """
44
+
45
+ _DESCRIPTION = """\
46
+ This dataset contains two corpora in Spanish and Catalan that consist of annotated Twitter messages for automatic stance detection. The data was collected over 12 days during February and March of 2019 from tweets posted in Barcelona, and during September of 2018 from tweets posted in the town of Terrassa, Catalonia.
47
+
48
+ Each corpus is annotated with three classes: AGAINST, FAVOR and NEUTRAL, which express the stance towards the target - independence of Catalonia.
49
+ """
50
+
51
+ _HOMEPAGE = "https://github.com/ixa-ehu/catalonia-independence-corpus"
52
+
53
+ _LICENSE = "CC BY-NC-SA 4.0"
54
+
55
+ _URLs = {
56
+ "catalan": "https://github.com/ixa-ehu/catalonia-independence-corpus/raw/master/01_CIC_CA.zip",
57
+ "spanish": "https://github.com/ixa-ehu/catalonia-independence-corpus/raw/master/02_CIC_ES.zip",
58
+ }
59
+
60
+
61
+ class CataloniaIndependence(datasets.GeneratorBasedBuilder):
62
+ """This dataset contains two corpora in Spanish and Catalan that consist of annotated Twitter messages for automatic stance detection."""
63
+
64
+ VERSION = datasets.Version("1.1.0")
65
+
66
+ BUILDER_CONFIGS = [
67
+ datasets.BuilderConfig(
68
+ name="catalan",
69
+ version=VERSION,
70
+ description="This part of the corpus contains annotated tweets posted in Catalan.",
71
+ ),
72
+ datasets.BuilderConfig(
73
+ name="spanish",
74
+ version=VERSION,
75
+ description="This part of the corpus contains annotated tweets posted in Spanish.",
76
+ ),
77
+ ]
78
+
79
+ DEFAULT_CONFIG_NAME = "catalan"
80
+
81
+ def _info(self):
82
+ features = datasets.Features(
83
+ {
84
+ "id_str": datasets.Value("string"),
85
+ "TWEET": datasets.Value("string"),
86
+ "LABEL": datasets.ClassLabel(names=["AGAINST", "FAVOR", "NEUTRAL"]),
87
+ }
88
+ )
89
+ return datasets.DatasetInfo(
90
+ description=_DESCRIPTION,
91
+ features=features,
92
+ supervised_keys=None,
93
+ homepage=_HOMEPAGE,
94
+ license=_LICENSE,
95
+ citation=_CITATION,
96
+ )
97
+
98
+ def _split_generators(self, dl_manager):
99
+ data_dir = dl_manager.download_and_extract(_URLs[self.config.name])
100
+ return [
101
+ datasets.SplitGenerator(
102
+ name=datasets.Split.TRAIN,
103
+ gen_kwargs={"filepath": os.path.join(data_dir, f"{self.config.name}_train.csv")},
104
+ ),
105
+ datasets.SplitGenerator(
106
+ name=datasets.Split.TEST,
107
+ gen_kwargs={"filepath": os.path.join(data_dir, f"{self.config.name}_test.csv")},
108
+ ),
109
+ datasets.SplitGenerator(
110
+ name=datasets.Split.VALIDATION,
111
+ gen_kwargs={"filepath": os.path.join(data_dir, f"{self.config.name}_val.csv")},
112
+ ),
113
+ ]
114
+
115
+ def _generate_examples(self, filepath):
116
+ with open(filepath, encoding="utf-8") as csv_file:
117
+ csv_reader = csv.reader(csv_file, delimiter="\t")
118
+ # skip header
119
+ next(csv_reader)
120
+ for _id, row in enumerate(csv_reader):
121
+ yield _id, {"id_str": row[0], "TWEET": row[1], "LABEL": row[2]}
dataset_infos.json ADDED
@@ -0,0 +1 @@
 
1
+ {"catalan": {"description": "This dataset contains two corpora in Spanish and Catalan that consist of annotated Twitter messages for automatic stance detection. The data was collected over 12 days during February and March of 2019 from tweets posted in Barcelona, and during September of 2018 from tweets posted in the town of Terrassa, Catalonia.\n\nEach corpus is annotated with three classes: AGAINST, FAVOR and NEUTRAL, which express the stance towards the target - independence of Catalonia.\n", "citation": "@inproceedings{zotova-etal-2020-multilingual,\n title = \"Multilingual Stance Detection in Tweets: The {C}atalonia Independence Corpus\",\n author = \"Zotova, Elena and\n Agerri, Rodrigo and\n Nunez, Manuel and\n Rigau, German\",\n booktitle = \"Proceedings of the 12th Language Resources and Evaluation Conference\",\n month = may,\n year = \"2020\",\n address = \"Marseille, France\",\n publisher = \"European Language Resources Association\",\n url = \"https://www.aclweb.org/anthology/2020.lrec-1.171\",\n pages = \"1368--1375\",\n abstract = \"Stance detection aims to determine the attitude of a given text with respect to a specific topic or claim. While stance detection has been fairly well researched in the last years, most the work has been focused on English. This is mainly due to the relative lack of annotated data in other languages. The TW-10 referendum Dataset released at IberEval 2018 is a previous effort to provide multilingual stance-annotated data in Catalan and Spanish. Unfortunately, the TW-10 Catalan subset is extremely imbalanced. This paper addresses these issues by presenting a new multilingual dataset for stance detection in Twitter for the Catalan and Spanish languages, with the aim of facilitating research on stance detection in multilingual and cross-lingual settings. The dataset is annotated with stance towards one topic, namely, the ndependence of Catalonia. We also provide a semi-automatic method to annotate the dataset based on a categorization of Twitter users. We experiment on the new corpus with a number of supervised approaches, including linear classifiers and deep learning methods. Comparison of our new corpus with the with the TW-1O dataset shows both the benefits and potential of a well balanced corpus for multilingual and cross-lingual research on stance detection. Finally, we establish new state-of-the-art results on the TW-10 dataset, both for Catalan and Spanish.\",\n language = \"English\",\n ISBN = \"979-10-95546-34-4\",\n}\n", "homepage": "https://github.com/ixa-ehu/catalonia-independence-corpus", "license": "CC BY-NC-SA 4.0", "features": {"id_str": {"dtype": "string", "id": null, "_type": "Value"}, "TWEET": {"dtype": "string", "id": null, "_type": "Value"}, "LABEL": {"num_classes": 3, "names": ["AGAINST", "FAVOR", "NEUTRAL"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "builder_name": "catalonia_independence", "config_name": "catalan", "version": {"version_str": "1.1.0", "description": null, "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 1406250, "num_examples": 6028, "dataset_name": "catalonia_independence"}, "test": {"name": "test", "num_bytes": 469204, "num_examples": 2010, "dataset_name": "catalonia_independence"}, "validation": {"name": "validation", "num_bytes": 473393, "num_examples": 2010, "dataset_name": "catalonia_independence"}}, "download_checksums": {"https://github.com/ixa-ehu/catalonia-independence-corpus/raw/master/01_CIC_CA.zip": {"num_bytes": 995415, "checksum": "c8312c4d1355e414171d166cac5ba3fa97734ebc639b02c2b6f7995cb15c75d9"}}, "download_size": 995415, "post_processing_size": null, "dataset_size": 2348847, "size_in_bytes": 3344262}, "spanish": {"description": "This dataset contains two corpora in Spanish and Catalan that consist of annotated Twitter messages for automatic stance detection. The data was collected over 12 days during February and March of 2019 from tweets posted in Barcelona, and during September of 2018 from tweets posted in the town of Terrassa, Catalonia.\n\nEach corpus is annotated with three classes: AGAINST, FAVOR and NEUTRAL, which express the stance towards the target - independence of Catalonia.\n", "citation": "@inproceedings{zotova-etal-2020-multilingual,\n title = \"Multilingual Stance Detection in Tweets: The {C}atalonia Independence Corpus\",\n author = \"Zotova, Elena and\n Agerri, Rodrigo and\n Nunez, Manuel and\n Rigau, German\",\n booktitle = \"Proceedings of the 12th Language Resources and Evaluation Conference\",\n month = may,\n year = \"2020\",\n address = \"Marseille, France\",\n publisher = \"European Language Resources Association\",\n url = \"https://www.aclweb.org/anthology/2020.lrec-1.171\",\n pages = \"1368--1375\",\n abstract = \"Stance detection aims to determine the attitude of a given text with respect to a specific topic or claim. While stance detection has been fairly well researched in the last years, most the work has been focused on English. This is mainly due to the relative lack of annotated data in other languages. The TW-10 referendum Dataset released at IberEval 2018 is a previous effort to provide multilingual stance-annotated data in Catalan and Spanish. Unfortunately, the TW-10 Catalan subset is extremely imbalanced. This paper addresses these issues by presenting a new multilingual dataset for stance detection in Twitter for the Catalan and Spanish languages, with the aim of facilitating research on stance detection in multilingual and cross-lingual settings. The dataset is annotated with stance towards one topic, namely, the ndependence of Catalonia. We also provide a semi-automatic method to annotate the dataset based on a categorization of Twitter users. We experiment on the new corpus with a number of supervised approaches, including linear classifiers and deep learning methods. Comparison of our new corpus with the with the TW-1O dataset shows both the benefits and potential of a well balanced corpus for multilingual and cross-lingual research on stance detection. Finally, we establish new state-of-the-art results on the TW-10 dataset, both for Catalan and Spanish.\",\n language = \"English\",\n ISBN = \"979-10-95546-34-4\",\n}\n", "homepage": "https://github.com/ixa-ehu/catalonia-independence-corpus", "license": "CC BY-NC-SA 4.0", "features": {"id_str": {"dtype": "string", "id": null, "_type": "Value"}, "TWEET": {"dtype": "string", "id": null, "_type": "Value"}, "LABEL": {"num_classes": 3, "names": ["AGAINST", "FAVOR", "NEUTRAL"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "builder_name": "catalonia_independence", "config_name": "spanish", "version": {"version_str": "1.1.0", "description": null, "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 1507388, "num_examples": 6046, "dataset_name": "catalonia_independence"}, "test": {"name": "test", "num_bytes": 501783, "num_examples": 2016, "dataset_name": "catalonia_independence"}, "validation": {"name": "validation", "num_bytes": 505092, "num_examples": 2015, "dataset_name": "catalonia_independence"}}, "download_checksums": {"https://github.com/ixa-ehu/catalonia-independence-corpus/raw/master/02_CIC_ES.zip": {"num_bytes": 1070281, "checksum": "eb717f7074d5a7c9ef596049bab890ca8a1bae9ac0bad12ef70dc3ae09f068ab"}}, "download_size": 1070281, "post_processing_size": null, "dataset_size": 2514263, "size_in_bytes": 3584544}}
dummy/catalan/1.1.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7b4a781aef9a99c1e7bd618c17ced47d8200f33d14891a89f4ec43ee61297019
3
+ size 2593
dummy/spanish/1.1.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4dfc0209e7e23a77948ef0719d590fe7da7ce023102b851598e637048ac6762f
3
+ size 2552