AnnotationTool

The AnnotationTool provides the ability to examine and modify annotations on individual documents.  It is invoked by

xjet Jet.Tipster.AnnotationTool  document colorFile

where document is the name of the file containing the document, and colorFile
is a list of the annotation types to be examined and added, and the key associated with adding that annotation;  it consists of a sequence of lines of the form

type color key
or
type feature feature-value color key

where
type
is the annotation type
feature
if present, is a feature of the annotation
feature-value
is the value of that feature
color
is a 24-bit integer specifying the highlighting color (RGB encoding) for highlighting instances of that annotation in the text
key
is a single character specifying the key binding for assigning an annotation of that type in the tool

For example, a color file to annotate a document with ENAMEX tags for people, organizations, and locations would be

ENAMEX TYPE PERSON 0xff0000 p
ENAMEX TYPE ORGANIZATION 0xff o
ENAMEX TYPE GPE 0xff00 g


The document to be annotated must have <TEXT> ... </TEXT> tags;  only text between these tags can be annotated.  The tool recognizes the following keystrokes
right arrow
move selection one token to the right
left arrow
move selection one token to the left
shift - right arrow
extend the selection one token to the right
shift - left arrow
extend the selection one token to the left
u
remove the annotation on the selected tokens ('unannotate')
(the selection must exactly correspond to the span of an annotation
q or Q
save file and quit
blank
scroll to end of region to be annotated

In addition, the tool recognizes the keys which are paired with annotation types in the color file.  The selection point may also be repositioned by selecting a token with the mouse.  To modify an annotation, one must first remove the annotation and then add a corrected annotation.