mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-14 05:37:03 +03:00
18 lines
390 B
Cython
18 lines
390 B
Cython
from thinc.search cimport Beam
|
|
|
|
from .._ml cimport Model
|
|
|
|
from .arc_eager cimport TransitionSystem
|
|
|
|
from ..tokens.doc cimport Doc
|
|
from ..structs cimport TokenC
|
|
|
|
|
|
cdef class Parser:
|
|
cdef readonly object cfg
|
|
cdef readonly Model model
|
|
cdef readonly TransitionSystem moves
|
|
|
|
cdef int _greedy_parse(self, Doc tokens) except -1
|
|
cdef int _beam_parse(self, Doc tokens) except -1
|