mirror of
https://github.com/explosion/spaCy.git
synced 2025-06-08 23:23:06 +03:00
Apply suggestions from code review
Co-authored-by: Raphael Mitsch <r.mitsch@outlook.com>
This commit is contained in:
parent
03a0c2badc
commit
a76fd0da99
|
@ -119,7 +119,7 @@ def _check_pipeline_names(nlp: Language, nlp2: Language) -> Dict[str, str]:
|
||||||
fail_msg = """
|
fail_msg = """
|
||||||
Tried automatically renaming {name} to {new_name}, but still
|
Tried automatically renaming {name} to {new_name}, but still
|
||||||
had a collision, so bailing out. Please make your pipe names
|
had a collision, so bailing out. Please make your pipe names
|
||||||
more unique.
|
unique.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# map of components to be renamed
|
# map of components to be renamed
|
||||||
|
|
|
@ -14,8 +14,8 @@ def _inner_merge(
|
||||||
) -> Language:
|
) -> Language:
|
||||||
"""Actually do the merge.
|
"""Actually do the merge.
|
||||||
|
|
||||||
nlp: Base pipeline to add components to.
|
nlp (Language): Base pipeline to add components to.
|
||||||
nlp2: Pipeline to add components from.
|
nlp2 (Language): Pipeline to add components from.
|
||||||
replace_listeners (bool): Whether to replace listeners. Usually only true
|
replace_listeners (bool): Whether to replace listeners. Usually only true
|
||||||
if there's one listener.
|
if there's one listener.
|
||||||
returns: assembled pipeline.
|
returns: assembled pipeline.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user