spaCy/spacy/syntax/parser.pxd

20 lines
488 B
Cython
Raw Normal View History

from thinc.search cimport Beam
from .._ml cimport Model
from .arc_eager cimport TransitionSystem
from ..tokens.doc cimport Doc
from ..structs cimport TokenC
2015-07-15 00:47:03 +03:00
from thinc.api cimport Example, ExampleC
from .stateclass cimport StateClass
cdef class Parser:
2015-02-23 22:04:53 +03:00
cdef readonly object cfg
cdef readonly Model model
2015-02-23 22:04:53 +03:00
cdef readonly TransitionSystem moves
2015-07-15 00:47:03 +03:00
cdef void parse(self, StateClass stcls, ExampleC eg) nogil
cdef void predict(self, StateClass stcls, ExampleC* eg) nogil