spaCy/spacy/syntax/parser.pxd
Matthew Honnibal 4c4aa2c5c9 * Work on train
2014-12-22 07:25:43 +11:00

17 lines
375 B
Cython

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