Skip to content

Search

SingleTag

TypeTagging Source

The answer for a SingleCategory.

Fields

typerequired"single"
valuerequiredstring | undefined

The chosen value, or undefined when none reached minConfidence or none fits.

confidencerequirednumber

Probability of the likeliest listed value.

probabilitiesrequiredReadonly<Record<string, number>>

Each listed value's probability. They sum to 1.

unlistedoptionalnumber

Probability that none of the values fits. Only with allowUnlisted.

Used by

image-tagger is a Ben Hodgson projectGitHub