Type alias CreateClassificationAnalyzerOptions

CreateClassificationAnalyzerOptions: { features?: AnalyzerFeature[]; properties: { model_location: string; threshold?: number; top_k?: number }; type: "classification" }

Options for creating a Classification Analyzer

Type declaration

  • Optional features?: AnalyzerFeature[]

    Features to enable for this Analyzer.

  • properties: { model_location: string; threshold?: number; top_k?: number }

    Additional properties for the Analyzer.

    • 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

  • type: "classification"

    Type of the Analyzer.

Generated using TypeDoc