The following describes the command to launch the graph annotator:
python -m streamside.annotator -a ANNOTATOR_ID [-m wisen|amr -r RESOURCE_DIR] &-aor--annotator: the ID of the annotator (required).-mor--mode: choose the representationwisen(default) oramr.-ror--resources: the path to a custom resource directory; if not specified, it uses the default resources.
If you are using a mac, replace the
Ctrlkey with theCmdkey .
Press Ctrl+o to prompt a file dialog:
- For the initial annotation, choose a text file comprising a sentence per line (e.g., training-examples.txt).
- For a returning annotation, choose a JSON file that is previously saved (e.g., training-examples.jdchoi.json).
Press Ctrl+s to save the current annotation to the JSON file whose name includes the annotator ID.
Any of the following actions will prompt the input dialog to create a concept:
- For a concept aligned to no word span, simply press
c. - For a concept aligned to a consecutive word span, highlight the span and press
c. - For a concept aligned to disjoint word spans, highlight each span and press
xthat selects the span and shows it in a yellow background. When all spans are selected, pressc.
Spans that are already aligned to previously created concepts cannot be selected.
To deselect spans:
- Highlight spans to deselect and press
Shift+x. The highlighted span could include words that were not selected; any selected word within the highlight will be deselected. - To deselect all selected spans, press
Shift+xwithout highlighting any word.
Once the input dialog is prompted:
- Type the concept name; predefined concepts will be auto-completed by the input textbox.
- Press
Enteror theOKbutton to create the concept.
Once the concept is created, its spans are displayed in gray on the text.
Attribute can be created in the exact same way as the concept by pressing a instead of c.
The following actions will prompt the input dialog to create a relation:
- Highlight the ID of the parent concept in the graph and press
wthat selects and shows the parent in pink. - Highlight the ID of the child concept in the graph and press
ethat selects and shows the child in green. - Once the parent and the child concepts are selected, press
rto create a relation.
The parent and child IDs must be selected to create a relation.
To deselect the IDs:
- Press
Shift+wto deselect the parent concept. - Press
Shift+eto deselect the parent concept.
Once the input dialog is prompted:
- Type the relation label; predefined labels will be auto-completed by the input textbox.
- To make the child concept as a referent argument, press
Ctrl+ror check theReferentbox. - To make an inverse relation (
*-of), pressCtrl+for check theInversebox. - Press
Enteror theOKbutton to create the concept.
To delete a concept or an attribute:
- Highlight the ID of the concept/attribute and press
Ctrl+d.
To delete a relation:
- Highlight the label of the relation and press
Ctrl+d.
To update the name of a concept or an attribute:
- Highlight the ID of the concept/attribute and press
Ctrl+f.
To update the label of a relation:
- Highlight the label of the relation and press
Ctrl+f.
- To move to the previous sentence, press
,. - To move to the next sentence, press
.. - To move to the first sentence, press
Ctrl+,. - To move to the last sentence, press
Ctrl+.. - To jump to a certain sentence, press
Ctrl+/and choose the sentence ID.