-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmentation fault while using matcher #587
Comments
Hm, was silently ignoring an error condition. Fixed now, but looking at this, I doubt this will be the last error. Hopefully they should report more cleanly now though. |
Thanks!
How do I go from here? Seems like there's no debug logs available. |
Ok, got it. Hope you don't mind if I'll leave it here. import spacy
import spacy.matcher
nlp = spacy.load('en', parser=False, entity=False)
matcher = spacy.matcher.Matcher(nlp.vocab)
content = u'''a b; c'''
matcher.add(entity_key='1', label='TEST', attrs={}, specs=[[]])
matcher(nlp(content)) ->
Caused by empty specs. While I understand that this is a mistake in my data it's better to check this when entity is being added. |
I had that last week but it disappeared when I updated the data. I was suspecting empty pattern/key caused it. Thanks for the explanation! |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
As mentioned in #429. I have manually installed spacy with this fix which you did yesterday. It took me a lot of time to catch this.. so here we are:
->
Thrown from the last line.
The text was updated successfully, but these errors were encountered: