take off default config
Browse files- SNLI-VE.py +3 -6
SNLI-VE.py
CHANGED
@@ -76,7 +76,6 @@ class SNLIVE(datasets.GeneratorBasedBuilder):
|
|
76 |
"""SNLIVE."""
|
77 |
|
78 |
_LOCAL_IMAGE_FOLDER_NAME = "flickr30k-images"
|
79 |
-
DEFAULT_CONFIG_NAME = "Default"
|
80 |
def _info(self):
|
81 |
return datasets.DatasetInfo(
|
82 |
description=_DESCRIPTION,
|
@@ -93,11 +92,9 @@ class SNLIVE(datasets.GeneratorBasedBuilder):
|
|
93 |
)
|
94 |
|
95 |
urls = {
|
96 |
-
"Default": {
|
97 |
"train": os.path.join(_SNLI_VE_URL_BASE, _SNLI_VE_SPLITS["train"]),
|
98 |
"validation": os.path.join(_SNLI_VE_URL_BASE, _SNLI_VE_SPLITS["validation"]),
|
99 |
"test": os.path.join(_SNLI_VE_URL_BASE, _SNLI_VE_SPLITS["test"]),
|
100 |
-
},
|
101 |
}
|
102 |
snli_ve_annotation_path = dl_manager.download_and_extract(urls)
|
103 |
|
@@ -105,21 +102,21 @@ class SNLIVE(datasets.GeneratorBasedBuilder):
|
|
105 |
datasets.SplitGenerator(
|
106 |
name=datasets.Split.TRAIN,
|
107 |
gen_kwargs={
|
108 |
-
"snli_ve_annotation_path": snli_ve_annotation_path[
|
109 |
"images_path": images_path
|
110 |
},
|
111 |
),
|
112 |
datasets.SplitGenerator(
|
113 |
name=datasets.Split.VALIDATION,
|
114 |
gen_kwargs={
|
115 |
-
"snli_ve_annotation_path": snli_ve_annotation_path[
|
116 |
"images_path": images_path
|
117 |
},
|
118 |
),
|
119 |
datasets.SplitGenerator(
|
120 |
name=datasets.Split.TEST,
|
121 |
gen_kwargs={
|
122 |
-
"snli_ve_annotation_path": snli_ve_annotation_path[
|
123 |
"images_path": images_path
|
124 |
},
|
125 |
),
|
|
|
76 |
"""SNLIVE."""
|
77 |
|
78 |
_LOCAL_IMAGE_FOLDER_NAME = "flickr30k-images"
|
|
|
79 |
def _info(self):
|
80 |
return datasets.DatasetInfo(
|
81 |
description=_DESCRIPTION,
|
|
|
92 |
)
|
93 |
|
94 |
urls = {
|
|
|
95 |
"train": os.path.join(_SNLI_VE_URL_BASE, _SNLI_VE_SPLITS["train"]),
|
96 |
"validation": os.path.join(_SNLI_VE_URL_BASE, _SNLI_VE_SPLITS["validation"]),
|
97 |
"test": os.path.join(_SNLI_VE_URL_BASE, _SNLI_VE_SPLITS["test"]),
|
|
|
98 |
}
|
99 |
snli_ve_annotation_path = dl_manager.download_and_extract(urls)
|
100 |
|
|
|
102 |
datasets.SplitGenerator(
|
103 |
name=datasets.Split.TRAIN,
|
104 |
gen_kwargs={
|
105 |
+
"snli_ve_annotation_path": snli_ve_annotation_path["train"],
|
106 |
"images_path": images_path
|
107 |
},
|
108 |
),
|
109 |
datasets.SplitGenerator(
|
110 |
name=datasets.Split.VALIDATION,
|
111 |
gen_kwargs={
|
112 |
+
"snli_ve_annotation_path": snli_ve_annotation_path["validation"],
|
113 |
"images_path": images_path
|
114 |
},
|
115 |
),
|
116 |
datasets.SplitGenerator(
|
117 |
name=datasets.Split.TEST,
|
118 |
gen_kwargs={
|
119 |
+
"snli_ve_annotation_path": snli_ve_annotation_path["test"],
|
120 |
"images_path": images_path
|
121 |
},
|
122 |
),
|