mirror of https://github.com/explosion/spaCy.git
19 lines
459 B
Cython
19 lines
459 B
Cython
from thinc.search cimport Beam
|
|
|
|
from .._ml cimport Model
|
|
|
|
from .arc_eager cimport TransitionSystem
|
|
|
|
from ..tokens.doc cimport Doc
|
|
from ..structs cimport TokenC
|
|
from thinc.api cimport Example, ExampleC
|
|
from .stateclass cimport StateClass
|
|
|
|
|
|
cdef class Parser:
|
|
cdef readonly Model model
|
|
cdef readonly TransitionSystem moves
|
|
|
|
cdef void parse(self, StateClass stcls, ExampleC eg) nogil
|
|
cdef void predict(self, StateClass stcls, ExampleC* eg) nogil
|