Update disrpt.py
Browse files
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):
|