spaCy/spacy/syntax/parser.pxd

17 lines
373 B
Cython
Raw Normal View History

from thinc.search cimport Beam
from .._ml cimport Model
from .arc_eager cimport TransitionSystem
2014-12-30 10:21:17 +00:00
from ..tokens cimport Tokens, 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
cdef int _greedy_parse(self, Tokens tokens) except -1
cdef int _beam_parse(self, Tokens tokens) except -1