Datasets:

Modalities:
Text
Formats:
parquet
Languages:
English
Libraries:
Datasets
pandas
License:
sileod commited on
Commit
fde9896
1 Parent(s): fda2265

Update disrpt.py

Browse files
Files changed (1) hide show
  1. disrpt.py +8 -1
disrpt.py CHANGED
@@ -157,7 +157,14 @@ class Dataset(datasets.GeneratorBasedBuilder):
157
 
158
  def _generate_examples(self, filepath):
159
  print(filepath)
160
- print('self.files',self.files)
 
 
 
 
 
 
 
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)