Datasets:

Modalities:
Text
ArXiv:
Libraries:
Datasets
License:
krsnaman commited on
Commit
121c8d9
1 Parent(s): 636a780

corrected data loader script

Browse files
Files changed (1) hide show
  1. 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/IndicParaphrase/resolve/main/data/{}_IndicParaphrase_v{}.tar.bz2"
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, "train_" + lang + ".jsonl"),
81
  },
82
  ),
83
  datasets.SplitGenerator(
84
  name=datasets.Split.TEST,
85
  gen_kwargs={
86
- "filepath": os.path.join(data_dir, "test_" + lang + ".jsonl"),
87
  },
88
  ),
89
  datasets.SplitGenerator(
90
  name=datasets.Split.VALIDATION,
91
  gen_kwargs={
92
- "filepath": os.path.join(data_dir, "val_" + lang + ".jsonl"),
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
  ]