Update disrpt.py
Browse files
disrpt.py
CHANGED
@@ -157,7 +157,14 @@ class Dataset(datasets.GeneratorBasedBuilder):
|
|
157 |
|
158 |
def _generate_examples(self, filepath):
|
159 |
print(filepath)
|
160 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
161 |
with open(filepath, encoding="utf-8") as f:
|
162 |
if "conllu" in self.config.name:
|
163 |
stream=parse_conll_stream(f)
|
|
|
157 |
|
158 |
def _generate_examples(self, filepath):
|
159 |
print(filepath)
|
160 |
+
|
161 |
+
run_args={
|
162 |
+
'rel_files': [v for k, v in self.files.items() if 'rels' in k],
|
163 |
+
'dep_files': [v for k, v in self.files.items() if 'conllu' in k]
|
164 |
+
}
|
165 |
+
print('run_args',run_args)
|
166 |
+
|
167 |
+
run('gum', **run_args)
|
168 |
with open(filepath, encoding="utf-8") as f:
|
169 |
if "conllu" in self.config.name:
|
170 |
stream=parse_conll_stream(f)
|