2014-12-08 10:12:15 +00:00
|
|
|
from libc.stdint cimport uint8_t
|
|
|
|
|
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-12-08 10:12:15 +00:00
|
|
|
from preshed.maps cimport PreshMapArray
|
|
|
|
|
2014-12-09 14:02:04 +00:00
|
|
|
from .typedefs cimport hash_t, id_t
|
2014-12-09 21:09:32 +00:00
|
|
|
from .tokens cimport Tokens
|
2014-12-08 10:12:15 +00:00
|
|
|
|
|
|
|
|
2014-11-04 13:37:59 +00:00
|
|
|
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
|