mirror of https://github.com/explosion/spaCy.git
* Fix whitespace_ calculation in Token
This commit is contained in:
parent
c99285b8b9
commit
9839cd2c0b
|
@ -278,7 +278,7 @@ cdef class Token:
|
|||
|
||||
property whitespace_:
|
||||
def __get__(self):
|
||||
return self.string[self.c.lex.length:]
|
||||
return ' ' if self.c.spacy else ''
|
||||
|
||||
property orth_:
|
||||
def __get__(self):
|
||||
|
|
Loading…
Reference in New Issue