strip to replace for mmteb miracl
Browse files- mmteb-miracl.py +2 -2
mmteb-miracl.py
CHANGED
@@ -168,7 +168,7 @@ class MMTEBMIRACL(datasets.GeneratorBasedBuilder):
|
|
168 |
name = self.config.name
|
169 |
|
170 |
if name.startswith('corpus-'):
|
171 |
-
language = name.
|
172 |
downloaded_files = dl_manager.download_and_extract(_DATASET_URLS[language]['corpus'])
|
173 |
splits = [
|
174 |
datasets.SplitGenerator(
|
@@ -179,7 +179,7 @@ class MMTEBMIRACL(datasets.GeneratorBasedBuilder):
|
|
179 |
),
|
180 |
]
|
181 |
elif name.startswith('queries-'):
|
182 |
-
language = name.
|
183 |
downloaded_files = dl_manager.download_and_extract(_DATASET_URLS[language]['queries'])
|
184 |
splits = [
|
185 |
datasets.SplitGenerator(
|
|
|
168 |
name = self.config.name
|
169 |
|
170 |
if name.startswith('corpus-'):
|
171 |
+
language = name.replace('corpus-', '')
|
172 |
downloaded_files = dl_manager.download_and_extract(_DATASET_URLS[language]['corpus'])
|
173 |
splits = [
|
174 |
datasets.SplitGenerator(
|
|
|
179 |
),
|
180 |
]
|
181 |
elif name.startswith('queries-'):
|
182 |
+
language = name.replace('queries-', '')
|
183 |
downloaded_files = dl_manager.download_and_extract(_DATASET_URLS[language]['queries'])
|
184 |
splits = [
|
185 |
datasets.SplitGenerator(
|