org.annotation.wordfreak.annotator
Class ParagraphProcessor

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

public abstract class ParagraphProcessor
extends DocumentProcessor

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


Field Summary
 
Fields inherited from class org.annotation.wordfreak.annotator.Annotator
annotationFilter, dataDirectory, DEFAULT_ANNOTATOR_NAME, files, guiListener, listeners, loaded, progress, trainingFilter
 
Constructor Summary
ParagraphProcessor(java.lang.String type)
           
 
Method Summary
protected  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 abstract  void processParagraph(Annotation paragraph, double percentage)
          Processes the specified paragraph which consisits of the specified percentage of total work to be performed by this annotator.
 
Methods inherited from class org.annotation.wordfreak.annotator.DocumentProcessor
annotating
 
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

ParagraphProcessor

public ParagraphProcessor(java.lang.String type)
Method Detail

processParagraph

protected abstract void processParagraph(Annotation paragraph,
                                         double percentage)
Processes the specified paragraph which consisits of the specified percentage of total work to be performed by this annotator.

Parameters:
paragraph - The paragraph to be processed.
percentage - The percentage of total work that this paragraph represents.

processDocument

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