spaCy/spacy/syntax/parser.pxd

14 lines
266 B
Cython

from .._ml cimport Model
from .arc_eager cimport TransitionSystem
from ..tokens cimport Tokens, TokenC
cdef class GreedyParser:
cdef object cfg
cdef readonly Model model
cdef TransitionSystem moves
cpdef int parse(self, Tokens tokens) except -1