Datasets:
update
Browse files- SuperLim.py +3 -4
- data/DaLAJ.tar.xz +0 -0
- data/DaLAJ/dev.csv +0 -0
- data/DaLAJ/test.csv +0 -0
- data/DaLAJ/train.csv +0 -0
SuperLim.py
CHANGED
@@ -18,7 +18,6 @@
|
|
18 |
|
19 |
import json
|
20 |
import os
|
21 |
-
|
22 |
import datasets
|
23 |
|
24 |
_CITATION = """\
|
@@ -127,7 +126,7 @@ The Swedish Word-in-Context dataset provides a benchmark for evaluating distribu
|
|
127 |
# This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
|
128 |
_URL = "https://huggingface.co/datasets/AI-Sweden/SuperLim/resolve/main/data/"
|
129 |
_TASKS = {
|
130 |
-
"dalaj": "DaLAJ",
|
131 |
"sweana": "SweAna",
|
132 |
"swediag": "SweDiag",
|
133 |
"swefaq": "SweFaq",
|
@@ -168,8 +167,6 @@ class SuperLim(datasets.GeneratorBasedBuilder):
|
|
168 |
datasets.BuilderConfig(name="swewsc", version=VERSION, description=_SweWsc_DESCRIPTION),
|
169 |
]
|
170 |
|
171 |
-
DEFAULT_CONFIG_NAME = "swewic" # It's not mandatory to have a default configuration. Just use one if it make sense.
|
172 |
-
|
173 |
|
174 |
def _info(self):
|
175 |
# TODO: This method specifies the datasets.DatasetInfo object which contains informations and typings for the dataset
|
@@ -215,6 +212,8 @@ class SuperLim(datasets.GeneratorBasedBuilder):
|
|
215 |
# By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
|
216 |
#urls = _URLS[self.config.name]
|
217 |
data_dir = dl_manager.download_and_extract(os.path.join(_URL,_TASKS[self.config.name]))
|
|
|
|
|
218 |
return [
|
219 |
datasets.SplitGenerator(
|
220 |
name=datasets.Split.TRAIN,
|
|
|
18 |
|
19 |
import json
|
20 |
import os
|
|
|
21 |
import datasets
|
22 |
|
23 |
_CITATION = """\
|
|
|
126 |
# This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
|
127 |
_URL = "https://huggingface.co/datasets/AI-Sweden/SuperLim/resolve/main/data/"
|
128 |
_TASKS = {
|
129 |
+
"dalaj": "DaLAJ.tar.xz",
|
130 |
"sweana": "SweAna",
|
131 |
"swediag": "SweDiag",
|
132 |
"swefaq": "SweFaq",
|
|
|
167 |
datasets.BuilderConfig(name="swewsc", version=VERSION, description=_SweWsc_DESCRIPTION),
|
168 |
]
|
169 |
|
|
|
|
|
170 |
|
171 |
def _info(self):
|
172 |
# TODO: This method specifies the datasets.DatasetInfo object which contains informations and typings for the dataset
|
|
|
212 |
# By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
|
213 |
#urls = _URLS[self.config.name]
|
214 |
data_dir = dl_manager.download_and_extract(os.path.join(_URL,_TASKS[self.config.name]))
|
215 |
+
data_dir = os.path.join(data_dir,self.config.task_name)
|
216 |
+
|
217 |
return [
|
218 |
datasets.SplitGenerator(
|
219 |
name=datasets.Split.TRAIN,
|
data/DaLAJ.tar.xz
ADDED
Binary file (207 kB). View file
|
|
data/DaLAJ/dev.csv
DELETED
The diff for this file is too large to render.
See raw diff
|
|
data/DaLAJ/test.csv
DELETED
The diff for this file is too large to render.
See raw diff
|
|
data/DaLAJ/train.csv
DELETED
The diff for this file is too large to render.
See raw diff
|
|