spaCy/spacy/syntax/parser.pxd

17 lines
364 B
Cython
Raw Normal View History

from thinc.search cimport Beam
from .._ml cimport Model
from .arc_eager cimport TransitionSystem
2015-07-08 16:53:00 +00:00
from ..tokens cimport Doc, TokenC
cdef class Parser:
2015-02-23 19:04:53 +00:00
cdef readonly object cfg
cdef readonly Model model
2015-02-23 19:04:53 +00:00
cdef readonly TransitionSystem moves
2015-07-08 16:53:00 +00:00
cdef int _greedy_parse(self, Doc tokens) except -1
cdef int _beam_parse(self, Doc tokens) except -1