From 80e95d02b148fd49e008058413012b757e6c7abb Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Tue, 18 Feb 2020 14:32:53 +0100 Subject: [PATCH] Allow spacy attr in token pattern --- spacy/schemas.py | 1 + 1 file changed, 1 insertion(+) diff --git a/spacy/schemas.py b/spacy/schemas.py index 4a5054125..2268bf100 100644 --- a/spacy/schemas.py +++ b/spacy/schemas.py @@ -103,6 +103,7 @@ class TokenPattern(BaseModel): ent_type: Optional[StringValue] = None norm: Optional[StringValue] = None length: Optional[NumberValue] = None + spacy: Optional[StrictBool] = None is_alpha: Optional[StrictBool] = None is_ascii: Optional[StrictBool] = None is_digit: Optional[StrictBool] = None