spaCy/spacy/syntax/arc_eager.pxd

15 lines
433 B
Cython
Raw Normal View History

from cymem.cymem cimport Pool
from .stateclass cimport StateClass
from ..typedefs cimport weight_t, attr_t
from .transition_system cimport TransitionSystem, Transition
2020-06-06 16:09:25 +03:00
from .gold_parse cimport GoldParseC
cdef class ArcEager(TransitionSystem):
pass
cdef weight_t push_cost(StateClass stcls, const GoldParseC* gold, int target) nogil
cdef weight_t arc_cost(StateClass stcls, const GoldParseC* gold, int head, int child) nogil