Datasets:

ArXiv:
License:
anjalyjayakrishnan commited on
Commit
d663f4b
·
1 Parent(s): fb1611a

adjusted builder config

Browse files
Files changed (1) hide show
  1. snow-mountain.py +2 -9
snow-mountain.py CHANGED
@@ -83,7 +83,7 @@ class Test(datasets.GeneratorBasedBuilder):
83
  VERSION = datasets.Version("1.0.0")
84
 
85
  BUILDER_CONFIGS = []
86
- for lang in _LANGUAGES:
87
  text = lang.capitalize()+" data"
88
  BUILDER_CONFIGS.append(datasets.BuilderConfig(name=f"{lang}", version=VERSION, description=text))
89
 
@@ -201,14 +201,7 @@ class Test(datasets.GeneratorBasedBuilder):
201
  try:
202
  data_df = pd.read_csv(f,sep=',')
203
  except:
204
- data_df = parse_archive(filepath)
205
-
206
- # if filepath.endswith('all_verses.tar.gz'):
207
- # data_df = parse_archive(filepath)
208
- # elif filepath.endswith('short_verses.tar.gz'):
209
- # data_df = parse_archive(filepath)
210
- # else:
211
- # data_df = pd.read_csv(f,sep=',')
212
  for index,row in data_df.iterrows():
213
  audio = row['path'].split('/')[-1]
214
  content = ''
 
83
  VERSION = datasets.Version("1.0.0")
84
 
85
  BUILDER_CONFIGS = []
86
+ for lang in ["bhadrawahi", "dogri", "gaddi", "kangri", "kulvi_outer_seraji", "pahari_mahasui"]:
87
  text = lang.capitalize()+" data"
88
  BUILDER_CONFIGS.append(datasets.BuilderConfig(name=f"{lang}", version=VERSION, description=text))
89
 
 
201
  try:
202
  data_df = pd.read_csv(f,sep=',')
203
  except:
204
+ data_df = parse_archive(filepath)
 
 
 
 
 
 
 
205
  for index,row in data_df.iterrows():
206
  audio = row['path'].split('/')[-1]
207
  content = ''