From 4c16307b102b5b65a660914e8ceb12d98cb9880e Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sat, 10 Oct 2015 22:58:34 +1100 Subject: [PATCH] * Fix parts_of_speech now that symbols list has been reformed --- spacy/parts_of_speech.pxd | 43 +++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 22 deletions(-) diff --git a/spacy/parts_of_speech.pxd b/spacy/parts_of_speech.pxd index 9fbdbd71f..c97673a69 100644 --- a/spacy/parts_of_speech.pxd +++ b/spacy/parts_of_speech.pxd @@ -1,24 +1,23 @@ -from .symbols cimport * - +from . cimport symbols cpdef enum univ_pos_t: - NO_TAG = NIL - ADJ = POS_adj - ADP = POS_adp - ADV = POS_adv - AUX = POS_aux - CONJ = POS_conj - DET = POS_det - INTJ = POS_intj - NOUN = POS_noun - NUM = POS_num - PART = POS_part - PRON = POS_pron - PROPN = POS_propn - PUNCT = POS_punct - SCONJ = POS_sconj - SYM = POS_sym - VERB = POS_verb - X = POS_x - EOL = POS_eol - SPACE = POS_space + NO_TAG = 0 + ADJ = symbols.ADJ + ADP + ADV + AUX + CONJ + DET + INTJ + NOUN + NUM + PART + PRON + PROPN + PUNCT + SCONJ + SYM + VERB + X + EOL + SPACE