Datasets:
corrected data loader script
Browse files- IndicWikiBio.py +4 -4
IndicWikiBio.py
CHANGED
@@ -22,7 +22,7 @@ _HOMEPAGE = "https://indicnlp.ai4bharat.org/indicnlg-suite"
|
|
22 |
|
23 |
_LICENSE = "Creative Commons Attribution-NonCommercial 4.0 International Public License"
|
24 |
|
25 |
-
_URL = "https://huggingface.co/datasets/ai4bharat/
|
26 |
|
27 |
|
28 |
_LANGUAGES = [
|
@@ -77,19 +77,19 @@ class WikiBio(datasets.GeneratorBasedBuilder):
|
|
77 |
datasets.SplitGenerator(
|
78 |
name=datasets.Split.TRAIN,
|
79 |
gen_kwargs={
|
80 |
-
"filepath": os.path.join(data_dir,
|
81 |
},
|
82 |
),
|
83 |
datasets.SplitGenerator(
|
84 |
name=datasets.Split.TEST,
|
85 |
gen_kwargs={
|
86 |
-
"filepath": os.path.join(data_dir,
|
87 |
},
|
88 |
),
|
89 |
datasets.SplitGenerator(
|
90 |
name=datasets.Split.VALIDATION,
|
91 |
gen_kwargs={
|
92 |
-
"filepath": os.path.join(data_dir,
|
93 |
},
|
94 |
),
|
95 |
]
|
|
|
22 |
|
23 |
_LICENSE = "Creative Commons Attribution-NonCommercial 4.0 International Public License"
|
24 |
|
25 |
+
_URL = "https://huggingface.co/datasets/ai4bharat/IndicWikiBio/resolve/main/data/{}_IndicWikiBio_v{}.tar.bz2"
|
26 |
|
27 |
|
28 |
_LANGUAGES = [
|
|
|
77 |
datasets.SplitGenerator(
|
78 |
name=datasets.Split.TRAIN,
|
79 |
gen_kwargs={
|
80 |
+
"filepath": os.path.join(data_dir, lang + "_train" + ".jsonl"),
|
81 |
},
|
82 |
),
|
83 |
datasets.SplitGenerator(
|
84 |
name=datasets.Split.TEST,
|
85 |
gen_kwargs={
|
86 |
+
"filepath": os.path.join(data_dir, lang + "_test" + ".jsonl"),
|
87 |
},
|
88 |
),
|
89 |
datasets.SplitGenerator(
|
90 |
name=datasets.Split.VALIDATION,
|
91 |
gen_kwargs={
|
92 |
+
"filepath": os.path.join(data_dir, lang + "_val" + ".jsonl"),
|
93 |
},
|
94 |
),
|
95 |
]
|