From 2f051c679324f37a12498b5c3b42482549ebf176 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Wed, 21 May 2025 15:24:57 +0200 Subject: [PATCH] Fix future_entity_ruler import hook --- spacy/pipeline/span_ruler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/pipeline/span_ruler.py b/spacy/pipeline/span_ruler.py index 91fd1623f..c58f633c2 100644 --- a/spacy/pipeline/span_ruler.py +++ b/spacy/pipeline/span_ruler.py @@ -509,7 +509,7 @@ def __getattr__(name): if name == "make_span_ruler": module = importlib.import_module("spacy.registrations") return module.make_span_ruler - elif name == "make_future_span_ruler": + elif name == "make_entity_ruler": module = importlib.import_module("spacy.registrations") return module.make_future_span_ruler raise AttributeError(f"module {__name__} has no attribute {name}")