Quick Start Tutorial
This tutorial introduces basic concepts of using Knowtator and assumes that you have already installed Knowtator and created a new and empty annotation project.
If you have not yet installed Knowtator and created a new and empty annotation project, then
please consult the
installation instructions. You should start this tutorial with Protégé and Knowtator running such
that the application looks like this
screenshot.
Creating an annotation schema
A new annotation project will have no annotation schema, so let's create one:
- Click on the tab labeled 'Classes'
- Click on the node in the Class Hierarchy labeled ':THING'.
- Click on the 'Create Class' button.
- Enter a name for the newly created class "person"
- Create two more classes called "date" and "coreference" (repeating from step 2)
- Select the class called 'coreference'.
- Click on the 'Create Slot' button.
- Perform the following steps on the new slot:
- Set the name of the new slot to "coref_person"
- Set the value type to be 'Instance'
- Set the allowed classes to be 'person'
- Set the cardinality to 'multiple'
- The slot should look like this:
- close the slot definition dialog
We have now create a simple annotation schema! The annotation schema we have created is very simple compared to what can be expressed using Protégé. To make richer annotation schemas
you will likely want to understand inheritance, slots and their facets, and instances. The Protégé project has excellent
documentation and
a great tutorial that will step you through the process
of creating class, slot, facet, and instance frames. Note that Knowtator may not work as you expect it to for some of the more advanced representational
constructs of Protégé such as slot inheritance and multiple inheritance. Please experiment!
Setting up Knowtator
Now when you click on the Knowtator tab you should see the classes you created on the left-hand side in the panel labeled "annotation schema." The first thing
we will do is fill in some of the important configuration parameters. There are also
detailed instructions on how to set
configuration parameters. Please consult these as needed.
- From the top menu, select Knowtator->Configure
- Remove ":THING" from the root classes parameter and add "person", "date", and "coreference"
- Create a new instance for default annotator by clicking the "Create Instance" button:
Choose "Knowtator Human Annotator" and fill in the annotator's information.
- Create three new instances for the "color assignments" parameter. Assign "green-yellow" to person, "magenta" to date, and "sienna" to coreference.
You may need to save, close, and reopen your annotation project for the colors to appear correctly.
- Close the config dialog
Next we will load some texts to annotate:
- Click on the "open text source collection" button.
Do not confuse this with the "open project" button (hover your mouse over the button to see the tool tip text.)
- Select "Local Files" and click OK.
- Navigate to a directory that contains plain text files. If you do not have any plain text files, then you can download 10 files selected arbitrarily
from the sci.space newsgroup from the widely used 20 newsgroups corpus.
- Click "Open"
You should now see that the first file loaded into Knowtator and the text source collection navigation buttons should now be enabled.
We are now ready to start annotating! Note that because Knowtator uses stand-off annotation the text sources that are loaded into Knowtator are never
modified.
Your first annotation
To annotate a mention of "person" do the following:
- Highlight a span of text corresponding to a person mention.
- Click on the person class in the annotation schema:
A context menu pops up.
- From the context menu select "create annotation..."
- You have created your first annotation and it should be selected. All the details of this
annotation appear on the right-hand side of the window.
Fast annotate
Now we are going to quickly create some more person annotations:
- Click on the person class in the annotation schema
- Select "fast annotate: person" from the context menu.
- Observe that you are now in "fast annotate" mode.
- Select another span of text corresponding to a person mention.
- Boom goes the dynamite!
- Select another span of text corresponding to a person mention.
- Click the quit button to get out of fast annotate mode.
Coreference annotation
I am not endorsing the annotation schema used in this example as the way one should annotate coreference - this is simply for illustrative purposes. There
are many ways one might model coreference in the annotation schema.
- Click on the coreference class in the annotation schema.
- Select "create annotation: coreference" from the context menu. The result is a spanless annotation that has been created and selected.
- Click the button for the slot "Coref Person".
- Select any two (or more) person annotations from the popup dialog that correspond to the same person. Multiple selection is achieved by clicking
with the mouse while holding down the control ('Ctrl') key. Result: You have created a coreference annotation.
- Please see the FAQ for tips and tricks on how to annotate quicker. In particular, look at the tips for filling slot values.
- You may observe that the displayed text for the annotation is quite uninformative (e.g. "quickstart_Instance_10023"). Please see the
FAQ for instructions on how to change the display text of the annotation.
This is particularly useful for spanless annotations.
Selecting annotations
There are several ways to select an annotation:
- From the annotation schema: Each class in the annotation schema that has annotations will have a number in parentheses that indicates how many
annotations there are of that class.
Clicking on a class will will provide a context menu with options to
select the annotations of that class. If the class has more annotations than some predifined threshold, then a "more..." option will be available.
- From the text viewer: Every annotation that has a span can be selected from the text viewer. Simply clicking on the span of text will select that
annotation. However, if there are multiple annotations that overlap at the point where the mouse is clicked or the annotations at that location
can fill one or more of the slot values of the currently selected annotation, then a context menu will appear that provides selection and slot filling
options.
- From the selected annotation: If an annotation has slot values that are filled in with other annotations, then double-clicking on the slot value
will cause the annotation to be the selected annotation.
- From the "select annotation" buttons: There are two buttons on the tool bar that have the tool tip texts "select previous annotation" and
"select next annotation".
Clicking the "select next annotation" button will select the next annotation
of the same type as the currently selected annotation. This would give you a convenient way to iterate through all coreference annotations, for
example, without having to select them from the context menus of the annotation schema.
Maintained by Philip V. Ogren.
This file last modified Monday, 08-Dec-2008 21:57:11 UTC