From 274a4d4272c63ec8b38e2bf168ac6725cb1ae3a9 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 16 Oct 2016 17:04:41 +0200 Subject: [PATCH] Fix queue Python property in StateClass --- spacy/syntax/stateclass.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/syntax/stateclass.pyx b/spacy/syntax/stateclass.pyx index a18cc284a..df485933d 100644 --- a/spacy/syntax/stateclass.pyx +++ b/spacy/syntax/stateclass.pyx @@ -21,7 +21,7 @@ cdef class StateClass: @property def queue(self): - return {self.B(i) for i in range(self.c._b_i)} + return {self.B(i) for i in range(self.c.buffer_length())} def print_state(self, words): words = list(words) + ['_']