Update ciral.py
Browse files
ciral.py
CHANGED
@@ -23,7 +23,7 @@ from collections import defaultdict
|
|
23 |
|
24 |
_CITATION = ""
|
25 |
|
26 |
-
languages =
|
27 |
|
28 |
# TODO: Add description of the dataset here
|
29 |
# You can copy an official description
|
@@ -38,13 +38,11 @@ _LICENSE = ""
|
|
38 |
_URLS = {
|
39 |
lang: {
|
40 |
'train': [
|
41 |
-
f'https://huggingface.co/datasets/CIRAL/ciral/resolve/main/ciral-{lang}/topics/topics.ciral-{
|
42 |
-
f'https://huggingface.co/datasets/CIRAL/ciral/resolve/main/ciral-{lang}/qrels/qrels.ciral-{
|
43 |
-
#f'/store/scratch/moadeyem/CIRAL/ciral-qrels-queries/ciral/ciral-{lang}/topics/topics.ciral-{lang}-train.tsv',
|
44 |
-
#f'/store/scratch/moadeyem/CIRAL/ciral-qrels-queries/ciral/ciral-{lang}/qrels/qrels.ciral-{lang}-train.tsv'
|
45 |
],
|
46 |
'test':[]
|
47 |
-
} for lang in languages
|
48 |
}
|
49 |
|
50 |
|
@@ -82,7 +80,7 @@ class CIRAL(datasets.GeneratorBasedBuilder):
|
|
82 |
datasets.BuilderConfig(
|
83 |
name=lang,
|
84 |
version=datasets.Version("1.1.0"),
|
85 |
-
description=f"CIRAL data for {lang}.") for lang in languages
|
86 |
]
|
87 |
|
88 |
def _info(self):
|
|
|
23 |
|
24 |
_CITATION = ""
|
25 |
|
26 |
+
languages = {'yoruba':'yo', 'hausa':'ha'}
|
27 |
|
28 |
# TODO: Add description of the dataset here
|
29 |
# You can copy an official description
|
|
|
38 |
_URLS = {
|
39 |
lang: {
|
40 |
'train': [
|
41 |
+
f'https://huggingface.co/datasets/CIRAL/ciral/resolve/main/ciral-{lang}/topics/topics.ciral-{lang_code}-v1.0-train.tsv',
|
42 |
+
f'https://huggingface.co/datasets/CIRAL/ciral/resolve/main/ciral-{lang}/qrels/qrels.ciral-{lang_code}-v1.0-train.tsv'
|
|
|
|
|
43 |
],
|
44 |
'test':[]
|
45 |
+
} for lang, lang_code in languages.items()
|
46 |
}
|
47 |
|
48 |
|
|
|
80 |
datasets.BuilderConfig(
|
81 |
name=lang,
|
82 |
version=datasets.Version("1.1.0"),
|
83 |
+
description=f"CIRAL data for {lang}.") for lang in languages.keys()
|
84 |
]
|
85 |
|
86 |
def _info(self):
|