|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgate.creole.annic.PatternAnnotation
public class PatternAnnotation
Pattern Annotation is similar to a GATE Annotation except that it doesn't have any annotation ID but it contains its position in the token stream that is created when indexing documents.
| Field Summary | |
|---|---|
private int |
enOffset
End Offset |
private Map<String,String> |
features
FeatureMap |
private int |
position
Position in the token stream |
private static long |
serialVersionUID
serial version id |
private int |
stOffset
Start Offset |
private String |
text
Text of the annotation |
private String |
type
Annotation Type |
| Constructor Summary | |
|---|---|
PatternAnnotation()
Constructor |
|
| Method Summary | |
|---|---|
void |
addFeature(String key,
String val)
Adds a feature |
int |
getEndOffset()
Gets the end offset |
String |
getFeature(String key)
Gets the value of a feature |
Map<String,String> |
getFeatures()
Gets the Features |
int |
getPosition()
Gets the position of this annotation in the token stream. |
int |
getStartOffset()
Gets the start offset |
String |
getText()
Gets the text of the annotation |
String |
getType()
Gets the type of the annotation |
void |
setEnOffset(int en)
Sets the end offset |
void |
setPosition(int pos)
Sets the position |
void |
setStOffset(int st)
Sets the start offset |
void |
setText(String text)
Sets the TExt |
void |
setType(String type)
Sets the Type |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
private String type
private String text
private int stOffset
private int enOffset
private Map<String,String> features
private int position
| Constructor Detail |
|---|
public PatternAnnotation()
| Method Detail |
|---|
public void setType(String type)
type - public void setText(String text)
text - public void setStOffset(int st)
st - public void setEnOffset(int en)
en -
public void addFeature(String key,
String val)
key - val - public void setPosition(int pos)
pos - public Map<String,String> getFeatures()
public String getFeature(String key)
key -
public String getType()
public String getText()
public int getStartOffset()
public int getEndOffset()
public int getPosition()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||