selected
fun selected(categoryId: String, provenance: ModelProvenance, confidence: Double? = null): ClassificationResult.Selected
Returns a selection of one of this spec's categories.
Return
the selection
Parameters
category Id
the selected category's id
provenance
the model that made the selection
confidence
the provider's confidence, if it reported one
Throws
if the id is not one of the categories