|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.annotation.wordfreak.annotator.Annotator
org.annotation.wordfreak.annotator.DocumentProcessor
Abstract class which is used to facilitate creating annotator which processes documents.
| Field Summary |
| Fields inherited from class org.annotation.wordfreak.annotator.Annotator |
annotationFilter, dataDirectory, DEFAULT_ANNOTATOR_NAME, files, guiListener, listeners, loaded, progress, trainingFilter |
| Constructor Summary | |
DocumentProcessor(java.lang.String name)
|
|
| Method Summary | |
void |
annotating()
Applies the appropiate annotation actions to each loaded annotation file. |
protected abstract 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. |
| 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 |
public DocumentProcessor(java.lang.String name)
| Method Detail |
protected abstract void processDocument(Annotation document,
double percentage)
document - The document to be annotated.percentage - The percentage of work this document represents.public void annotating()
AnnotatorprogressInt
should be updated to indicate annotation progress.
annotating in class Annotator
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||