SentimentEnricher Class
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.
Enriches chunks with sentiment analysis using an AI chat model.
public ref class SentimentEnricher sealed : Microsoft::Extensions::DataIngestion::IngestionChunkProcessor<System::String ^>
public sealed class SentimentEnricher : Microsoft.Extensions.DataIngestion.IngestionChunkProcessor<string>
type SentimentEnricher = class
inherit IngestionChunkProcessor<string>
Public NotInheritable Class SentimentEnricher
Inherits IngestionChunkProcessor(Of String)
- Inheritance
Remarks
It adds "sentiment" metadata to each chunk. It can be Positive, Negative, Neutral or Unknown when confidence score is below the threshold.
Constructors
| Name | Description |
|---|---|
| SentimentEnricher(EnricherOptions, Nullable<Double>) |
Initializes a new instance of the SentimentEnricher class. |
Properties
| Name | Description |
|---|---|
| MetadataKey |
Gets the metadata key used to store the sentiment. |
Methods
| Name | Description |
|---|---|
| ProcessAsync(IAsyncEnumerable<IngestionChunk<String>>, CancellationToken) |
Processes chunks asynchronously. |
| ProcessAsync(IAsyncEnumerable<IngestionChunk<T>>, CancellationToken) |
Processes chunks asynchronously. (Inherited from IngestionChunkProcessor<T>) |