* Add ent_type_ property

This commit is contained in:
Matthew Honnibal 2015-03-31 02:01:29 +02:00
parent 3f1e17bd3c
commit fbf19049cf
1 changed files with 4 additions and 0 deletions

View File

@ -520,6 +520,10 @@ cdef class Token:
self.c + self.c.head, self.i + self.c.head, self.array_len,
self._seq)
property ent_type_:
def __get__(self):
return self.vocab.strings[self.c.ent_type]
property whitespace_:
def __get__(self):
return self.string[self.c.lex.length:]