mirror of https://github.com/explosion/spaCy.git
Dont set morphology in Tagger for ud_train
This commit is contained in:
parent
c91577db02
commit
27886d626f
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue