From e09070eca783bf53c3827d7353c996568b347531 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 25 Feb 2018 12:50:29 +0100 Subject: [PATCH] Refactor conllu script --- examples/training/conllu.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/training/conllu.py b/examples/training/conllu.py index f60308980..757a7635f 100644 --- a/examples/training/conllu.py +++ b/examples/training/conllu.py @@ -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_)