mirror of
https://github.com/explosion/spaCy.git
synced 2025-02-11 17:10:36 +03:00
Fix compile in ArcEager
This commit is contained in:
parent
e2279eab1c
commit
39117de4f9
|
@ -513,7 +513,6 @@ cdef class ArcEager(TransitionSystem):
|
||||||
keeps = [i for i, s in enumerate(states) if not s.is_final()]
|
keeps = [i for i, s in enumerate(states) if not s.is_final()]
|
||||||
states = [states[i] for i in keeps]
|
states = [states[i] for i in keeps]
|
||||||
golds = [ArcEagerGold(self, states[i], examples[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])
|
n_steps = sum([len(s.queue) * 4 for s in states])
|
||||||
return states, golds, n_steps
|
return states, golds, n_steps
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user