mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-28 10:56:31 +03:00
14 lines
278 B
Cython
14 lines
278 B
Cython
from .._ml cimport Model, HastyModel
|
|
|
|
from .arc_eager cimport TransitionSystem
|
|
|
|
from ..tokens cimport Tokens, TokenC
|
|
|
|
|
|
cdef class GreedyParser:
|
|
cdef object cfg
|
|
cdef readonly Model model
|
|
cdef TransitionSystem moves
|
|
|
|
cpdef int parse(self, Tokens tokens) except -1
|