mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-10 19:57:17 +03:00
* 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
Block a user