Update disrpt.py
Browse files
disrpt.py
CHANGED
@@ -164,7 +164,7 @@ class Dataset(datasets.GeneratorBasedBuilder):
|
|
164 |
'dep_files': [v for k, v in self.files.items() if 'conllu' in k]
|
165 |
}
|
166 |
print('run_args',run_args)
|
167 |
-
if corpus in ['rstdt','pdtb','cdtb','gum','tdb'] and not self.preprocessed_underscores
|
168 |
run(**run_args)
|
169 |
self.preprocessed_underscores[corpus]=True
|
170 |
|
|
|
164 |
'dep_files': [v for k, v in self.files.items() if 'conllu' in k]
|
165 |
}
|
166 |
print('run_args',run_args)
|
167 |
+
if corpus in ['rstdt','pdtb','cdtb','gum','tdb'] and not self.preprocessed_underscores.get(corpus,False):
|
168 |
run(**run_args)
|
169 |
self.preprocessed_underscores[corpus]=True
|
170 |
|