TextAnalyticsModelFactory.DocumentSentiment Method
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 DocumentSentiment for mocking purposes.
public static Azure.AI.TextAnalytics.DocumentSentiment DocumentSentiment (Azure.AI.TextAnalytics.TextSentiment sentiment, double positiveScore, double neutralScore, double negativeScore, System.Collections.Generic.List<Azure.AI.TextAnalytics.SentenceSentiment> sentenceSentiments, System.Collections.Generic.IList<Azure.AI.TextAnalytics.TextAnalyticsWarning> warnings = default);
static member DocumentSentiment : Azure.AI.TextAnalytics.TextSentiment * double * double * double * System.Collections.Generic.List<Azure.AI.TextAnalytics.SentenceSentiment> * System.Collections.Generic.IList<Azure.AI.TextAnalytics.TextAnalyticsWarning> -> Azure.AI.TextAnalytics.DocumentSentiment
Public Shared Function DocumentSentiment (sentiment As TextSentiment, positiveScore As Double, neutralScore As Double, negativeScore As Double, sentenceSentiments As List(Of SentenceSentiment), Optional warnings As IList(Of TextAnalyticsWarning) = Nothing) As DocumentSentiment
Parameters
- sentiment
- TextSentiment
Sets the Sentiment property.
- sentenceSentiments
- List<SentenceSentiment>
Sets the Sentences property.
- warnings
- IList<TextAnalyticsWarning>
Sets the Warnings property.
Returns
A new instance of DocumentSentiment for mocking purposes.
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Azure SDK for .NET