org.annotation.wordfreak.annotator
Class SentenceAnnotator

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.SentenceAnnotator
All Implemented Interfaces:
java.awt.event.ActionListener, AnnotatedFileListener, java.util.EventListener, Plugin

public abstract class SentenceAnnotator
extends ParagraphProcessor


Field Summary
 
Fields inherited from class org.annotation.wordfreak.annotator.Annotator
annotationFilter, dataDirectory, DEFAULT_ANNOTATOR_NAME, files, guiListener, listeners, loaded, progress, trainingFilter
 
Constructor Summary
SentenceAnnotator(java.lang.String type)
           
 
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  Span[] sentDetect(java.lang.String s)
           
protected abstract  double[] sentProbs()
           
 
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
 

Constructor Detail

SentenceAnnotator

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

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.

sentDetect

protected abstract Span[] sentDetect(java.lang.String s)

sentProbs

protected abstract double[] sentProbs()


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