from libc.stdint cimport uint8_t from cymem.cymem cimport Pool from thinc.learner cimport LinearModel from thinc.features cimport Extractor, Feature from thinc.typedefs cimport atom_t, feat_t, weight_t, class_t from thinc.api cimport Example, ExampleC from preshed.maps cimport PreshMapArray from .typedefs cimport hash_t cdef class Model: cdef readonly int n_classes cdef readonly int n_feats cdef const weight_t* score(self, atom_t* context) except NULL cdef int set_scores(self, weight_t* scores, atom_t* context) nogil cdef object model_loc cdef object _templates cdef Extractor _extractor cdef Example _eg cdef LinearModel _model