spaCy/spacy/tagger.pxd

18 lines
455 B
Cython
Raw Normal View History

2016-01-29 02:58:55 +00:00
from thinc.linear.avgtron cimport AveragedPerceptron
from thinc.extra.eg cimport Example
from thinc.structs cimport ExampleC
from .structs cimport TokenC
from .vocab cimport Vocab
cdef class TaggerModel(AveragedPerceptron):
2016-01-29 02:58:55 +00:00
cdef void set_featuresC(self, ExampleC* eg, const TokenC* tokens, int i) except *
cdef class Tagger:
cdef readonly Vocab vocab
cdef readonly TaggerModel model
cdef public dict freqs
2016-10-16 23:03:41 +00:00
cdef public object cfg