OBJECT - Type of object being annotatedANNOTATION - Type of annotation.public class UniformRandomAnnotator<OBJECT,ANNOTATION> extends BatchAnnotator<OBJECT,ANNOTATION>
NumAnnotationsChooser used.| Modifier and Type | Field and Description |
|---|---|
protected List<ANNOTATION> |
annotations |
protected NumAnnotationsChooser |
numAnnotations |
protected cern.jet.random.Uniform |
rnd |
| Constructor and Description |
|---|
UniformRandomAnnotator(NumAnnotationsChooser chooser)
Construct with the given
NumAnnotationsChooser to determine how
many annotations are produced by calls to annotate(Object). |
| Modifier and Type | Method and Description |
|---|---|
List<ScoredAnnotation<ANNOTATION>> |
annotate(OBJECT image)
Generate annotations for the given object.
|
Set<ANNOTATION> |
getAnnotations() |
void |
train(List<? extends Annotated<OBJECT,ANNOTATION>> data)
Train the object with the given data.
|
trainclassifyprotected List<ANNOTATION> annotations
protected NumAnnotationsChooser numAnnotations
protected cern.jet.random.Uniform rnd
public UniformRandomAnnotator(NumAnnotationsChooser chooser)
NumAnnotationsChooser to determine how
many annotations are produced by calls to annotate(Object).chooser - the NumAnnotationsChooser to use.public void train(List<? extends Annotated<OBJECT,ANNOTATION>> data)
BatchTrainerBatchTrainers should reset the underlying
model everytime this method is called.data - the training datapublic List<ScoredAnnotation<ANNOTATION>> annotate(OBJECT image)
Annotatorimage - the imagepublic Set<ANNOTATION> getAnnotations()