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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET