diff --git a/spacy/syntax/_parser_model.pyx b/spacy/syntax/_parser_model.pyx index eef5723f3..d3093d60d 100644 --- a/spacy/syntax/_parser_model.pyx +++ b/spacy/syntax/_parser_model.pyx @@ -261,7 +261,7 @@ class ParserStepModel(Model): def get_token_ids(self, states): cdef StateClass state - states = [state for state in states() if not state.is_final()] + states = [state for state in states if not state.is_final()] cdef np.ndarray ids = numpy.zeros((len(states), self.state2vec.nF), dtype='i', order='C') ids.fill(-1)