From da7650e84ba8cd75775144c1d37cd0badb7805d1 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Thu, 13 Sep 2018 14:10:25 +0200 Subject: [PATCH] Fix maximum doc length in ud_train script --- spacy/cli/ud_train.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spacy/cli/ud_train.py b/spacy/cli/ud_train.py index 52cd82515..fd463f4c8 100644 --- a/spacy/cli/ud_train.py +++ b/spacy/cli/ud_train.py @@ -367,7 +367,8 @@ def main(ud_dir, parses_dir, config, corpus, limit=0, use_gpu=-1, vectors_dir=No nlp = load_nlp(paths.lang, config, vectors=vectors_dir) docs, golds = read_data(nlp, paths.train.conllu.open(), paths.train.text.open(), - max_doc_length=3, limit=limit) + max_doc_length=config.max_doc_length, + limit=limit) optimizer = initialize_pipeline(nlp, docs, golds, config, use_gpu)