Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

SentimentEnricher Class

Definition

Namespace:
Microsoft.Extensions.DataIngestion
Assembly:
Microsoft.Extensions.DataIngestion.dll
Package:
Microsoft.Extensions.DataIngestion v10.7.0-preview.1.26309.5
Source:
SentimentEnricher.cs

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>)

Applies to


Feedback

Was this page helpful?