org.annotation.wordfreak.annotator
Class SentenceProcessor
java.lang.Object
org.annotation.wordfreak.annotator.Annotator
org.annotation.wordfreak.annotator.DocumentProcessor
org.annotation.wordfreak.annotator.ParagraphProcessor
org.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. |
|
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.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 |
sentenceTypes
protected java.util.Set sentenceTypes
- The types of annotation whcih are to be considered sentences.
SentenceProcessor
public SentenceProcessor(java.lang.String name)
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.