|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AnnotationBuilder
Interface for classes that port Annotations between UIMA representations and GATE.
Method Summary | |
---|---|
void |
addFeatureBuilder(FeatureBuilder builder)
Adds the specified feature builder. |
java.lang.String |
getAnnotationSet()
Gets the name of GATE annotation set, if any, used by this builder. |
java.lang.String |
getUIMAName()
Gets the UIMA name of this annotation builder. |
boolean |
isIndexed()
Returns whether or not this AnnotationBuilder will map the gate and uima annotations to each other. |
void |
run(org.apache.uima.cas.CAS cas,
gate.Document doc,
java.util.Map<java.lang.Integer,org.apache.uima.cas.FeatureStructure> index)
Runs the annotation builder using the supplied CAS and Document. |
void |
setAnnotationSet(java.lang.String annotationSet)
Sets the name of GATE annotation set, if any, used by this builder. |
void |
setFilter(AnnotationBuilderFilter filter)
Sets the specified AnnotationBuilderFilter. |
Method Detail |
---|
void run(org.apache.uima.cas.CAS cas, gate.Document doc, java.util.Map<java.lang.Integer,org.apache.uima.cas.FeatureStructure> index) throws UGMappingException
cas
- the UIMA CASdoc
- the gate Documentindex
- Map of GATE Annotation id ints to UIMA AnnotationFS.
UGMappingException
- if there is an error while building the annotations.boolean isIndexed()
java.lang.String getUIMAName()
java.lang.String getAnnotationSet()
void setAnnotationSet(java.lang.String annotationSet)
annotationSet
- the name of the annotation set.void addFeatureBuilder(FeatureBuilder builder)
builder
- the builder to addvoid setFilter(AnnotationBuilderFilter filter)
filter
- the filter to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |