TextAnalyticsModelFactory.SentenceSentiment 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 SentenceSentiment for mocking purposes.
public static Azure.AI.TextAnalytics.SentenceSentiment SentenceSentiment (Azure.AI.TextAnalytics.TextSentiment sentiment, string text, double positiveScore, double neutralScore, double negativeScore, int offset, int length, System.Collections.Generic.IEnumerable<Azure.AI.TextAnalytics.SentenceOpinion> opinions);
static member SentenceSentiment : Azure.AI.TextAnalytics.TextSentiment * string * double * double * double * int * int * seq<Azure.AI.TextAnalytics.SentenceOpinion> -> Azure.AI.TextAnalytics.SentenceSentiment
Public Shared Function SentenceSentiment (sentiment As TextSentiment, text As String, positiveScore As Double, neutralScore As Double, negativeScore As Double, offset As Integer, length As Integer, opinions As IEnumerable(Of SentenceOpinion)) As SentenceSentiment
Parameters
- sentiment
- TextSentiment
Sets the Sentiment property.
- opinions
- IEnumerable<SentenceOpinion>
Sets the Opinions property.
Returns
A new instance of SentenceSentiment for mocking purposes.
Applies to
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.
Azure SDK for .NET