Refactor conllu script

This commit is contained in:
Matthew Honnibal 2018-02-25 12:50:29 +01:00
parent 44e496a82e
commit e09070eca7
1 changed files with 1 additions and 2 deletions

View File

@ -377,8 +377,7 @@ def main(ud_dir, corpus, config, parses='/tmp/dev.conllu'):
drop=config.dropout, losses=losses)
with nlp.use_params(optimizer.averages):
dev_docs, scorer = parse_dev_data(nlp, paths.dev.text, paths.dev.conllu,
**attr.asdict(config))
dev_docs, scorer = parse_dev_data(nlp, paths.dev.text, paths.dev.conllu)
print_progress(i, losses, scorer)
with open(output_loc, 'w') as file_:
print_conllu(dev_docs, file_)