From fa23278ee3efaa2d1dd5138638ce5e235421d19b Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sat, 11 Mar 2017 12:45:37 -0600 Subject: [PATCH] Add classes for beam parser and beam NER --- spacy/pipeline.pxd | 10 +++++++++- spacy/pipeline.pyx | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/spacy/pipeline.pxd b/spacy/pipeline.pxd index 2ade6a0c4..b08f18f33 100644 --- a/spacy/pipeline.pxd +++ b/spacy/pipeline.pxd @@ -5,9 +5,17 @@ from .syntax.arc_eager cimport ArcEager from .tagger cimport Tagger -cdef class EntityRecognizer(BeamParser): +cdef class EntityRecognizer(Parser): pass cdef class DependencyParser(Parser): pass + + +cdef class BeamEntityRecognizer(BeamParser): + pass + + +cdef class BeamDependencyParser(BeamParser): + pass diff --git a/spacy/pipeline.pyx b/spacy/pipeline.pyx index 5e77013f4..45e443519 100644 --- a/spacy/pipeline.pyx +++ b/spacy/pipeline.pyx @@ -11,7 +11,7 @@ from .syntax.parser import get_templates as get_feature_templates from .attrs import DEP, ENT_TYPE -cdef class EntityRecognizer(BeamParser): +cdef class EntityRecognizer(Parser): """Annotate named entities on Doc objects.""" TransitionSystem = BiluoPushDown