spaCy/spacy/ner/_state.pxd

16 lines
436 B
Cython
Raw Normal View History

2014-11-10 05:28:56 +00:00
from cymem.cymem cimport Pool
from .structs cimport State, Entity, Move
2014-11-10 05:28:56 +00:00
cdef int begin_entity(State* s, label) except -1
cdef int end_entity(State* s) except -1
cdef State* init_state(Pool mem, int sent_length) except NULL
2014-11-14 07:27:47 +00:00
cdef int copy_state(Pool mem, State* dest, State* source) except -1
2014-11-10 05:28:56 +00:00
cdef bint entity_is_open(State *s) except -1
2014-11-20 08:49:33 +00:00
cdef int entity_is_sunk(State *s, Move* golds) except -1
cdef int is_done(State* s) except -1