Datasets:
Tasks:
Text Classification
Modalities:
Text
Sub-tasks:
fact-checking
Size:
10K - 100K
ArXiv:
Tags:
stance-detection
License:
remove resolve links
Browse files- dataset_infos.json +1 -1
- x_stance.py +3 -3
dataset_infos.json
CHANGED
@@ -1 +1 @@
|
|
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": {"
|
|
|
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.py
CHANGED
@@ -79,9 +79,9 @@ class XStance(datasets.GeneratorBasedBuilder):
|
|
79 |
)
|
80 |
|
81 |
def _split_generators(self, dl_manager):
|
82 |
-
train_text = dl_manager.download_and_extract(f"
|
83 |
-
valid_text = dl_manager.download_and_extract(f"
|
84 |
-
test_text = dl_manager.download_and_extract(f"
|
85 |
|
86 |
return [
|
87 |
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": train_text, "split": "train"}),
|
|
|
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"}),
|