mirror of https://github.com/explosion/spaCy.git
* Add whitespace property to Token
This commit is contained in:
parent
5fd72bc220
commit
76cd024095
|
@ -256,8 +256,7 @@ cdef class Token:
|
|||
|
||||
property whitespace:
|
||||
def __get__(self):
|
||||
cdef int end_idx = self.idx + self.length
|
||||
|
||||
return self.string[self.length:]
|
||||
|
||||
property orth_:
|
||||
def __get__(self):
|
||||
|
|
Loading…
Reference in New Issue