* Add is_stop to Python API

This commit is contained in:
Matthew Honnibal 2015-09-14 18:25:40 +10:00
parent 65dc0d1dfb
commit 9561d88529

View File

@ -122,6 +122,10 @@ cdef class Lexeme:
def __get__(self): return Lexeme.check_flag(self.c, IS_OOV)
def __set__(self, bint x): Lexeme.set_flag(self.c, IS_OOV, x)
property is_stop:
def __get__(self): return Lexeme.check_flag(self.c, IS_STOP)
def __set__(self, bint x): Lexeme.set_flag(self.c, IS_STOP, x)
property is_alpha:
def __get__(self): return Lexeme.check_flag(self.c, IS_ALPHA)
def __set__(self, bint x): Lexeme.set_flag(self.c, IS_ALPHA, x)