mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
* Route token.string via token.txt_with_ws, to deprecate token.string in future
This commit is contained in:
parent
54a98eaf19
commit
995b2d18fd
|
@ -73,11 +73,7 @@ cdef class Token:
|
||||||
|
|
||||||
property string:
|
property string:
|
||||||
def __get__(self):
|
def __get__(self):
|
||||||
cdef unicode orth = self.vocab.strings[self.c.lex.orth]
|
return self.text_with_ws
|
||||||
if self.c.spacy:
|
|
||||||
return orth + u' '
|
|
||||||
else:
|
|
||||||
return orth
|
|
||||||
|
|
||||||
property text:
|
property text:
|
||||||
def __get__(self):
|
def __get__(self):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user