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
public void doit(Document doc,
Map bindings,
AnnotationSet annotations,
AnnotationSet inputAS,
AnnotationSet outputAS)
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 matc 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 set- Throws:
JapeException
-