mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-15 14:17:58 +03:00
18 lines
417 B
Cython
18 lines
417 B
Cython
|
from cymem.cymem cimport Pool
|
||
|
|
||
|
from thinc.typedefs cimport weight_t
|
||
|
|
||
|
from .stateclass cimport StateClass
|
||
|
|
||
|
from .transition_system cimport TransitionSystem, Transition
|
||
|
from ..gold cimport GoldParseC
|
||
|
|
||
|
|
||
|
cdef class ArcEager(TransitionSystem):
|
||
|
pass
|
||
|
|
||
|
|
||
|
cdef int push_cost(StateClass stcls, const GoldParseC* gold, int target) nogil
|
||
|
cdef int arc_cost(StateClass stcls, const GoldParseC* gold, int head, int child) nogil
|
||
|
|