2016-10-16 02:47:12 +03:00
|
|
|
from .syntax.parser cimport Parser
|
|
|
|
from .syntax.ner cimport BiluoPushDown
|
|
|
|
from .syntax.arc_eager cimport ArcEager
|
|
|
|
from .vocab cimport Vocab
|
2016-10-16 22:34:57 +03:00
|
|
|
from .tagger import Tagger
|
2016-10-16 02:47:12 +03:00
|
|
|
|
2016-10-16 22:34:57 +03:00
|
|
|
# TODO: The disorganization here is pretty embarrassing. At least it's only
|
|
|
|
# internals.
|
|
|
|
from .syntax.parser import get_templates as get_feature_templates
|
2016-10-16 02:47:12 +03:00
|
|
|
|
|
|
|
|
2016-10-16 22:34:57 +03:00
|
|
|
cdef class EntityRecognizer(Parser):
|
|
|
|
TransitionSystem = BiluoPushDown
|
|
|
|
|
|
|
|
feature_templates = get_feature_templates('ner')
|
2016-10-16 02:47:12 +03:00
|
|
|
|
|
|
|
|
|
|
|
cdef class DependencyParser(Parser):
|
2016-10-16 22:34:57 +03:00
|
|
|
TransitionSystem = ArcEager
|
2016-10-16 02:47:12 +03:00
|
|
|
|
2016-10-16 22:34:57 +03:00
|
|
|
feature_templates = get_feature_templates('basic')
|
|
|
|
|
2016-10-16 02:47:12 +03:00
|
|
|
|
|
|
|
__all__ = [Tagger, DependencyParser, EntityRecognizer]
|