spaCy/spacy/syntax/parser.pxd

20 lines
412 B
Cython
Raw Normal View History

from thinc.search cimport Beam
from .._ml cimport Model
from .arc_eager cimport TransitionSystem
2014-12-30 10:21:17 +00:00
from ..tokens cimport Tokens, TokenC
from ._state cimport State
cdef class Parser:
2015-02-23 19:04:53 +00:00
cdef readonly object cfg
cdef readonly Model model
2015-02-23 19:04:53 +00:00
cdef readonly TransitionSystem moves
cdef State* _greedy_parse(self, Tokens tokens) except NULL
cdef State* _beam_parse(self, Tokens tokens) except NULL