spaCy/spacy/syntax/_beam_utils.pxd

10 lines
314 B
Cython
Raw Normal View History

2019-03-15 14:20:28 +00:00
from thinc.typedefs cimport class_t, hash_t
# These are passed as callbacks to thinc.search.Beam
cdef int transition_state(void* _dest, void* _src, class_t clas, void* _moves) except -1
cdef int check_final_state(void* _state, void* extra_args) except -1
2019-03-15 14:20:28 +00:00
cdef hash_t hash_state(void* _state, void* _) except 0