* Fix regression on 'prob' attr of Token.

This commit is contained in:
Matthew Honnibal 2015-02-03 03:32:18 +11:00
parent 27986d7f5c
commit c7d8644149

View File

@ -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