KeywordEnricher Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the KeywordEnricher class.
public KeywordEnricher(Microsoft.Extensions.DataIngestion.EnricherOptions options, ReadOnlySpan<string> predefinedKeywords, int? maxKeywords = default, double? confidenceThreshold = default);
new Microsoft.Extensions.DataIngestion.KeywordEnricher : Microsoft.Extensions.DataIngestion.EnricherOptions * ReadOnlySpan<string> * Nullable<int> * Nullable<double> -> Microsoft.Extensions.DataIngestion.KeywordEnricher
Public Sub New (options As EnricherOptions, predefinedKeywords As ReadOnlySpan(Of String), Optional maxKeywords As Nullable(Of Integer) = Nothing, Optional confidenceThreshold As Nullable(Of Double) = Nothing)
Parameters
- options
- EnricherOptions
The options for generating keywords.
- predefinedKeywords
- ReadOnlySpan<String>
The set of predefined keywords for extraction.
The maximum number of keywords to extract. When not provided, it defaults to 5.
The confidence threshold for keyword inclusion. When not provided, it defaults to 0.7.
Remarks
If no predefined keywords are provided, the model will extract keywords based on the content alone. Such results may vary more significantly between different AI models.