From a76fd0da99b7ee47f88abb7eabd6b0028af706cc Mon Sep 17 00:00:00 2001 From: Paul O'Leary McCann Date: Fri, 10 Feb 2023 14:17:51 +0900 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Raphael Mitsch --- spacy/cli/configure.py | 2 +- spacy/cli/merge.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spacy/cli/configure.py b/spacy/cli/configure.py index 5f31ca0b4..c7637cf04 100644 --- a/spacy/cli/configure.py +++ b/spacy/cli/configure.py @@ -119,7 +119,7 @@ def _check_pipeline_names(nlp: Language, nlp2: Language) -> Dict[str, str]: fail_msg = """ Tried automatically renaming {name} to {new_name}, but still had a collision, so bailing out. Please make your pipe names - more unique. + unique. """ # map of components to be renamed diff --git a/spacy/cli/merge.py b/spacy/cli/merge.py index 6fd9e8153..528237dae 100644 --- a/spacy/cli/merge.py +++ b/spacy/cli/merge.py @@ -14,8 +14,8 @@ def _inner_merge( ) -> Language: """Actually do the merge. - nlp: Base pipeline to add components to. - nlp2: Pipeline to add components from. + nlp (Language): Base pipeline to add components to. + nlp2 (Language): Pipeline to add components from. replace_listeners (bool): Whether to replace listeners. Usually only true if there's one listener. returns: assembled pipeline.