mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 18:06:29 +03:00
* Fix regression on 'prob' attr of Token.
This commit is contained in:
parent
27986d7f5c
commit
c7d8644149
|
@ -254,6 +254,10 @@ cdef class Token:
|
||||||
next_idx = self.c.idx + self.c.lex.length
|
next_idx = self.c.idx + self.c.lex.length
|
||||||
return self._string[self.c.idx:next_idx]
|
return self._string[self.c.idx:next_idx]
|
||||||
|
|
||||||
|
@property
|
||||||
|
def prob(self):
|
||||||
|
return self.c.lex.prob
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def idx(self):
|
def idx(self):
|
||||||
return self.c.idx
|
return self.c.idx
|
||||||
|
|
Loading…
Reference in New Issue
Block a user