2015-06-01 22:28:02 +00:00
|
|
|
from thinc.search cimport Beam
|
|
|
|
|
2015-01-07 13:10:15 +00:00
|
|
|
from .._ml cimport Model
|
2014-12-15 21:06:04 +00:00
|
|
|
|
|
|
|
from .arc_eager cimport TransitionSystem
|
|
|
|
|
2015-07-13 18:20:58 +00:00
|
|
|
from ..tokens.doc cimport Doc
|
|
|
|
from ..structs cimport TokenC
|
2015-07-14 21:47:03 +00:00
|
|
|
from thinc.api cimport Example, ExampleC
|
|
|
|
from .stateclass cimport StateClass
|
2014-12-15 21:06:04 +00:00
|
|
|
|
|
|
|
|
2015-06-01 22:53:49 +00:00
|
|
|
cdef class Parser:
|
2015-02-23 19:04:53 +00:00
|
|
|
cdef readonly object cfg
|
2014-12-31 08:40:59 +00:00
|
|
|
cdef readonly Model model
|
2015-02-23 19:04:53 +00:00
|
|
|
cdef readonly TransitionSystem moves
|
2015-07-14 21:47:03 +00:00
|
|
|
|
|
|
|
cdef void parse(self, StateClass stcls, ExampleC eg) nogil
|
2015-08-09 00:29:58 +00:00
|
|
|
cdef void predict(self, StateClass stcls, ExampleC* eg) nogil
|