public class PriorChooser extends Object implements NumAnnotationsChooser
NumAnnotationsChooser
constructs the distribution of annotation lengths from the training
data and then picks lengths randomly based on the distribution.Constructor and Description |
---|
PriorChooser() |
Modifier and Type | Method and Description |
---|---|
int |
numAnnotations() |
<O,A> void |
train(List<? extends Annotated<O,A>> data)
Train the chooser with the given data.
|
public PriorChooser()
public <O,A> void train(List<? extends Annotated<O,A>> data)
NumAnnotationsChooser
train
in interface NumAnnotationsChooser
O
- Type of object being annotatedA
- Type of annotationdata
- the training datapublic int numAnnotations()
numAnnotations
in interface NumAnnotationsChooser