mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 09:56:28 +03:00
Export hash_state from beam_utils
This commit is contained in:
parent
ad56641324
commit
b94b2b1168
|
@ -1,6 +1,9 @@
|
||||||
from thinc.typedefs cimport class_t
|
from thinc.typedefs cimport class_t, hash_t
|
||||||
|
|
||||||
# These are passed as callbacks to thinc.search.Beam
|
# 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 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
|
cdef int check_final_state(void* _state, void* extra_args) except -1
|
||||||
|
|
||||||
|
|
||||||
|
cdef hash_t hash_state(void* _state, void* _) except 0
|
||||||
|
|
Loading…
Reference in New Issue
Block a user