The Annotators
Annotators
are document processors that serve for automatically adding Annotations to a document that mark, for instance,
the matches of gazetteer lookups or regular expressions.
Since these sources of Annotations may need
additional parameters beside the gazetteer list or regular expression itself,
GoldenGATE prompts the user in order to give him the opportunity of submitting
these data. In automated processing sequences, however, these prompts are not
desirable. The Annotators fill this gap: They associate some source of
Annotations (e.g. a particular gazetteer list or regular expression) with
parameters necessary for the application of the source, and with the type / XML
element name the Annotations are intended to have.
The Annotators Menu
The Annotators menu provides access to functions
for managing and applying Annotators:
- Create: Create
a new Annnotator by selecting a source of Annotations and adding the
required parameters and the type for the Annotations.
- Edit: Open
the Annotator management dialog.
- Apply: Select
an Annotator from a list and apply it to the document currently selected.
This function is also available through the Apply Annotator option
in the Tools menu.
The Edit Annotators Dialog
The dialog for Annotator management is accessible
through the Edit function in the Annotator menu. On the right of the dialog, a
list displays all existing Annotator . In the lower middle, a set of input
fields displays the parameters of the Annotator currently selected in that list,
plus some buttons for changing them:
- Annotation Source Parameters: The
topmost part of the parameter input provides the parameters specific to the
selected source of Annotations. See there for further explanations.
- Annotation Source: The
label above the buttons displays the type and name of the Annotation source.
- "Use ..." Buttons: For
every type of Annotation source accessible to GoldenGATE, a button exists
which opens a dialog for selecting the source of Annotations from a list
displaying all avalilable sources of the particular type.
- Annotation Type: The
type / XML element name the Annotations are intended to have when added to a
document.
At the top of the dialog, a line of buttons
provides the functionality for managing the Annotators:
- Create: Open
a sub-dialog for creating a new Annotator by selecting a source of
Annotations and adding the required parameters and the type for the
Annotations.
- Clone: Clone
the Annotator currently selected. This is pretty much the same as creating a
new one, beside the fact that the parameter values are copied.
- Delete: Delete
the Annotator currently selected. This operation does not delete the source
of Annotations, but only the parameters associated with it by the Annotator.