diff --git a/spacy/lexeme.pxd b/spacy/lexeme.pxd index bdf8dedf3..5314d18c9 100644 --- a/spacy/lexeme.pxd +++ b/spacy/lexeme.pxd @@ -17,6 +17,7 @@ cdef class Lexeme: cdef readonly ndarray repvec cdef readonly flags_t flags + cdef readonly flags_t senses cdef readonly attr_t id cdef readonly attr_t length @@ -48,6 +49,7 @@ cdef class Lexeme: py.repvec[i] = ptr.repvec[i] py.l2_norm = ptr.l2_norm py.flags = ptr.flags + py.senses = ptr.senses py.id = ptr.id py.length = ptr.length @@ -71,6 +73,8 @@ cdef class Lexeme: return py cpdef bint check(self, attr_id_t flag_id) except -1 + + cpdef bint has_sense(self, flags_t flag_id) except -1 cdef inline bint check_flag(const LexemeC* lexeme, attr_id_t flag_id) nogil: