spaCy/spacy/syntax/parser.pxd

15 lines
368 B
Cython
Raw Normal View History

from .arc_eager cimport TransitionSystem
from ._state cimport StateC
2016-07-27 03:56:36 +03:00
from ..structs cimport TokenC
2016-07-27 03:56:36 +03:00
from thinc.base cimport Model
from thinc.linalg cimport *
cdef class Parser:
cdef readonly Model model
2015-02-23 22:04:53 +03:00
cdef readonly TransitionSystem moves
cdef int _projectivize
2016-01-30 22:27:07 +03:00
cdef int parseC(self, TokenC* tokens, int length, int nr_feat, int nr_class) with gil