Datasets:
Commit
•
e8f12cd
1
Parent(s):
78c9226
Update sts-sohu2021.py
Browse files- sts-sohu2021.py +10 -3
sts-sohu2021.py
CHANGED
@@ -77,11 +77,18 @@ class Sohu(datasets.GeneratorBasedBuilder):
|
|
77 |
|
78 |
def _split_generators(self, dl_manager):
|
79 |
# https://huggingface.co/datasets/shibing624/sts-sohu2021/resolve/main/dda.jsonl
|
80 |
-
file_path = f"{_DATA_URL}/{self.config.name}.jsonl"
|
81 |
-
dl_file = dl_manager.download_and_extract(file_path)
|
82 |
return [
|
83 |
datasets.SplitGenerator(
|
84 |
-
name=datasets.Split.TRAIN,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
),
|
86 |
]
|
87 |
|
|
|
77 |
|
78 |
def _split_generators(self, dl_manager):
|
79 |
# https://huggingface.co/datasets/shibing624/sts-sohu2021/resolve/main/dda.jsonl
|
|
|
|
|
80 |
return [
|
81 |
datasets.SplitGenerator(
|
82 |
+
name=datasets.Split.TRAIN,
|
83 |
+
gen_kwargs={
|
84 |
+
"filepath": dl_manager.download_and_extract(f"{_DATA_URL}/{self.config.name}-train.jsonl")
|
85 |
+
}
|
86 |
+
),
|
87 |
+
datasets.SplitGenerator(
|
88 |
+
name=datasets.Split.TEST,
|
89 |
+
gen_kwargs={
|
90 |
+
"filepath": dl_manager.download_and_extract(f"{_DATA_URL}/{self.config.name}-test.jsonl")
|
91 |
+
}
|
92 |
),
|
93 |
]
|
94 |
|