org.annotation.wordfreak.annotator
Class ParagraphAnnotator

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

public class ParagraphAnnotator
extends DocumentProcessor


Field Summary
 
Fields inherited from class org.annotation.wordfreak.annotator.Annotator
annotationFilter, dataDirectory, DEFAULT_ANNOTATOR_NAME, files, guiListener, listeners, loaded, progress, trainingFilter
 
Constructor Summary
ParagraphAnnotator(java.lang.String type)
           
 
Method Summary
 void annotatedFile(AnnotationFile f)
          Selects annotations from f required for annotator.
static java.lang.String[] getNames()
           
 boolean loadAnnotator()
          Loads the annotator.
 void processDocument(Annotation doc, 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.DocumentProcessor
annotating
 
Methods inherited from class org.annotation.wordfreak.annotator.Annotator
actionPerformed, addAnnotatorListener, annotate, closeAnnotatedFile, done, getDataDirectory, hideWaitDialog, 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

ParagraphAnnotator

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

getNames

public static java.lang.String[] getNames()

loadAnnotator

public boolean loadAnnotator()
Description copied from class: Annotator
Loads the annotator.

Specified by:
loadAnnotator in class Annotator

annotatedFile

public void annotatedFile(AnnotationFile f)
Description copied from class: Annotator
Selects annotations from f required for annotator. This may include annotations needed for the generation of sorted outcomes. @see #sortedOutComes() sortedOutcomes

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

processDocument

public void processDocument(Annotation doc,
                            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:
doc - The document to be annotated.
percentage - The percentage of work this document represents.


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