spaCy/spacy/tagger.pxd

17 lines
428 B
Cython
Raw Permalink Normal View History

2016-01-29 05:58:55 +03:00
from thinc.linear.avgtron cimport AveragedPerceptron
from thinc.extra.eg cimport Example
2016-08-29 15:25:22 +03:00
from thinc.structs cimport ExampleC, FeatureC
from .structs cimport TokenC
from .vocab cimport Vocab
cdef class TaggerModel(AveragedPerceptron):
2016-08-29 15:25:22 +03:00
cdef int set_featuresC(self, FeatureC* feats, const void* _token) nogil
cdef class Tagger:
cdef readonly Vocab vocab
cdef readonly TaggerModel model
cdef public dict freqs