2014-12-15 21:06:04 +00:00
|
|
|
from thinc.features cimport Extractor
|
|
|
|
from thinc.learner cimport LinearModel
|
|
|
|
|
|
|
|
from .arc_eager cimport TransitionSystem
|
|
|
|
|
2014-12-30 10:21:17 +00:00
|
|
|
from ..tokens cimport Tokens, TokenC
|
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
|