Update disrpt.py
Browse files
disrpt.py
CHANGED
@@ -177,8 +177,8 @@ class Dataset(datasets.GeneratorBasedBuilder):
|
|
177 |
corpus=self.config.name.split('.')[2]
|
178 |
run_args={
|
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 |
}
|
183 |
print('run_args',run_args)
|
184 |
if corpus in ['rstdt','pdtb','cdtb','gum','tdb'] and not self.preprocessed_underscores.get(corpus,False):
|
|
|
177 |
corpus=self.config.name.split('.')[2]
|
178 |
run_args={
|
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 |
}
|
183 |
print('run_args',run_args)
|
184 |
if corpus in ['rstdt','pdtb','cdtb','gum','tdb'] and not self.preprocessed_underscores.get(corpus,False):
|