mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-13 02:36:32 +03:00
14 lines
476 B
Cython
14 lines
476 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, ExampleC
|
||
|
|
||
|
|
||
|
cdef class ParserNeuralNet(NeuralNet):
|
||
|
cdef ConjunctionExtracter extracter
|
||
|
cdef void set_featuresC(self, ExampleC* eg, const void* _state) nogil
|
||
|
|
||
|
|
||
|
cdef class ParserPerceptron(AveragedPerceptron):
|
||
|
cdef void set_featuresC(self, ExampleC* eg, const void* _state) nogil
|