2014-11-04 16:37:59 +03: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 12:45:29 +03:00
|
|
|
from .typedefs cimport hash_t
|
2014-11-04 16:37:59 +03:00
|
|
|
from .tokens cimport Tokens
|
|
|
|
|
|
|
|
|
|
|
|
cdef class Tagger:
|
2014-12-07 15:52:41 +03:00
|
|
|
cdef class_t predict(self, atom_t* context, object golds=*) except *
|
2014-11-04 16:37:59 +03:00
|
|
|
|
|
|
|
cpdef readonly Pool mem
|
|
|
|
cpdef readonly Extractor extractor
|
|
|
|
cpdef readonly LinearModel model
|
|
|
|
|
|
|
|
cpdef readonly list tag_names
|
2014-12-07 14:07:16 +03:00
|
|
|
cdef dict tagdict
|