spaCy/spacy/syntax/parser.pxd
2015-07-08 18:53:00 +02:00

17 lines
364 B
Cython

from thinc.search cimport Beam
from .._ml cimport Model
from .arc_eager cimport TransitionSystem
from ..tokens cimport Doc, TokenC
cdef class Parser:
cdef readonly object cfg
cdef readonly Model model
cdef readonly TransitionSystem moves
cdef int _greedy_parse(self, Doc tokens) except -1
cdef int _beam_parse(self, Doc tokens) except -1