mirror of
https://github.com/explosion/spaCy.git
synced 2025-05-30 02:33:07 +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 = """
|
||||
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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user