mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +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
|
||||
return self._string[self.c.idx:next_idx]
|
||||
|
||||
@property
|
||||
def prob(self):
|
||||
return self.c.lex.prob
|
||||
|
||||
@property
|
||||
def idx(self):
|
||||
return self.c.idx
|
||||
|
|
Loading…
Reference in New Issue
Block a user