org.annotation.wordfreak.annotator
Class SentenceProcessor

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

public abstract class SentenceProcessor
extends ParagraphProcessor

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


Field Summary
protected  java.util.Set sentenceTypes
          The types of annotation whcih are to be considered sentences.
 
Fields inherited from class org.annotation.wordfreak.annotator.Annotator
annotationFilter, dataDirectory, DEFAULT_ANNOTATOR_NAME, files, guiListener, listeners, loaded, progress, trainingFilter
 
Constructor Summary
SentenceProcessor(java.lang.String name)
           
 
Method Summary
protected  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.
protected abstract  void processSentence(Annotation sentence, double percentage)
          Processes the specified sentence which consisits of the specified percentage of total work to be performed by this annotator.
 
Methods inherited from class org.annotation.wordfreak.annotator.ParagraphProcessor
processDocument
 
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
 

Field Detail

sentenceTypes

protected java.util.Set sentenceTypes
The types of annotation whcih are to be considered sentences.

Constructor Detail

SentenceProcessor

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

processSentence

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

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

processParagraph

protected void processParagraph(Annotation paragraph,
                                double percentage)
Description copied from class: ParagraphProcessor
Processes the specified paragraph which consisits of the specified percentage of total work to be performed by this annotator.

Specified by:
processParagraph in class ParagraphProcessor
Parameters:
paragraph - The paragraph to be processed.
percentage - The percentage of total work that this paragraph represents.


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