From fd36469900da4c34f3d7b6c5400f05d8df73db8d Mon Sep 17 00:00:00 2001 From: kadarakos Date: Fri, 13 May 2022 11:41:32 +0200 Subject: [PATCH] bugfix parser labels (#10797) --- spacy/tests/training/test_rehearse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/tests/training/test_rehearse.py b/spacy/tests/training/test_rehearse.py index 84c507702..5ac7fc217 100644 --- a/spacy/tests/training/test_rehearse.py +++ b/spacy/tests/training/test_rehearse.py @@ -181,7 +181,7 @@ def _optimize(nlp, component: str, data: List, rehearse: bool): elif component == "tagger": _add_tagger_label(pipe, data) elif component == "parser": - _add_tagger_label(pipe, data) + _add_parser_label(pipe, data) elif component == "textcat_multilabel": _add_textcat_label(pipe, data) else: