TextAnalysisModelFactory.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.
public static Azure.AI.Language.Text.SentenceSentiment SentenceSentiment (string text = default, Azure.AI.Language.Text.SentenceSentimentValue sentiment = Azure.AI.Language.Text.SentenceSentimentValue.Positive, Azure.AI.Language.Text.SentimentConfidenceScores confidenceScores = default, int offset = 0, int length = 0, System.Collections.Generic.IEnumerable<Azure.AI.Language.Text.SentenceTarget> targets = default, System.Collections.Generic.IEnumerable<Azure.AI.Language.Text.SentenceAssessment> assessments = default);
static member SentenceSentiment : string * Azure.AI.Language.Text.SentenceSentimentValue * Azure.AI.Language.Text.SentimentConfidenceScores * int * int * seq<Azure.AI.Language.Text.SentenceTarget> * seq<Azure.AI.Language.Text.SentenceAssessment> -> Azure.AI.Language.Text.SentenceSentiment
Public Shared Function SentenceSentiment (Optional text As String = Nothing, Optional sentiment As SentenceSentimentValue = Azure.AI.Language.Text.SentenceSentimentValue.Positive, Optional confidenceScores As SentimentConfidenceScores = Nothing, Optional offset As Integer = 0, Optional length As Integer = 0, Optional targets As IEnumerable(Of SentenceTarget) = Nothing, Optional assessments As IEnumerable(Of SentenceAssessment) = Nothing) As SentenceSentiment
Parameters
- text
- String
The sentence text.
- sentiment
- SentenceSentimentValue
The predicted Sentiment for the sentence.
- confidenceScores
- SentimentConfidenceScores
The sentiment confidence score between 0 and 1 for the sentence for all classes.
- offset
- Int32
The target offset from the start of the sentence.
- length
- Int32
The length of the target.
- targets
- IEnumerable<SentenceTarget>
The array of sentence targets for the sentence.
- assessments
- IEnumerable<SentenceAssessment>
The array of assessments for the sentence.
Returns
A new SentenceSentiment instance for mocking.