2014-12-18 22:30:50 +00:00
|
|
|
from libc.stdint cimport uint32_t, uint64_t
|
2014-12-15 21:06:04 +00:00
|
|
|
from thinc.features cimport Extractor
|
|
|
|
from thinc.learner cimport LinearModel
|
|
|
|
|
|
|
|
from .arc_eager cimport TransitionSystem
|
|
|
|
|
|
|
|
from ..tokens cimport Tokens, TokenC
|
2014-12-18 22:30:50 +00:00
|
|
|
from ._state cimport State
|
2014-12-15 21:06:04 +00:00
|
|
|
|
|
|
|
|
2014-12-16 11:44:43 +00:00
|
|
|
cdef class GreedyParser:
|
2014-12-15 21:06:04 +00:00
|
|
|
cdef object cfg
|
|
|
|
cdef Extractor extractor
|
2014-12-16 11:44:43 +00:00
|
|
|
cdef readonly LinearModel model
|
2014-12-15 21:06:04 +00:00
|
|
|
cdef TransitionSystem moves
|
|
|
|
|
|
|
|
cpdef int parse(self, Tokens tokens) except -1
|