spaCy/spacy/syntax/parser.pxd
Matthew Honnibal ac63274e15 Tmp
2016-07-27 02:56:36 +02:00

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