OBJECT - Type of object being annotatedANNOTATION - Type of annotation.public class IndependentPriorRandomAnnotator<OBJECT,ANNOTATION> extends BatchAnnotator<OBJECT,ANNOTATION>
NumAnnotationsChooser used.| Modifier and Type | Field and Description | 
|---|---|
| protected cern.jet.random.EmpiricalWalker | annotationProbability | 
| protected List<ANNOTATION> | annotations | 
| protected NumAnnotationsChooser | numAnnotations | 
| Constructor and Description | 
|---|
| IndependentPriorRandomAnnotator(NumAnnotationsChooser chooser)Construct with the given  NumAnnotationsChooserto determine how
 many annotations are produced by calls toannotate(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.EmpiricalWalker annotationProbability
public IndependentPriorRandomAnnotator(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()