TextAnalysisModelFactory.CustomSentenceSentiment 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 CustomSentenceSentiment.
public static Azure.AI.Language.Text.CustomSentenceSentiment CustomSentenceSentiment (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);
static member CustomSentenceSentiment : string * Azure.AI.Language.Text.SentenceSentimentValue * Azure.AI.Language.Text.SentimentConfidenceScores * int * int -> Azure.AI.Language.Text.CustomSentenceSentiment
Public Shared Function CustomSentenceSentiment (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) As CustomSentenceSentiment
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.
Returns
A new CustomSentenceSentiment instance for mocking.