Skip to content

Commit

Permalink
disable confidence scores check (Azure#28247)
Browse files Browse the repository at this point in the history
  • Loading branch information
maririos authored Apr 19, 2022
1 parent daa688f commit 39c1a4e
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -476,15 +476,17 @@ private void CheckAnalyzeSentimentProperties(DocumentSentiment doc, bool opinion
Assert.IsNotNull(doc.ConfidenceScores.Positive);
Assert.IsNotNull(doc.ConfidenceScores.Neutral);
Assert.IsNotNull(doc.ConfidenceScores.Negative);
Assert.IsTrue(CheckTotalConfidenceScoreValue(doc.ConfidenceScores));
// TODO enable again. Issue tracking work: https://github.com/Azure/azure-sdk-for-net/issues/28246
// Assert.IsTrue(CheckTotalConfidenceScoreValue(doc.ConfidenceScores));

foreach (var sentence in doc.Sentences)
{
Assert.IsNotNull(sentence.Text);
Assert.IsNotNull(sentence.ConfidenceScores.Positive);
Assert.IsNotNull(sentence.ConfidenceScores.Neutral);
Assert.IsNotNull(sentence.ConfidenceScores.Negative);
Assert.IsTrue(CheckTotalConfidenceScoreValue(sentence.ConfidenceScores));
// TODO enable again. Issue tracking work: https://github.com/Azure/azure-sdk-for-net/issues/28246
// Assert.IsTrue(CheckTotalConfidenceScoreValue(sentence.ConfidenceScores));

Assert.IsNotNull(sentence.Opinions);
if (opinionMining)
Expand Down

0 comments on commit 39c1a4e

Please sign in to comment.