From 9561d88529ac0dcbc54e8b5938dd44fb582c3914 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Mon, 14 Sep 2015 18:25:40 +1000 Subject: [PATCH] * Add is_stop to Python API --- spacy/lexeme.pyx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spacy/lexeme.pyx b/spacy/lexeme.pyx index 44c31f834..504121f73 100644 --- a/spacy/lexeme.pyx +++ b/spacy/lexeme.pyx @@ -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)