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) |
performAnnotationpublic static final String POS_MODEL_PROP
public static final String POS_MODEL_DEFAULT
public OpenNLPPOSAnnotator()
public void annotate(RawTextAnnotation annotation) throws MissingRequiredAnnotationException
AbstractTextPipeAnnotatorTextPipeAnnotation. The work is delegated to the abstract methods.annotate in class AbstractTextPipeAnnotator<RawTextAnnotation>MissingRequiredAnnotationExceptionprotected List<POSAnnotation.PartOfSpeech> pos(List<String> tokenList)
pos in class AbstractPOSAnnotator