spaCy/spacy/syntax/parser.pxd

16 lines
353 B
Cython
Raw Normal View History

from thinc.features cimport Extractor
from thinc.learner cimport LinearModel
from .arc_eager cimport TransitionSystem
2014-12-30 10:21:17 +00:00
from ..tokens cimport Tokens, TokenC
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