From b7a366b435328b7f0e87cbfb11d5780a12980cd8 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sat, 20 Jun 2020 15:56:16 +0200 Subject: [PATCH] Fix compile in ArcEager --- spacy/syntax/arc_eager.pyx | 1 - 1 file changed, 1 deletion(-) diff --git a/spacy/syntax/arc_eager.pyx b/spacy/syntax/arc_eager.pyx index 1512955a5..0dfcbf885 100644 --- a/spacy/syntax/arc_eager.pyx +++ b/spacy/syntax/arc_eager.pyx @@ -513,7 +513,6 @@ cdef class ArcEager(TransitionSystem): keeps = [i for i, s in enumerate(states) if not s.is_final()] states = [states[i] for i in keeps] golds = [ArcEagerGold(self, states[i], examples[i]) for i in keeps] - cdef StateClass s n_steps = sum([len(s.queue) * 4 for s in states]) return states, golds, n_steps