API reference · Kjarni 0.2.7

Interface: ClassifyResult

kjarni-wasm • Docs


kjarni-wasm / ClassifyResult

The top prediction for one text.

Properties

index

index: number

The label's position in the model's label list.

Defined in

protocol.ts:21


label

label: string

The predicted label, for example "POSITIVE".

Defined in

protocol.ts:17


score

score: number

Its probability, from 0 to 1.

Defined in

protocol.ts:19

Kjarni runs the same engine on every platform: