org.annotation.wordfreak.scheme
Class CoreferenceAnnotationScheme

java.lang.Object
  extended byorg.annotation.wordfreak.scheme.AnnotationScheme
      extended byorg.annotation.wordfreak.scheme.DerivativeAnnotationScheme
          extended byorg.annotation.wordfreak.scheme.NamedEntityAnnotationScheme
              extended byorg.annotation.wordfreak.scheme.CoreferenceAnnotationScheme
All Implemented Interfaces:
AnnotatedFileListener, ChooserListener, java.util.EventListener, Plugin, javax.swing.event.TreeModelListener, UndoListener, ViewerListener, WordFreakKeyboardFocusManager.HotKeyListener

public class CoreferenceAnnotationScheme
extends NamedEntityAnnotationScheme

Scheme for annotating coreference relationships.


Nested Class Summary
 
Nested classes inherited from class org.annotation.wordfreak.scheme.AnnotationScheme
AnnotationScheme.POSFeature
 
Field Summary
static java.lang.String CLEAR
           
protected  Annotation currentDocument
           
static java.lang.String ENTITY_ID
           
static java.lang.String MERGE
           
static java.lang.String NEW
           
static java.lang.String PURGE
           
protected  boolean showCoreference
           
protected  boolean showOutcomes
           
static java.lang.String SNP
           
protected  boolean solitaryTypeInGroup
           
static java.lang.String SPLIT
           
static java.lang.String[] TRUE_FALSE
           
static java.lang.String UNKNOWN
           
 
Fields inherited from class org.annotation.wordfreak.scheme.NamedEntityAnnotationScheme
base, binary, COLOR, dividers, featureOrientation, features, featureValues, GROUP, handles, HEAD, iconFeature, iconMap, NAME, negroups, NONE, outcomeOrientation, ROLE, roles, showFeatures, showHead, tenSpace
 
Fields inherited from class org.annotation.wordfreak.scheme.DerivativeAnnotationScheme
canCreateChains, deleteParagraphs, matcher, pattern, preprocess, recursive
 
Fields inherited from class org.annotation.wordfreak.scheme.AnnotationScheme
_ADD, _MOVE, _RELOAD, _REMOVE, _UPDATE, ANNOTATE, annotationFilter, annotator, annotatorName, canCreateAnnotations, chooser, chooserWidth, COADJUST, COADJUSTLEFT, COADJUSTRIGHT, codes, coloredWords, colors, colorTable, COMMENT, config, configLoaded, confineToBase, currentFile, DEFAULT_ACTION, defaultType, END, files, findIndex, FLATLEFT, FLATNEXT, FLATPREV, FLATRIGHT, groups, GROWLEFT, GROWRIGHT, guiListener, HOME, icons, index, INSERT, JUMP, L2R, LEFT, listeners, navigator, NEXT, NEXTCHUNK, NORM, one2one, one2oneFeature, one2oneValue, orientation, OUTCOME_CODES, OUTCOME_COLORS, OUTCOME_NAMES, outcomes, PREV, PREVCHUNK, R2L, REMOVE, RIGHT, selectedAnnotations, selEnd, selStart, SHRINKLEFT, SHRINKRIGHT, sortCriteria, sorted, sortedIndex, splita, splitb, type, typeMap, typeName, types, update, UPDATE, view, views
 
Constructor Summary
CoreferenceAnnotationScheme(java.lang.String xml)
           
CoreferenceAnnotationScheme(java.lang.String type, Chooser c)
           
 
Method Summary
 void annotatedFile(AnnotationFile f)
          Selects annotations from f that this scheme can modify.
 void createChooser()
          Instantiates a new chooser if one does not already exist and registers the chooser for scheme events and the scheme for chooser events.
protected  void getAnnotationsFromFile(AnnotationFile f)
          Creates data structures needed by the scheme to induce the set of all possible annotations.
 java.lang.String[] getValuesForFeature(java.lang.String f)
          Returns the set of valid values for the specified feature.
 boolean handlesAnnotation(Annotation a)
           
protected  void loadXML()
           
protected  void process(Annotation a)
           
 void redoPerformed()
           
 void removeAnnotation(Annotation a)
           
 void set(java.lang.String choice, int modifiers, boolean jump)
          Specifies that the specified choice has been selected with the specified modifier and that the next annotation should be shown.
 void setConfig(java.util.Map cfg)
          Assigns the configuration specific properties of this scheme.
 void setFeaturesToDisplay(AnnotationSchemeListener l)
           
 void trackAnnotation(Annotation a)
           
 void undoPerformed()
           
protected  void updateOutcomes(Annotation a)
          Changes the possible outcomes or their order as appropiate.
 
Methods inherited from class org.annotation.wordfreak.scheme.NamedEntityAnnotationScheme
addAnnotationSchemeListener, createNamedEntityComponent, handlesBaseAnnotation, initOutcomes, process
 
Methods inherited from class org.annotation.wordfreak.scheme.DerivativeAnnotationScheme
addAnnotation, addAnnotation, annotationFromMouse, findExpression, findExpressionAgain, getInsertCommandFromSelection, getPreprocessing, makeVisible, moveAnnotation, next, offsetToIndex, prev, removeAnnotation, removeRedundantChildren, replaceChildrenWithParent, selectCurrentAnnotation, set, setAnnotation, setPreprocessing, setSelection, setSelection, unstyleAnnotation
 
