Type alias CreateClassificationAnalyzerOptions

CreateClassificationAnalyzerOptions: CreateAnalyzerOptionsType<"classification", {
    model_location: string;
    threshold?: number;
    top_k?: number;
}>

(Enterprise Edition only.) Options for creating a Classification Analyzer

Type declaration

  • model_location: string

    On-disk path to the trained fastText supervised model.

  • Optional threshold?: number

    Probability threshold for which a label will be assigned to an input.

    Default: 0.99

  • Optional top_k?: number

    Number of class labels that will be produced per input.

    Default: 1