Datasets:

Modalities:
Text
Formats:
parquet
Languages:
English
Libraries:
Datasets
pandas
License:
sileod commited on
Commit
015be83
1 Parent(s): 375ded2

Update disrpt.py

Browse files
Files changed (1) hide show
  1. disrpt.py +1 -1
disrpt.py CHANGED
@@ -179,7 +179,7 @@ class Dataset(datasets.GeneratorBasedBuilder):
179
  'corpus':corpus,
180
  'rel_files': [v for k, v in self.files.items() if '.rels' in k],
181
  'dep_files': [v for k, v in self.files.items() if '.conllu' in k],
182
- **self.gen_kwargs
183
  }
184
  print('run_args',run_args)
185
  if corpus in ['rstdt','pdtb','cdtb','gum','tdb'] and not self.preprocessed_underscores.get(corpus,False) and self.gen_kwargs.get('process_underscore',True):
 
179
  'corpus':corpus,
180
  'rel_files': [v for k, v in self.files.items() if '.rels' in k],
181
  'dep_files': [v for k, v in self.files.items() if '.conllu' in k],
182
+ **{k:v for k,v in self.gen_kwargs.items() if 'path' in k}
183
  }
184
  print('run_args',run_args)
185
  if corpus in ['rstdt','pdtb','cdtb','gum','tdb'] and not self.preprocessed_underscores.get(corpus,False) and self.gen_kwargs.get('process_underscore',True):