From c7d8644149f6926df4204f58bca4d8ec047eee56 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Tue, 3 Feb 2015 03:32:18 +1100 Subject: [PATCH] * Fix regression on 'prob' attr of Token. --- spacy/tokens.pyx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spacy/tokens.pyx b/spacy/tokens.pyx index 29e75941f..8795d6c63 100644 --- a/spacy/tokens.pyx +++ b/spacy/tokens.pyx @@ -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