2016-07-27 03:56:50 +03:00
|
|
|
from thinc.linear.avgtron cimport AveragedPerceptron
|
|
|
|
from thinc.neural.nn cimport NeuralNet
|
|
|
|
from thinc.linear.features cimport ConjunctionExtracter
|
2016-07-29 20:58:49 +03:00
|
|
|
from thinc.structs cimport NeuralNetC, FeatureC
|
2016-07-27 03:56:50 +03:00
|
|
|
|
|
|
|
|
|
|
|
cdef class ParserNeuralNet(NeuralNet):
|
|
|
|
cdef ConjunctionExtracter extracter
|
2016-07-29 20:58:49 +03:00
|
|
|
cdef int _set_featuresC(self, FeatureC* feats, const void* _state) nogil
|
2016-07-27 03:56:50 +03:00
|
|
|
|
|
|
|
|
|
|
|
cdef class ParserPerceptron(AveragedPerceptron):
|
2016-07-29 20:58:49 +03:00
|
|
|
cdef int _set_featuresC(self, FeatureC* feats, const void* _state) nogil
|