Datasets:
Tasks:
Text Classification
Sub-tasks:
fact-checking
Languages:
Arabic
Size:
1K<n<10K
ArXiv:
Tags:
stance-detection
License:
final changes
Browse files- README.md +148 -0
- ans_stance.py +12 -3
- dataset_infos.json +1 -1
README.md
ADDED
@@ -0,0 +1,148 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
annotations_creators:
|
3 |
+
- crowdsourced
|
4 |
+
language_creators:
|
5 |
+
- found
|
6 |
+
languages:
|
7 |
+
- ar
|
8 |
+
licenses:
|
9 |
+
- apache-2.0
|
10 |
+
multilinguality:
|
11 |
+
- monolingual
|
12 |
+
pretty_name: ans-stance
|
13 |
+
size_categories:
|
14 |
+
- 1K<n<10K
|
15 |
+
source_datasets:
|
16 |
+
- original
|
17 |
+
task_categories:
|
18 |
+
- text-classification
|
19 |
+
task_ids:
|
20 |
+
- fact-checking
|
21 |
+
- text-classification-other-stance-detection
|
22 |
+
---
|
23 |
+
|
24 |
+
# Dataset Card for AraStance
|
25 |
+
## Table of Contents
|
26 |
+
- [Table of Contents](#table-of-contents)
|
27 |
+
- [Dataset Description](#dataset-description)
|
28 |
+
- [Dataset Summary](#dataset-summary)
|
29 |
+
- [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
|
30 |
+
- [Languages](#languages)
|
31 |
+
- [Dataset Structure](#dataset-structure)
|
32 |
+
- [Data Instances](#data-instances)
|
33 |
+
- [Data Fields](#data-fields)
|
34 |
+
- [Data Splits](#data-splits)
|
35 |
+
- [Dataset Creation](#dataset-creation)
|
36 |
+
- [Curation Rationale](#curation-rationale)
|
37 |
+
- [Source Data](#source-data)
|
38 |
+
- [Annotations](#annotations)
|
39 |
+
- [Personal and Sensitive Information](#personal-and-sensitive-information)
|
40 |
+
- [Considerations for Using the Data](#considerations-for-using-the-data)
|
41 |
+
- [Social Impact of Dataset](#social-impact-of-dataset)
|
42 |
+
- [Discussion of Biases](#discussion-of-biases)
|
43 |
+
- [Other Known Limitations](#other-known-limitations)
|
44 |
+
- [Additional Information](#additional-information)
|
45 |
+
- [Dataset Curators](#dataset-curators)
|
46 |
+
- [Licensing Information](#licensing-information)
|
47 |
+
- [Citation Information](#citation-information)
|
48 |
+
- [Contributions](#contributions)
|
49 |
+
|
50 |
+
## Dataset Description
|
51 |
+
- **Repository:** [https://github.com/latynt/ans](https://github.com/latynt/ans)
|
52 |
+
- **Paper:** [https://arxiv.org/abs/2005.10410](https://arxiv.org/abs/2005.10410)
|
53 |
+
- **Point of Contact:** [Jude Khouja]([email protected])
|
54 |
+
|
55 |
+
### Dataset Summary
|
56 |
+
The dataset is a collection of news titles in arabic along with paraphrased and corrupted titles. The stance prediction version is a 3-class classification task. Data contains three columns: s1, s2, stance.
|
57 |
+
|
58 |
+
### Languages
|
59 |
+
Arabic
|
60 |
+
|
61 |
+
## Dataset Structure
|
62 |
+
|
63 |
+
### Data Instances
|
64 |
+
```
|
65 |
+
{
|
66 |
+
'id': '0',
|
67 |
+
's1': 'هجوم صاروخي يستهدف مطار في طرابلس ويجبر ليبيا على تغيير مسار الرحلات الجوية',
|
68 |
+
's2': 'هدوء الاشتباكات فى طرابلس',
|
69 |
+
'stance': 0
|
70 |
+
}
|
71 |
+
|
72 |
+
```
|
73 |
+
|
74 |
+
### Data Fields
|
75 |
+
- `id`: a 'string' feature.
|
76 |
+
- `s1`: a 'string' expressing a claim/topic.
|
77 |
+
- `s2`: a 'string' to be classified for its stance to the source.
|
78 |
+
- `stance`: a class label representing the stance the article expresses towards the claim. Full tagset with indices:
|
79 |
+
```
|
80 |
+
0: "disagree",
|
81 |
+
1: "agree",
|
82 |
+
2: "other",
|
83 |
+
```
|
84 |
+
|
85 |
+
### Data Splits
|
86 |
+
|name|instances|
|
87 |
+
|----|----:|
|
88 |
+
|train|2652|
|
89 |
+
|validation|755|
|
90 |
+
|test|379|
|
91 |
+
|
92 |
+
## Dataset Creation
|
93 |
+
|
94 |
+
### Curation Rationale
|
95 |
+
[More Information Needed]
|
96 |
+
|
97 |
+
### Source Data
|
98 |
+
|
99 |
+
#### Initial Data Collection and Normalization
|
100 |
+
[More Information Needed]
|
101 |
+
|
102 |
+
#### Who are the source language producers?
|
103 |
+
[More Information Needed]
|
104 |
+
|
105 |
+
### Annotations
|
106 |
+
|
107 |
+
#### Annotation process
|
108 |
+
[More Information Needed]
|
109 |
+
|
110 |
+
#### Who are the annotators?
|
111 |
+
[More Information Needed]
|
112 |
+
|
113 |
+
### Personal and Sensitive Information
|
114 |
+
[More Information Needed]
|
115 |
+
|
116 |
+
## Considerations for Using the Data
|
117 |
+
|
118 |
+
### Social Impact of Dataset
|
119 |
+
[More Information Needed]
|
120 |
+
|
121 |
+
### Discussion of Biases
|
122 |
+
[More Information Needed]
|
123 |
+
|
124 |
+
### Other Known Limitations
|
125 |
+
[More Information Needed]
|
126 |
+
|
127 |
+
## Additional Information
|
128 |
+
|
129 |
+
### Dataset Curators
|
130 |
+
The dataset is curated by the paper's authors
|
131 |
+
|
132 |
+
### Licensing Information
|
133 |
+
The authors distribute this data under the Apache License, Version 2.0
|
134 |
+
|
135 |
+
### Citation Information
|
136 |
+
```
|
137 |
+
@inproceedings{,
|
138 |
+
title = "Stance Prediction and Claim Verification: An {A}rabic Perspective",
|
139 |
+
author = "Khouja, Jude",
|
140 |
+
booktitle = "Proceedings of the Third Workshop on Fact Extraction and {VER}ification ({FEVER})",
|
141 |
+
year = "2020",
|
142 |
+
address = "Seattle, USA",
|
143 |
+
publisher = "Association for Computational Linguistics",
|
144 |
+
}
|
145 |
+
```
|
146 |
+
|
147 |
+
### Contributions
|
148 |
+
Thanks to [mkonxd](https://github.com/mkonxd), [leondz](https://github.com/leondz) for adding this dataset.
|
ans_stance.py
CHANGED
@@ -11,7 +11,7 @@
|
|
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 |
-
""""""
|
15 |
|
16 |
|
17 |
import csv
|
@@ -21,14 +21,23 @@ import os
|
|
21 |
import datasets
|
22 |
|
23 |
_CITATION = """\
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
"""
|
25 |
|
26 |
_DESCRIPTION = """\
|
|
|
27 |
"""
|
28 |
|
29 |
_HOMEPAGE = ""
|
30 |
|
31 |
-
_LICENSE = "
|
32 |
|
33 |
class ANSStanceConfig(datasets.BuilderConfig):
|
34 |
|
@@ -36,7 +45,7 @@ class ANSStanceConfig(datasets.BuilderConfig):
|
|
36 |
super(ANSStanceConfig, self).__init__(**kwargs)
|
37 |
|
38 |
class ANSStance(datasets.GeneratorBasedBuilder):
|
39 |
-
""""""
|
40 |
|
41 |
VERSION = datasets.Version("1.0.0")
|
42 |
|
|
|
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 |
+
"""DataLoader for ANS, an Arabic News Stance corpus"""
|
15 |
|
16 |
|
17 |
import csv
|
|
|
21 |
import datasets
|
22 |
|
23 |
_CITATION = """\
|
24 |
+
@inproceedings{,
|
25 |
+
title = "Stance Prediction and Claim Verification: An {A}rabic Perspective",
|
26 |
+
author = "Khouja, Jude",
|
27 |
+
booktitle = "Proceedings of the Third Workshop on Fact Extraction and {VER}ification ({FEVER})",
|
28 |
+
year = "2020",
|
29 |
+
address = "Seattle, USA",
|
30 |
+
publisher = "Association for Computational Linguistics",
|
31 |
+
}
|
32 |
"""
|
33 |
|
34 |
_DESCRIPTION = """\
|
35 |
+
The dataset is a collection of news titles in arabic along with paraphrased and corrupted titles. The stance prediction version is a 3-class classification task. Data contains three columns: s1, s2, stance:
|
36 |
"""
|
37 |
|
38 |
_HOMEPAGE = ""
|
39 |
|
40 |
+
_LICENSE = "apache-2.0"
|
41 |
|
42 |
class ANSStanceConfig(datasets.BuilderConfig):
|
43 |
|
|
|
45 |
super(ANSStanceConfig, self).__init__(**kwargs)
|
46 |
|
47 |
class ANSStance(datasets.GeneratorBasedBuilder):
|
48 |
+
"""ANS dataset made in triples of (s1, s2, stance)"""
|
49 |
|
50 |
VERSION = datasets.Version("1.0.0")
|
51 |
|
dataset_infos.json
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"stance": {"description": "", "citation": "", "homepage": "", "license": "
|
|
|
1 |
+
{"stance": {"description": "The dataset is a collection of news titles in arabic along with paraphrased and corrupted titles. The stance prediction version is a 3-class classification task. Data contains three columns: s1, s2, stance:\n", "citation": "@inproceedings{,\n title = \"Stance Prediction and Claim Verification: An {A}rabic Perspective\", \n author = \"Khouja, Jude\",\n booktitle = \"Proceedings of the Third Workshop on Fact Extraction and {VER}ification ({FEVER})\",\n year = \"2020\",\n address = \"Seattle, USA\",\n publisher = \"Association for Computational Linguistics\",\n}\n", "homepage": "", "license": "apache-2.0", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "s1": {"dtype": "string", "id": null, "_type": "Value"}, "s2": {"dtype": "string", "id": null, "_type": "Value"}, "stance": {"num_classes": 3, "names": ["disagree", "agree", "other"], "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "ans_stance", "config_name": "stance", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 531232, "num_examples": 2652, "dataset_name": "ans_stance"}, "validation": {"name": "validation", "num_bytes": 153125, "num_examples": 755, "dataset_name": "ans_stance"}, "test": {"name": "test", "num_bytes": 76099, "num_examples": 379, "dataset_name": "ans_stance"}}, "download_checksums": {"ans_train.csv": {"num_bytes": 507122, "checksum": "b5486ca4d5f434aaab5025953aeccebffc47181e7918695456fbc26af5e5c7d4"}, "ans_dev.csv": {"num_bytes": 146237, "checksum": "ca7fca0ecaaf5b248d002b104bee54e2d56c32aab9f5fbb7d3ee71d4d88a7621"}, "ans_test.csv": {"num_bytes": 72660, "checksum": "371622ff09260064297197a439fd62ac91c932d8975f3333815746db57f82920"}}, "download_size": 726019, "post_processing_size": null, "dataset_size": 760456, "size_in_bytes": 1486475}}
|