2014-11-04 13:37:59 +00:00
|
|
|
from cymem.cymem cimport Pool
|
|
|
|
|
|
|
|
from thinc.learner cimport LinearModel
|
|
|
|
from thinc.features cimport Extractor
|
|
|
|
from thinc.typedefs cimport atom_t, feat_t, weight_t, class_t
|
|
|
|
|
2014-11-05 09:45:29 +00:00
|
|
|
from .typedefs cimport hash_t
|
2014-11-04 13:37:59 +00:00
|
|
|
from .tokens cimport Tokens
|
|
|
|
|
|
|
|
|
|
|
|
cdef class Tagger:
|
2014-12-07 13:03:55 +00:00
|
|
|
cdef class_t predict(self, const atom_t* context, object golds=*) except *
|
2014-11-04 13:37:59 +00:00
|
|
|
|
|
|
|
cpdef readonly Pool mem
|
|
|
|
cpdef readonly Extractor extractor
|
|
|
|
cpdef readonly LinearModel model
|
|
|
|
|
|
|
|
cpdef readonly list tag_names
|
2014-12-07 11:07:16 +00:00
|
|
|
cdef dict tagdict
|