Skip to content

Commit 1236c1a

Browse files
committed
fix: add back alias for edsnlp.utils.regex to regex_utils
1 parent 7f2c576 commit 1236c1a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

edsnlp/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ def find_spec(self, fullname, path, target=None): # pragma: no cover
5252
new_name = "edsnlp.metrics.span_attribute" + fullname[30:]
5353
spec = importlib.util.spec_from_loader(fullname, AliasLoader(new_name))
5454
return spec
55+
if fullname == "edsnlp.utils.regex":
56+
new_name = "edsnlp.utils.regex_utils"
57+
spec = importlib.util.spec_from_loader(fullname, AliasLoader(new_name))
58+
return spec
5559
if "span_qualifier" in fullname.split("."):
5660
new_name = fullname.replace("span_qualifier", "span_classifier")
5761
spec = importlib.util.spec_from_loader(fullname, AliasLoader(new_name))

0 commit comments

Comments
 (0)