Datasets:
Tasks:
Text Classification
Modalities:
Text
Sub-tasks:
fact-checking
Size:
10K - 100K
ArXiv:
Tags:
stance-detection
License:
allow download of lfs files
Browse files- x_stance.py +3 -3
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"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"}),
|
|
|
79 |
)
|
80 |
|
81 |
def _split_generators(self, dl_manager):
|
82 |
+
train_text = dl_manager.download_and_extract(f"https://huggingface.co/datasets/strombergnlp/x-stance/resolve/main/x-stance-train-{self.config.name}.csv")
|
83 |
+
valid_text = dl_manager.download_and_extract(f"https://huggingface.co/datasets/strombergnlp/x-stance/resolve/main/x-stance-valid-{self.config.name}.csv")
|
84 |
+
test_text = dl_manager.download_and_extract(f"https://huggingface.co/datasets/strombergnlp/x-stance/resolve/main/x-stance-test-{self.config.name}.csv")
|
85 |
|
86 |
return [
|
87 |
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": train_text, "split": "train"}),
|