mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 04:08:09 +03:00
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
|