mirror of https://github.com/explosion/spaCy.git
Refactor conllu script
This commit is contained in:
parent
44e496a82e
commit
e09070eca7
|
@ -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_)
|
||||
|
|
Loading…
Reference in New Issue