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