2014-11-10 05:28:56 +00:00
|
|
|
from cymem.cymem cimport Pool
|
|
|
|
|
|
|
|
from thinc.typedefs cimport class_t
|
|
|
|
from thinc.typedefs cimport weight_t
|
|
|
|
|
2014-11-11 13:54:25 +00:00
|
|
|
from .structs cimport State, Move
|
|
|
|
|
2014-11-10 05:28:56 +00:00
|
|
|
|
|
|
|
cpdef enum ActionType:
|
2014-11-11 06:17:54 +00:00
|
|
|
MISSING
|
2014-11-10 05:28:56 +00:00
|
|
|
BEGIN
|
|
|
|
IN
|
|
|
|
LAST
|
|
|
|
UNIT
|
|
|
|
OUT
|
|
|
|
N_ACTIONS
|
|
|
|
|
|
|
|
|
|
|
|
cdef int set_accept_if_oracle(Move* moves, Move* golds, int n, State* s) except 0
|
|
|
|
|
|
|
|
cdef int set_accept_if_valid(Move* moves, int n, State* s) except 0
|
|
|
|
|
|
|
|
cdef Move* best_accepted(Move* moves, weight_t* scores, int n) except NULL
|
|
|
|
|
|
|
|
cdef int transition(State *s, Move* m) except -1
|
|
|
|
|
2014-11-11 06:17:54 +00:00
|
|
|
cdef int fill_moves(Move* moves, list tag_names) except -1
|