From d2eeba6667da8f77bb6ab24cc24015d59907570f Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Tue, 30 Jun 2015 16:19:43 +0200 Subject: [PATCH] * Start wiring up color and emotion lexicons. Hopefully we get to use them. --- spacy/en/attrs.pxd | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/spacy/en/attrs.pxd b/spacy/en/attrs.pxd index a21784a20..79ccf8c37 100644 --- a/spacy/en/attrs.pxd +++ b/spacy/en/attrs.pxd @@ -1,5 +1,7 @@ from ..attrs cimport FLAG0, FLAG1, FLAG2, FLAG3, FLAG4, FLAG5, FLAG6, FLAG7 -from ..attrs cimport FLAG8, FLAG9, FLAG10 +from ..attrs cimport FLAG8, FLAG9, FLAG10, FLAG11, FLAG12, FLAG13, FLAG14 +from ..attrs cimport FLAG15, FLAG16, FLAG17, FLAG18, FLAG19, FLAG20, FLAG21 +from ..attrs cimport FLAG22, FLAG23, FLAG24, FLAG25, FLAG26, FLAG27, FLAG28 from ..attrs cimport ORTH as _ORTH from ..attrs cimport SHAPE as _SHAPE from ..attrs cimport LOWER as _LOWER @@ -25,6 +27,31 @@ cpdef enum: LIKE_URL = FLAG8 LIKE_NUM = FLAG9 IS_STOP = FLAG10 + + EMO_POS = FLAG11 + EMO_NEG = FLAG12 + + EMO_ANGER = FLAG13 + EMO_APATE = FLAG14 + EMO_DISGUST = FLAG15 + EMO_FEAR = FLAG16 + EMO_JOY = FLAG17 + EMO_SAD = FLAG18 + EMO_SURPRISE = FLAG19 + EMO_TRUST = FLAG20 + + CLR_NONE = FLAG21 + CLR_BLACK = FLAG22 + CLR_BLUE = FLAG23 + CLR_BROWN = FLAG24 + CLR_GREEN = FLAG25 + CLR_GREY = FLAG26 + CLR_ORANGE = FLAG27 + CLR_PURPLE = FLAG28 + CLR_PINK = FLAG29 + CLR_RED = FLAG30 + CLR_WHITE = FLAG31 + CLR_YELLOW = FLAG32 ORTH = _ORTH SHAPE = _SHAPE