mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-28 10:14:07 +03:00
14 lines
482 B
Cython
14 lines
482 B
Cython
from thinc.linear.avgtron cimport AveragedPerceptron
|
|
from thinc.neural.nn cimport NeuralNet
|
|
from thinc.linear.features cimport ConjunctionExtracter
|
|
from thinc.structs cimport NeuralNetC, FeatureC
|
|
|
|
|
|
cdef class ParserNeuralNet(NeuralNet):
|
|
cdef ConjunctionExtracter extracter
|
|
cdef int _set_featuresC(self, FeatureC* feats, const void* _state) nogil
|
|
|
|
|
|
cdef class ParserPerceptron(AveragedPerceptron):
|
|
cdef int _set_featuresC(self, FeatureC* feats, const void* _state) nogil
|