Dont set morphology in Tagger for ud_train

This commit is contained in:
Matthew Honnibal 2019-03-08 19:03:31 +01:00
parent c91577db02
commit 27886d626f
1 changed files with 2 additions and 1 deletions

View File

@ -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: