From b94b2b11682be02dec1fd3e334a96f10be9f4769 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Fri, 15 Mar 2019 15:20:28 +0100 Subject: [PATCH] Export hash_state from beam_utils --- spacy/syntax/_beam_utils.pxd | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spacy/syntax/_beam_utils.pxd b/spacy/syntax/_beam_utils.pxd index 7bae17558..36b0c05da 100644 --- a/spacy/syntax/_beam_utils.pxd +++ b/spacy/syntax/_beam_utils.pxd @@ -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 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 hash_t hash_state(void* _state, void* _) except 0