From c4017a06d9e5ceff30b697ff7b1dafca34dfc7c7 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Thu, 4 Feb 2016 15:49:45 +0100 Subject: [PATCH] * Add placeholders for the new flags in attrs and symbols --- spacy/attrs.pxd | 10 +++++++++- spacy/attrs.pyx | 1 - spacy/symbols.pxd | 9 ++++++++- spacy/symbols.pyx | 1 - 4 files changed, 17 insertions(+), 4 deletions(-) diff --git a/spacy/attrs.pxd b/spacy/attrs.pxd index d0f476dcd..61a00ba1b 100644 --- a/spacy/attrs.pxd +++ b/spacy/attrs.pxd @@ -14,7 +14,7 @@ cpdef enum attr_id_t: LIKE_EMAIL IS_STOP IS_OOV - + FLAG14 = 14 FLAG15 FLAG16 @@ -85,3 +85,11 @@ cpdef enum attr_id_t: HEAD SPACY PROB + +# Move these up to FLAG14--FLAG18 once we finish the functionality and +# are ready to regenerate the model +#IS_BRACKET +#IS_QUOTE +#IS_LEFT_PUNCT +#IS_RIGHT_PUNCT + diff --git a/spacy/attrs.pyx b/spacy/attrs.pyx index 3595fbf22..146f3ab26 100644 --- a/spacy/attrs.pyx +++ b/spacy/attrs.pyx @@ -13,7 +13,6 @@ IDS = { "LIKE_EMAIL": LIKE_EMAIL, "IS_STOP": IS_STOP, "IS_OOV": IS_OOV, - "FLAG14": FLAG14, "FLAG15": FLAG15, "FLAG16": FLAG16, diff --git a/spacy/symbols.pxd b/spacy/symbols.pxd index 0c60f6f67..942d8aa9c 100644 --- a/spacy/symbols.pxd +++ b/spacy/symbols.pxd @@ -14,7 +14,7 @@ cpdef enum symbol_t: IS_STOP IS_OOV - FLAG14 + FLAG14 = 14 FLAG15 FLAG16 FLAG17 @@ -419,3 +419,10 @@ cpdef enum symbol_t: rcmod root xcomp + +# Move these up to FLAG14--FLAG18 once we finish the functionality +# and are ready to regenerate the model. +#IS_BRACKET +#IS_QUOTE +#IS_LEFT_PUNCT +#IS_RIGHT_PUNCT diff --git a/spacy/symbols.pyx b/spacy/symbols.pyx index 31b01db98..712bef9a3 100644 --- a/spacy/symbols.pyx +++ b/spacy/symbols.pyx @@ -13,7 +13,6 @@ IDS = { "LIKE_EMAIL": LIKE_EMAIL, "IS_STOP": IS_STOP, "IS_OOV": IS_OOV, - "FLAG14": FLAG14, "FLAG15": FLAG15, "FLAG16": FLAG16,