mirror of https://github.com/explosion/spaCy.git
* Add ent_type_ property
This commit is contained in:
parent
3f1e17bd3c
commit
fbf19049cf
|
@ -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:]
|
||||
|
|
Loading…
Reference in New Issue