Sean MacAvaney
commited on
Commit
•
3ef0b29
1
Parent(s):
b3b4d47
fix dataset loading script
Browse files
miracl.py → miracl_noauth.py
RENAMED
@@ -32,11 +32,11 @@ _DESCRIPTION = 'dataset load script for MIRACL'
|
|
32 |
_DATASET_URLS = {
|
33 |
lang: {
|
34 |
'dev': [
|
35 |
-
f'https://huggingface.co/datasets/
|
36 |
-
f'https://huggingface.co/datasets/
|
37 |
],
|
38 |
'testB': [
|
39 |
-
f'https://huggingface.co/datasets/
|
40 |
],
|
41 |
} for lang in languages
|
42 |
}
|
@@ -44,8 +44,8 @@ for lang in languages:
|
|
44 |
if lang in surprise_languages:
|
45 |
continue
|
46 |
_DATASET_URLS[lang]['train'] = [
|
47 |
-
f'https://huggingface.co/datasets/
|
48 |
-
f'https://huggingface.co/datasets/
|
49 |
]
|
50 |
|
51 |
|
@@ -53,7 +53,7 @@ for lang in languages:
|
|
53 |
if lang in new_languages:
|
54 |
continue
|
55 |
_DATASET_URLS[lang]['testA'] = [
|
56 |
-
f'https://huggingface.co/datasets/
|
57 |
]
|
58 |
|
59 |
def load_topic(fn):
|
@@ -77,7 +77,7 @@ def load_qrels(fn):
|
|
77 |
return qrels
|
78 |
|
79 |
|
80 |
-
class
|
81 |
BUILDER_CONFIGS = [datasets.BuilderConfig(
|
82 |
version=datasets.Version('1.0.0'),
|
83 |
name=lang, description=f'MIRACL dataset in language {lang}.'
|
|
|
32 |
_DATASET_URLS = {
|
33 |
lang: {
|
34 |
'dev': [
|
35 |
+
f'https://huggingface.co/datasets/macavaney/miracl-noauth/resolve/main/miracl-v1.0-{lang}/topics/topics.miracl-v1.0-{lang}-dev.tsv',
|
36 |
+
f'https://huggingface.co/datasets/macavaney/miracl-noauth/resolve/main/miracl-v1.0-{lang}/qrels/qrels.miracl-v1.0-{lang}-dev.tsv',
|
37 |
],
|
38 |
'testB': [
|
39 |
+
f'https://huggingface.co/datasets/macavaney/miracl-noauth/resolve/main/miracl-v1.0-{lang}/topics/topics.miracl-v1.0-{lang}-test-b.tsv',
|
40 |
],
|
41 |
} for lang in languages
|
42 |
}
|
|
|
44 |
if lang in surprise_languages:
|
45 |
continue
|
46 |
_DATASET_URLS[lang]['train'] = [
|
47 |
+
f'https://huggingface.co/datasets/macavaney/miracl-noauth/resolve/main/miracl-v1.0-{lang}/topics/topics.miracl-v1.0-{lang}-train.tsv',
|
48 |
+
f'https://huggingface.co/datasets/macavaney/miracl-noauth/resolve/main/miracl-v1.0-{lang}/qrels/qrels.miracl-v1.0-{lang}-train.tsv',
|
49 |
]
|
50 |
|
51 |
|
|
|
53 |
if lang in new_languages:
|
54 |
continue
|
55 |
_DATASET_URLS[lang]['testA'] = [
|
56 |
+
f'https://huggingface.co/datasets/macavaney/miracl-noauth/resolve/main/miracl-v1.0-{lang}/topics/topics.miracl-v1.0-{lang}-test-a.tsv',
|
57 |
]
|
58 |
|
59 |
def load_topic(fn):
|
|
|
77 |
return qrels
|
78 |
|
79 |
|
80 |
+
class MIRACLNoAuth(datasets.GeneratorBasedBuilder):
|
81 |
BUILDER_CONFIGS = [datasets.BuilderConfig(
|
82 |
version=datasets.Version('1.0.0'),
|
83 |
name=lang, description=f'MIRACL dataset in language {lang}.'
|