mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-12 17:22:25 +03:00
Fix future_entity_ruler import hook
This commit is contained in:
parent
4318f8fc85
commit
2f051c6793
|
@ -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}")
|
||||
|
|
Loading…
Reference in New Issue
Block a user