mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-27 10:26:35 +03:00
15 lines
368 B
Cython
15 lines
368 B
Cython
from .arc_eager cimport TransitionSystem
|
|
from ._state cimport StateC
|
|
from ..structs cimport TokenC
|
|
|
|
from thinc.base cimport Model
|
|
from thinc.linalg cimport *
|
|
|
|
|
|
cdef class Parser:
|
|
cdef readonly Model model
|
|
cdef readonly TransitionSystem moves
|
|
cdef int _projectivize
|
|
|
|
cdef int parseC(self, TokenC* tokens, int length, int nr_feat, int nr_class) with gil
|