TextAnalysisAuthoringModelFactory.SpanSentimentEvalSummary 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 SpanSentimentEvalSummary.
public static Azure.AI.Language.Text.Authoring.SpanSentimentEvalSummary SpanSentimentEvalSummary(System.Collections.Generic.IReadOnlyDictionary<string,Azure.AI.Language.Text.Authoring.TextAuthoringConfusionMatrixRow> confusionMatrix = default, System.Collections.Generic.IReadOnlyDictionary<string,Azure.AI.Language.Text.Authoring.SentimentEvalSummary> sentiments = default, float microF1 = 0, float microPrecision = 0, float microRecall = 0, float macroF1 = 0, float macroPrecision = 0, float macroRecall = 0);
static member SpanSentimentEvalSummary : System.Collections.Generic.IReadOnlyDictionary<string, Azure.AI.Language.Text.Authoring.TextAuthoringConfusionMatrixRow> * System.Collections.Generic.IReadOnlyDictionary<string, Azure.AI.Language.Text.Authoring.SentimentEvalSummary> * single * single * single * single * single * single -> Azure.AI.Language.Text.Authoring.SpanSentimentEvalSummary
Public Shared Function SpanSentimentEvalSummary (Optional confusionMatrix As IReadOnlyDictionary(Of String, TextAuthoringConfusionMatrixRow) = Nothing, Optional sentiments As IReadOnlyDictionary(Of String, SentimentEvalSummary) = Nothing, Optional microF1 As Single = 0, Optional microPrecision As Single = 0, Optional microRecall As Single = 0, Optional macroF1 As Single = 0, Optional macroPrecision As Single = 0, Optional macroRecall As Single = 0) As SpanSentimentEvalSummary
Parameters
- confusionMatrix
- IReadOnlyDictionary<String,TextAuthoringConfusionMatrixRow>
Represents the confusion matrix between two sentiments (the two sentiments can be the same). The matrix is between the sentiment that was labelled and the sentiment that was predicted.
- sentiments
- IReadOnlyDictionary<String,SentimentEvalSummary>
Represents the sentiment evaluation.
- microF1
- Single
Represents the micro F1. Expected value is a float between 0 and 1 inclusive.
- microPrecision
- Single
Represents the micro precision. Expected value is a float between 0 and 1 inclusive.
- microRecall
- Single
Represents the micro recall. Expected value is a float between 0 and 1 inclusive.
- macroF1
- Single
Represents the macro F1. Expected value is a float between 0 and 1 inclusive.
- macroPrecision
- Single
Represents the macro precision. Expected value is a float between 0 and 1 inclusive.
- macroRecall
- Single
Represents the macro recall. Expected value is a float between 0 and 1 inclusive.
Returns
A new SpanSentimentEvalSummary instance for mocking.