mirror of https://github.com/explosion/spaCy.git
16 lines
353 B
Cython
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
|