mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-12 04:38:28 +03:00
19 lines
554 B
Cython
19 lines
554 B
Cython
from thinc.neural.nn cimport NeuralNet
|
|
from thinc.extra.eg cimport Example
|
|
from thinc.structs cimport ExampleC
|
|
|
|
from .structs cimport TokenC
|
|
from .vocab cimport Vocab
|
|
|
|
|
|
cdef class TaggerNeuralNet(NeuralNet):
|
|
cdef void set_featuresC(self, ExampleC* eg, const TokenC* tokens, int i) except *
|
|
|
|
cdef class CharacterTagger(NeuralNet):
|
|
cdef void set_featuresC(self, ExampleC* eg, const TokenC* tokens, object strings, int i) except *
|
|
|
|
cdef class Tagger:
|
|
cdef readonly Vocab vocab
|
|
cdef readonly CharacterTagger model
|
|
cdef public dict freqs
|