You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to use the models en_core_web_md or en_core_web_lg Python silently crashes.
However en_core_web_sm runs fine with no problems!
There are no Python exceptions (tried Debugging).
But the crash causes an entry in the Windows Event Protocol:
So it has something to do with the Windows version of the blis-Dependency for spaCy, already tried different versions of it without success.
How to reproduce the behaviour
I'm just trying to do a basic check if a String consists of a noun and a verb, there appears to be no error:
def _internalValidation(self, s: str) -> bool:
# Put space between camel case word combinations
s = re.sub(r'(?<=[a-z])(?=[A-Z])', ' ', s)
# Load string into natural language processing model
doc = self.nlp(s)
# Tokenize the string
words = [token for token in doc]
# Invalid if there are less than 2 words
if len(words) < 2:
return False
# Check if there is a noun and a verb
hasNoun = any(x.pos_ == 'NOUN' for x in words)
hasVerb = any(x.pos_ == 'VERB' for x in words)
return hasNoun and hasVerb
When I try to use the models
en_core_web_md
oren_core_web_lg
Python silently crashes.However
en_core_web_sm
runs fine with no problems!There are no Python exceptions (tried Debugging).
But the crash causes an entry in the Windows Event Protocol:
So it has something to do with the Windows version of the blis-Dependency for spaCy, already tried different versions of it without success.
How to reproduce the behaviour
I'm just trying to do a basic check if a String consists of a noun and a verb, there appears to be no error:
Your Environment
Info about spaCy
System specs:
The text was updated successfully, but these errors were encountered: