org.annotation.wordfreak.annotator
Class DocumentProcessor

java.lang.Object
  extended byorg.annotation.wordfreak.annotator.Annotator
      extended byorg.annotation.wordfreak.annotator.DocumentProcessor
All Implemented Interfaces:
java.awt.event.ActionListener, AnnotatedFileListener, java.util.EventListener, Plugin
Direct Known Subclasses:
CoreferenceAnnotator, ParagraphAnnotator, ParagraphProcessor

public abstract class DocumentProcessor
extends Annotator

Abstract class which is used to facilitate creating annotator which processes documents.


Field Summary
 
Fields inherited from class org.annotation.wordfreak.annotator.Annotator
annotationFilter, dataDirectory, DEFAULT_ANNOTATOR_NAME, files, guiListener, listeners, loaded, progress, trainingFilter
 
Constructor Summary
DocumentProcessor(java.lang.String name)
           
 
Method Summary
 void annotating()
          Applies the appropiate annotation actions to each loaded annotation file.
protected abstract  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.
 
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
 

Constructor Detail

DocumentProcessor

public DocumentProcessor(java.lang.String name)
Method Detail

processDocument

protected abstract 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.

Parameters:
document - The document to be annotated.
percentage - The percentage of work this document represents.

annotating

public void annotating()
Description copied from class: Annotator
Applies the appropiate annotation actions to each loaded annotation file. progressInt should be updated to indicate annotation progress.

Specified by:
annotating in class Annotator


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