Apply suggestions from code review

Co-authored-by: Raphael Mitsch <r.mitsch@outlook.com>
This commit is contained in:
Paul O'Leary McCann 2023-02-10 14:17:51 +09:00 committed by GitHub
parent 03a0c2badc
commit a76fd0da99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

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

View File

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