Methods inherited from class org.annotation.wordfreak.scheme.AnnotationScheme
adjudicationMatch, adjudicationMatch, annotationFromMouse, annotationFromMouse, buildSwatches, closeAnnotatedFile, colorize, createView, dispose, down, end, filter, flatNext, flatPrev, getAdjudicationData, getAnnotation, getAnnotation, getAnnotationFilter, getAnnotationsFromOffsets, getAnnotationSize, getChooser, getColorScheme, getConfineToBase, getCurrentAnnotation, getDefaultType, getNames, getPropertyName, getSelectionMode, getSortedIndex, handlesRelation, hilightChunk, home, hotKeyPressed, indexOfAnnotation, isOutcome, jumpToMark, linkAnnotation, nextFile, nextOutcome, notifyListeners, notifyListeners, prevFile, prevOutcome, reload, reloadFiles, removeAllAnnotationSchemeListeners, removeAnnotationSchemeListener, set, set, setAnnotatedFile, setAnnotationFilter, setAnnotationView, setAnnotator, setAnnotatorName, setChooser, setChunkNavigation, setConfineToBase, setFeature, setGuiListener, setJumpAfterAnnotation, setMark, setNavigator, setOneToOne, setOneToOne, setOrientation, setSelectionEnd, setSelectionMode, setSelectionStart, setSelEnd, setSortedIndex, setSortScheme, setTypeName, treeNodesChanged, treeNodesInserted, treeNodesRemoved, treeStructureChanged, up, viewCreated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentDocument

protected Annotation currentDocument

SNP

public static final java.lang.String SNP
See Also:
Constant Field Values

solitaryTypeInGroup

protected boolean solitaryTypeInGroup

showCoreference

protected boolean showCoreference

showOutcomes

protected boolean showOutcomes

TRUE_FALSE

public static final java.lang.String[] TRUE_FALSE

UNKNOWN

public static final java.lang.String UNKNOWN
See Also:
Constant Field Values

NEW

public static final java.lang.String NEW
See Also:
Constant Field Values

CLEAR

public static final java.lang.String CLEAR
See Also:
Constant Field Values

MERGE

public static final java.lang.String MERGE
See Also:
Constant Field Values

SPLIT

public static final java.lang.String SPLIT
See Also:
Constant Field Values

PURGE

public static final java.lang.String PURGE
See Also:
Constant Field Values

ENTITY_ID

public static final java.lang.String ENTITY_ID
See Also:
Constant Field Values
Constructor Detail

CoreferenceAnnotationScheme

public CoreferenceAnnotationScheme(java.lang.String xml)

CoreferenceAnnotationScheme

public CoreferenceAnnotationScheme(java.lang.String type,
                                   Chooser c)
Method Detail

undoPerformed

public void undoPerformed()
Specified by:
undoPerformed in interface UndoListener
Overrides:
undoPerformed in class AnnotationScheme

redoPerformed

public void redoPerformed()
Specified by:
redoPerformed in interface UndoListener
Overrides:
redoPerformed in class AnnotationScheme

setConfig

public void setConfig(java.util.Map cfg)
Description copied from class: AnnotationScheme
Assigns the configuration specific properties of this scheme.

Overrides:
setConfig in class NamedEntityAnnotationScheme

loadXML

protected void loadXML()
Overrides:
loadXML in class NamedEntityAnnotationScheme

getValuesForFeature

public java.lang.String[] getValuesForFeature(java.lang.String f)
Description copied from interface: ViewerListener
Returns the set of valid values for the specified feature. Typically this is only valid for the type feature.

Specified by:
getValuesForFeature in interface ViewerListener
Overrides:
getValuesForFeature in class AnnotationScheme

annotatedFile

public void annotatedFile(AnnotationFile f)
Description copied from class: AnnotationScheme
Selects annotations from f that this scheme can modify.

Specified by:
annotatedFile in interface AnnotatedFileListener
Overrides:
annotatedFile in class DerivativeAnnotationScheme

getAnnotationsFromFile

protected void getAnnotationsFromFile(AnnotationFile f)
Description copied from class: AnnotationScheme
Creates data structures needed by the scheme to induce the set of all possible annotations. This minimaly includes populating List annotations and List allAnnotaitons

Overrides:
getAnnotationsFromFile in class AnnotationScheme

trackAnnotation

public void trackAnnotation(Annotation a)
Overrides:
trackAnnotation in class AnnotationScheme

handlesAnnotation

public boolean handlesAnnotation(Annotation a)
Overrides:
handlesAnnotation in class NamedEntityAnnotationScheme

setFeaturesToDisplay

public void setFeaturesToDisplay(AnnotationSchemeListener l)
Overrides:
setFeaturesToDisplay in class NamedEntityAnnotationScheme

createChooser

public void createChooser()
Description copied from class: AnnotationScheme
Instantiates a new chooser if one does not already exist and registers the chooser for scheme events and the scheme for chooser events.

Overrides:
createChooser in class NamedEntityAnnotationScheme

process

protected void process(Annotation a)
Overrides:
process in class AnnotationScheme

removeAnnotation

public void removeAnnotation(Annotation a)
Overrides:
removeAnnotation in class DerivativeAnnotationScheme

set

public void set(java.lang.String choice,
                int modifiers,
                boolean jump)
Description copied from interface: ChooserListener
Specifies that the specified choice has been selected with the specified modifier and that the next annotation should be shown.

Specified by:
set in interface ChooserListener
Overrides:
set in class NamedEntityAnnotationScheme

updateOutcomes

protected void updateOutcomes(Annotation a)
Description copied from class: AnnotationScheme
Changes the possible outcomes or their order as appropiate.

Overrides:
updateOutcomes in class AnnotationScheme


Copyright © 2004 Thomas Morton and Jeremy LaCivita. All Rights Reserved.