public class FixedChooser extends Object implements NumAnnotationsChooser
Modifier and Type | Field and Description |
---|---|
protected int |
numAnnotations |
Constructor and Description |
---|
FixedChooser(int numAnnotations)
Construct with the given number of annotations.
|
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.
|
protected int numAnnotations
public FixedChooser(int numAnnotations)
numAnnotations
- the number of annotations.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