Type alias CreateNearestNeighborsAnalyzerOptions

CreateNearestNeighborsAnalyzerOptions: { features?: AnalyzerFeature[]; properties: { model_location: string; top_k?: number }; type: "nearest_neighbors" }

Options for creating a NearestNeighbors Analyzer

Type declaration

  • Optional features?: AnalyzerFeature[]

    Features to enable for this Analyzer.

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

    Additional properties for the Analyzer.

    • model_location: string

      On-disk path to the trained fastText supervised model.

    • Optional top_k?: number

      Number of class labels that will be produced per input.

      Default: 1

  • type: "nearest_neighbors"

    Type of the Analyzer.

Generated using TypeDoc