spaCy/spacy/ner/pystate.pxd

18 lines
356 B
Cython
Raw Normal View History

2014-11-10 08:28:56 +03:00
from cymem.cymem cimport Pool
from .moves cimport Move
from ._state cimport State
cdef class PyState:
cdef Pool mem
cdef readonly list tag_names
2014-11-10 08:28:56 +03:00
cdef readonly int n_classes
cdef readonly dict moves_by_name
cdef Move* _moves
cdef Move* _golds
2014-11-10 08:28:56 +03:00
cdef State* _s
2014-11-10 09:39:23 +03:00
cdef Move* _get_move(self, unicode move_name) except NULL