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
ValueError: [E152] The attribute None is not supported for token patterns. Please use the option validate=True with Matcher, PhraseMatcher, or EntityRuler for more details.
I analysed the source-code of matcher.pyx and I see that attr IS_SENT_START is in TOKEN_PATTERN_SCHEMA but in the file attrs.pdx appears as SENT_START, causing the error.
This issue could be solved by adding following condition after this line 674
if attr == "IS_SENT_START":
attr = "SENT_START"
Your Environment
Operating System: Ubuntu 18.04
Python Version Used: 3.6
spaCy Version Used: 2.2.3
Environment Information: virtualenv
The text was updated successfully, but these errors were encountered:
How to reproduce the behaviour
When I tried to add a pattern to the spacy
Matcher
with the attributeIS_SENT_START
gives me an errorValueError: [E152] The attribute None is not supported for token patterns. Please use the option validate=True with Matcher, PhraseMatcher, or EntityRuler for more details.
I analysed the source-code of
matcher.pyx
and I see that attrIS_SENT_START
is in TOKEN_PATTERN_SCHEMA but in the file attrs.pdx appears asSENT_START
, causing the error.This issue could be solved by adding following condition after this line 674
Your Environment
The text was updated successfully, but these errors were encountered: