fix splits name
Browse files
SNLIVE.py
CHANGED
|
@@ -55,7 +55,7 @@ _HOMEPAGE = "https://github.com/necla-ml/SNLI-VE"
|
|
| 55 |
_LICENSE = "BSD-3-clause"
|
| 56 |
|
| 57 |
_SNLI_VE_URL_BASE = "https://huggingface.co/datasets/HuggingFaceM4/SNLI-VE/raw/main/"
|
| 58 |
-
|
| 59 |
"train": "snli_ve_train.jsonl",
|
| 60 |
"validation": "snli_ve_dev.jsonl",
|
| 61 |
"test": "snli_ve_test.jsonl",
|
|
@@ -101,9 +101,9 @@ class SNLIVE(datasets.GeneratorBasedBuilder):
|
|
| 101 |
|
| 102 |
urls = {
|
| 103 |
"Default": {
|
| 104 |
-
"train": os.path.join(_SNLI_VE_URL_BASE,
|
| 105 |
-
"validation": os.path.join(_SNLI_VE_URL_BASE,
|
| 106 |
-
"test": os.path.join(_SNLI_VE_URL_BASE,
|
| 107 |
},
|
| 108 |
}
|
| 109 |
snli_ve_annotation_path = dl_manager.download_and_extract(urls)
|
|
|
|
| 55 |
_LICENSE = "BSD-3-clause"
|
| 56 |
|
| 57 |
_SNLI_VE_URL_BASE = "https://huggingface.co/datasets/HuggingFaceM4/SNLI-VE/raw/main/"
|
| 58 |
+
_SNLI_VE_SPLITS = {
|
| 59 |
"train": "snli_ve_train.jsonl",
|
| 60 |
"validation": "snli_ve_dev.jsonl",
|
| 61 |
"test": "snli_ve_test.jsonl",
|
|
|
|
| 101 |
|
| 102 |
urls = {
|
| 103 |
"Default": {
|
| 104 |
+
"train": os.path.join(_SNLI_VE_URL_BASE, _SNLI_VE_SPLITS["train"]),
|
| 105 |
+
"validation": os.path.join(_SNLI_VE_URL_BASE, _SNLI_VE_SPLITS["validation"]),
|
| 106 |
+
"test": os.path.join(_SNLI_VE_URL_BASE, _SNLI_VE_SPLITS["test"]),
|
| 107 |
},
|
| 108 |
}
|
| 109 |
snli_ve_annotation_path = dl_manager.download_and_extract(urls)
|