org.annotation.wordfreak.annotator
Class CoreferenceAnnotator
java.lang.Object
org.annotation.wordfreak.annotator.Annotator
org.annotation.wordfreak.annotator.DocumentProcessor
org.annotation.wordfreak.annotator.CoreferenceAnnotator
- All Implemented Interfaces:
- java.awt.event.ActionListener, AnnotatedFileListener, java.util.EventListener, Plugin
- public abstract class CoreferenceAnnotator
- extends DocumentProcessor
Abstract class for extended for performing coreference annotation.
Method Summary |
protected abstract Annotation[][] |
partitionMentions(Annotation document,
double percentage)
Returns a partitioning of the specified mentions based on coreference relationships. |
void |
processDocument(Annotation document,
double percentage)
Processes the specified document which consisits of the specified percentage of total work to be performed by this annotator. |
protected void |
updateCoreferenceAnnotations(Annotation[][] partition)
Assigns coreference relationships based on the specified partition of annotations. |
protected void |
updateCoreferenceAnnotations(Annotation[][] partition,
int startIndex)
Assigns coreference relationships based on the specified partition of annotations. |
Methods inherited from class org.annotation.wordfreak.annotator.Annotator |
actionPerformed, addAnnotatorListener, annotate, annotatedFile, closeAnnotatedFile, done, getDataDirectory, hideWaitDialog, loadAnnotator, loaded, removeAnnotatorListener, setAnnotationFilter, setDataDirectory, setGuiListener, setProgress, setTrainingFilter, showWaitDialog, sortedOutcomes, supportsTraining, train, training, updateProgress |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CoreferenceAnnotator
public CoreferenceAnnotator(java.lang.String type)
updateCoreferenceAnnotations
protected void updateCoreferenceAnnotations(Annotation[][] partition)
- Assigns coreference relationships based on the specified partition of annotations.
- Parameters:
partition
- An array whose first dimension specifies which annotations are in the same coreference relationship and whose second dimension specifies a specific annotation.
updateCoreferenceAnnotations
protected void updateCoreferenceAnnotations(Annotation[][] partition,
int startIndex)
- Assigns coreference relationships based on the specified partition of annotations.
- Parameters:
partition
- An array whose first dimension specifies which annotations are in the same coreference relationship and whose second dimension specifies a specific annotation.startIndex
- The starting value for new partitions id number.
partitionMentions
protected abstract Annotation[][] partitionMentions(Annotation document,
double percentage)
- Returns a partitioning of the specified mentions based on coreference relationships.
- Parameters:
document
- The top-level annotation which contains the mentions. Typically this is a document.percentage
- The percentage of work that this document represents.
- Returns:
- A array specifying a partitioning of the specified mentions based on coreference relationships.
The first dimension of teh array specifies the partition, and a second a specific annotaiton within that partition.
processDocument
public void processDocument(Annotation document,
double percentage)
- Description copied from class:
DocumentProcessor
- Processes the specified document which consisits of the specified percentage of total work to be performed by this annotator.
- Specified by:
processDocument
in class DocumentProcessor
- Parameters:
document
- The document to be annotated.percentage
- The percentage of work this document represents.
Copyright © 2004 Thomas Morton and Jeremy LaCivita. All Rights Reserved.