public class StemmedLookupAnnotationToJCasAdapter extends Object implements LookupAnnotation, LookupToken
Constructor and Description |
---|
StemmedLookupAnnotationToJCasAdapter(org.apache.uima.jcas.tcas.Annotation jcasAnnotObj) |
Modifier and Type | Method and Description |
---|---|
void |
addStringAttribute(String attrKey,
String attrVal)
Adds an attribute that may be used for filtering.
|
int |
getEndOffset()
Gets the end offset.
|
int |
getLength()
Gets the length of this annotation based on offsets.
|
int |
getStartOffset()
Gets the start offset.
|
String |
getStringAttribute(String attrKey)
Gets an attribute.
|
String |
getText()
if this is a word, return the stemmed word, if available - i.e.
|
public StemmedLookupAnnotationToJCasAdapter(org.apache.uima.jcas.tcas.Annotation jcasAnnotObj)
public void addStringAttribute(String attrKey, String attrVal)
LookupAnnotation
addStringAttribute
in interface LookupAnnotation
public int getEndOffset()
LookupAnnotation
getEndOffset
in interface LookupAnnotation
public int getLength()
LookupAnnotation
getLength
in interface LookupAnnotation
public int getStartOffset()
LookupAnnotation
getStartOffset
in interface LookupAnnotation
public String getStringAttribute(String attrKey)
LookupAnnotation
getStringAttribute
in interface LookupAnnotation
public String getText()
getText
in interface LookupAnnotation
SetupAuiFirstWord
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.