Class ViterbiModel
- All Implemented Interfaces:
com.oracle.labs.mlrg.olcut.provenance.Provenancable<ModelProvenance>,Serializable
An implementation of a viterbi model.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumTypes of label score aggregation. -
Field Summary
Fields inherited from class org.tribuo.sequence.SequenceModel
featureIDMap, name, outputIDMap, provenanceOutput -
Method Summary
Modifier and TypeMethodDescriptionGets the score aggregation function.intGets the stack size of this model.getTopFeatures(int n) getTopLabels(Map<String, Label> distribution) getTopLabels(Map<String, Label> distribution, int stackSize) List<List<Prediction<Label>>>predict(SequenceDataset<Label> examples) predict(SequenceExample<Label> examples) Methods inherited from class org.tribuo.sequence.SequenceModel
getFeatureIDMap, getName, getOutputIDInfo, getProvenance, predict, setName, toMaxLabels, toString, validate
-
Method Details
-
predict
- Overrides:
predictin classSequenceModel<Label>
-
predict
- Specified by:
predictin classSequenceModel<Label>
-
getTopLabels
-
getTopLabels
-
getStackSize
Gets the stack size of this model.- Returns:
- The stack size.
-
getScoreAggregation
Gets the score aggregation function.- Returns:
- The score aggregation function.
-
getTopFeatures
- Specified by:
getTopFeaturesin classSequenceModel<Label>
-