mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-12 18:26:30 +03:00
bugfix parser labels (#10797)
This commit is contained in:
parent
7634a488fe
commit
fd36469900
|
@ -181,7 +181,7 @@ def _optimize(nlp, component: str, data: List, rehearse: bool):
|
||||||
elif component == "tagger":
|
elif component == "tagger":
|
||||||
_add_tagger_label(pipe, data)
|
_add_tagger_label(pipe, data)
|
||||||
elif component == "parser":
|
elif component == "parser":
|
||||||
_add_tagger_label(pipe, data)
|
_add_parser_label(pipe, data)
|
||||||
elif component == "textcat_multilabel":
|
elif component == "textcat_multilabel":
|
||||||
_add_textcat_label(pipe, data)
|
_add_textcat_label(pipe, data)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user