From b9537ec03d6c43dec97fc7334ad6fe4741b4afd8 Mon Sep 17 00:00:00 2001 From: Paul O'Leary McCann Date: Fri, 10 Feb 2023 17:04:18 +0900 Subject: [PATCH] rename to _make_unique_pipe_names --- spacy/cli/merge.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spacy/cli/merge.py b/spacy/cli/merge.py index 4ee2b3a00..ec78ddbe5 100644 --- a/spacy/cli/merge.py +++ b/spacy/cli/merge.py @@ -27,7 +27,7 @@ def _increment_suffix(name: str) -> str: return f"{prefix}{int(num) + 1}" -def _make_unique_pipeline_names(nlp: Language, nlp2: Language) -> Dict[str, str]: +def _make_unique_pipe_names(nlp: Language, nlp2: Language) -> Dict[str, str]: """Given two pipelines, try to rename any collisions in component names. If a simple increment of a numeric suffix doesn't work, will give up. @@ -66,7 +66,7 @@ def _inner_merge( # The outer merge already verified there was exactly one tok2vec tok2vec_name = _get_tok2vecs(nlp2.config)[0] - rename = _make_unique_pipeline_names(nlp, nlp2) + rename = _make_unique_pipe_names(nlp, nlp2) if len(_get_listeners(nlp2)) > 1: if replace_listeners: