From 27886d626f37eddca95a84b3f05138bfa3a56c8f Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Fri, 8 Mar 2019 19:03:31 +0100 Subject: [PATCH] Dont set morphology in Tagger for ud_train --- spacy/cli/ud/ud_train.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spacy/cli/ud/ud_train.py b/spacy/cli/ud/ud_train.py index 44ecababe..f172c8d78 100644 --- a/spacy/cli/ud/ud_train.py +++ b/spacy/cli/ud/ud_train.py @@ -342,9 +342,10 @@ def load_nlp(corpus, config, vectors=None): def initialize_pipeline(nlp, docs, golds, config, device): - nlp.add_pipe(nlp.create_pipe("tagger")) + nlp.add_pipe(nlp.create_pipe("tagger", set_morphology=False)) nlp.add_pipe(nlp.create_pipe("morphologizer")) nlp.add_pipe(nlp.create_pipe("parser")) + assert not nlp.get_pipe("tagger").set_morphology if config.multitask_tag: nlp.parser.add_multitask_objective("tag") if config.multitask_sent: