OBJECT - Type of object being annotatedANNOTATION - Type of annotationpublic abstract class BatchAnnotator<OBJECT,ANNOTATION> extends AbstractAnnotator<OBJECT,ANNOTATION> implements BatchTrainer<Annotated<OBJECT,ANNOTATION>>
Annotator that is trained in "batch" mode; all training examples
are presented at once. Calling the BatchTrainer.train(List) method more than once
will cause the internal model to be re-initialised using the new data. If you
want to implement an Annotator that can be updated, implement the
IncrementalAnnotator interface instead.| Constructor and Description |
|---|
BatchAnnotator() |
| Modifier and Type | Method and Description |
|---|---|
void |
train(GroupedDataset<ANNOTATION,? extends ListDataset<OBJECT>,OBJECT> dataset)
Train the annotator with the given grouped dataset.
|
classifyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittrainannotate, getAnnotationspublic BatchAnnotator()
public void train(GroupedDataset<ANNOTATION,? extends ListDataset<OBJECT>,OBJECT> dataset)
dataset - the dataset to train on