OFAI

NOTE: This plugin has been superseded by the JapeUtils plugin!

JAPE Backwards References Plugin

This is a GATE plugin that allows to check for identical feature values in different constraints in a JAPE rule LHS.

Here is an example:

({Token valueref {Token.string != "ref1"}}
 {Token valueref {Token.string == "ref1"}}
)
This will match any occurence of two Tokens that have identical values for the feature "string". The name "ref1" identifies between constraints which reference a value should be compared to. The referenced values are not cleared automatically. Each sequence of constraints that uses a reference should use "!=" in the first constraint to reset the referenced value.

This can be used inside Kleene operators and can also use the meta features, e.g. "Token@string" instead of "Token.string".

 

You can download the plugin as

Javadoc documentation of the plugin

INSTALLATION: the distribution contains a precompiled version compiled with Sun JDK 1.6 under Linux. This should work with other OS or Java versions, but if not, the package can be recompiled in the standard way with a simple ant command.

Simply unpack the archive, then within GATE go to File->Manage Creole Plugins, press the "Add new CREOLE repository" button and select the directory you have just created.

Contact

The author is happy to receive feedback, bug reports etc and will try to answer as soon as possible. Send email to johann[DOT]petrak(AT)ofai[DOT]at.

License

As an extension of the original GATE code, this is made available under the GNU Lesser General Publice License

See also: Other GATE Plugins and Resources