spaCy/spacy/syntax/parser.pxd

17 lines
375 B
Cython
Raw Normal View History

from thinc.features cimport Extractor
from thinc.learner cimport LinearModel
from .arc_eager cimport TransitionSystem
2014-12-21 20:25:43 +00:00
from ..structs cimport TokenC
from ..tokens cimport Tokens
2014-12-16 11:44:43 +00:00
cdef class GreedyParser:
cdef object cfg
cdef Extractor extractor
2014-12-16 11:44:43 +00:00
cdef readonly LinearModel model
cdef TransitionSystem moves
cpdef int parse(self, Tokens tokens) except -1