spaCy/spacy/syntax/parser.pxd
2014-12-16 22:46:55 +11:00

16 lines
353 B
Cython

from thinc.features cimport Extractor
from thinc.learner cimport LinearModel
from .arc_eager cimport TransitionSystem
from ..tokens cimport Tokens, TokenC
cdef class GreedyParser:
cdef object cfg
cdef Extractor extractor
cdef readonly LinearModel model
cdef TransitionSystem moves
cpdef int parse(self, Tokens tokens) except -1