다음을 통해 공유


TextAnalyticsModelFactory.AnalyzeSentimentResult Method

Definition

Overloads

AnalyzeSentimentResult(String, TextAnalyticsError)

Initializes a new instance of AnalyzeSentimentResult for mocking purposes.

AnalyzeSentimentResult(String, TextDocumentStatistics, DocumentSentiment)

Initializes a new instance of AnalyzeSentimentResult for mocking purposes.

AnalyzeSentimentResult(String, TextAnalyticsError)

Source:
TextAnalyticsModelFactory.cs

Initializes a new instance of AnalyzeSentimentResult for mocking purposes.

public static Azure.AI.TextAnalytics.AnalyzeSentimentResult AnalyzeSentimentResult (string id, Azure.AI.TextAnalytics.TextAnalyticsError error);
static member AnalyzeSentimentResult : string * Azure.AI.TextAnalytics.TextAnalyticsError -> Azure.AI.TextAnalytics.AnalyzeSentimentResult
Public Shared Function AnalyzeSentimentResult (id As String, error As TextAnalyticsError) As AnalyzeSentimentResult

Parameters

id
String

Sets the Id property.

error
TextAnalyticsError

Sets the Error property.

Returns

A new instance of AnalyzeSentimentResult for mocking purposes.

Applies to

AnalyzeSentimentResult(String, TextDocumentStatistics, DocumentSentiment)

Source:
TextAnalyticsModelFactory.cs

Initializes a new instance of AnalyzeSentimentResult for mocking purposes.

public static Azure.AI.TextAnalytics.AnalyzeSentimentResult AnalyzeSentimentResult (string id, Azure.AI.TextAnalytics.TextDocumentStatistics statistics, Azure.AI.TextAnalytics.DocumentSentiment documentSentiment);
static member AnalyzeSentimentResult : string * Azure.AI.TextAnalytics.TextDocumentStatistics * Azure.AI.TextAnalytics.DocumentSentiment -> Azure.AI.TextAnalytics.AnalyzeSentimentResult
Public Shared Function AnalyzeSentimentResult (id As String, statistics As TextDocumentStatistics, documentSentiment As DocumentSentiment) As AnalyzeSentimentResult

Parameters

id
String

Sets the Id property.

statistics
TextDocumentStatistics

Sets the Statistics property.

documentSentiment
DocumentSentiment

Sets the DocumentSentiment property.

Returns

A new instance of AnalyzeSentimentResult for mocking purposes.

Applies to