Package | Description |
---|---|
gate.jape | |
gate.jape.constraint |
Modifier and Type | Class and Description |
---|---|
class |
NonFatalJapeException |
Modifier and Type | Method and Description |
---|---|
void |
LeftHandSide.addBinding(String bindingName,
ComplexPatternElement binding,
Set<String> bindingNameSet)
Add a binding record.
|
void |
RightHandSide.createActionClass()
Create the action class and an instance of it.
|
void |
RhsAction.doit(Document doc,
Map<String,AnnotationSet> bindings,
AnnotationSet inputAS,
AnnotationSet outputAS,
Ontology ontology)
Fires the RHS action for a particular LHS match.
|
protected boolean |
SinglePhaseTransducer.fireRule(List<FSMInstance> acceptingFSMInstances,
SinglePhaseTransducer.SearchState state,
long lastNodeOff,
SimpleSortedSet offsets,
AnnotationSet inputAS,
AnnotationSet outputAS,
Document doc,
SimpleSortedSet annotationsByOffset)
Fire the rule that matched.
|
void |
RightHandSide.instantiateActionClass()
Create an instance of the action class.
|
void |
Batch.transduce(Corpus coll)
Process the given collection.
|
void |
Batch.transduce(Document doc)
Process a single document.
|
void |
Batch.transduce(Document doc,
AnnotationSet inputAS,
AnnotationSet outputAS)
Process a single document.
|
void |
MultiPhaseTransducer.transduce(Document doc,
AnnotationSet input,
AnnotationSet output)
Transduce the document by running each phase in turn.
|
void |
Rule.transduce(Document doc,
AnnotationSet inputAS,
AnnotationSet outputAS)
Apply the RHS of this rule (LHS must have been matched first).
|
void |
SinglePhaseTransducer.transduce(Document doc,
AnnotationSet inputAS,
AnnotationSet outputAS)
Transduce a document using the annotation set provided and the
current rule application style.
|
abstract void |
Transducer.transduce(Document doc,
AnnotationSet inputAS,
AnnotationSet outputAS)
Transduce a document.
|
void |
RightHandSide.transduce(Document doc,
Map<String,AnnotationSet> bindings,
AnnotationSet inputAS,
AnnotationSet outputAS,
Ontology ontology,
ActionContext actionContext)
Makes changes to the document, using LHS bindings.
|
Constructor and Description |
---|
Batch(URL url,
String encoding)
Create a fully initialised instance.
|
Batch(URL url,
String encoding,
StatusListener sListener) |
Modifier and Type | Method and Description |
---|---|
protected int |
ComparablePredicate.compareValue(Object obj)
Use
compareTo to compare set value with the given
object, doing basic type conversion to get the two objects to the
same class. |
protected abstract boolean |
ComparablePredicate.doMatch(Object featureValue) |
protected boolean |
GreaterEqualPredicate.doMatch(Object annotValue)
Check if passed value is greater than or equal to stored value
using
Comparable operations. |
protected boolean |
GreaterPredicate.doMatch(Object annotValue)
Check if passed value is greater than stored value using
Comparable operations. |
protected boolean |
LesserEqualPredicate.doMatch(Object annotValue)
Check if passed value is less than or equal to stored value using
Comparable operations. |
protected boolean |
LesserPredicate.doMatch(Object annotValue)
Check if passed value is less than stored value using
Comparable operations. |
protected abstract boolean |
AbstractConstraintPredicate.doMatch(Object value,
AnnotationSet context) |
boolean |
AbstractRegExpPredicate.doMatch(Object annotValue,
AnnotationSet context)
Returns true if the given value matches the set pattern.
|
boolean |
ComparablePredicate.doMatch(Object value,
AnnotationSet context) |
boolean |
EmbeddedConstraintPredicate.doMatch(Object annotValue,
AnnotationSet context)
Sets up environment for concrete class to do the specific matching check
|
boolean |
EqualPredicate.doMatch(Object annotValue,
AnnotationSet context) |
boolean |
NotContainsPredicate.doMatch(Object annotValue,
AnnotationSet context)
Sets up environment for concrete class to do the specific matching check
|
boolean |
NotEqualPredicate.doMatch(Object annotValue,
AnnotationSet context) |
boolean |
NotWithinPredicate.doMatch(Object annotValue,
AnnotationSet context)
Sets up environment for concreate class to do the specific matching check
|
boolean |
AbstractConstraintPredicate.matches(Annotation annot,
AnnotationSet context) |
boolean |
ConstraintPredicate.matches(Annotation annot,
AnnotationSet context)
Evaluates if the provided annotation meets the requirements of the
predicate.
|