gate.jape
Interface RhsAction
- All Superinterfaces:
- Serializable
public interface RhsAction
- extends Serializable
An interface that defines what the action classes created
for RightHandSides look like.
doit
void doit(Document doc,
Map<String,AnnotationSet> bindings,
AnnotationSet annotations,
AnnotationSet inputAS,
AnnotationSet outputAS,
Ontology ontology)
throws JapeException
- Fires the RHS action for a particular LHS match.
- Parameters:
doc
- the document the RHS action will be run onbindings
- A map containing the matching results from the LHS in
the form label(String) -> matched annotations (AnnotationSet)annotations
- copy of the outputAS value provided for backward
compatibilityinputAS
- the input annotation setoutputAS
- the output annotation setontology
-
- Throws:
JapeException
setActionContext
void setActionContext(ActionContext actionContext)
getActionContext
ActionContext getActionContext()