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