Update disrpt.py
Browse files
disrpt.py
CHANGED
@@ -182,7 +182,7 @@ class Dataset(datasets.GeneratorBasedBuilder):
|
|
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):
|
186 |
run(**run_args)
|
187 |
self.preprocessed_underscores[corpus]=True
|
188 |
|
|
|
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):
|
186 |
run(**run_args)
|
187 |
self.preprocessed_underscores[corpus]=True
|
188 |
|