Update spacy/__init__.py

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
This commit is contained in:
Hannes Krumbiegel 2023-09-04 17:39:30 +02:00 committed by GitHub
parent 27d7a21a18
commit 23fd432f3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,8 @@ try:
# which is also done here, requires a workaround on this platform. # which is also done here, requires a workaround on this platform.
from .cli.info import info # noqa: F401 from .cli.info import info # noqa: F401
except ImportError: except ImportError:
info = lambda *args: "Importing the CLI failed. Info function not available." def info(*args, **kwargs):
raise RuntimeError("Importing the CLI failed. Info function not available.")
from .errors import Errors from .errors import Errors
from .glossary import explain # noqa: F401 from .glossary import explain # noqa: F401
from .language import Language from .language import Language