public class OpenNLPPOSAnnotator extends AbstractPOSAnnotator
POSTaggerME
backed by a POSModel
Modifier and Type | Field and Description |
---|---|
static String |
POS_MODEL_DEFAULT |
static String |
POS_MODEL_PROP
Name of system property pointing to the POS model
|
Constructor and Description |
---|
OpenNLPPOSAnnotator() |
Modifier and Type | Method and Description |
---|---|
void |
annotate(RawTextAnnotation annotation)
Annotates the given
TextPipeAnnotation . |
protected List<POSAnnotation.PartOfSpeech> |
pos(List<String> tokenList) |
performAnnotation
public static final String POS_MODEL_PROP
public static final String POS_MODEL_DEFAULT
public OpenNLPPOSAnnotator()
public void annotate(RawTextAnnotation annotation) throws MissingRequiredAnnotationException
AbstractTextPipeAnnotator
TextPipeAnnotation
. The work is delegated to the abstract methods.annotate
in class AbstractTextPipeAnnotator<RawTextAnnotation>
MissingRequiredAnnotationException
protected List<POSAnnotation.PartOfSpeech> pos(List<String> tokenList)
pos
in class AbstractPOSAnnotator