| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | namespace Azure.AI.TextAnalytics |
| | 5 | | { |
| | 6 | | /// <summary> |
| | 7 | | /// The sentiment confidence scores, by sentiment. |
| | 8 | | /// </summary> |
| | 9 | | public class SentimentConfidenceScores |
| | 10 | | { |
| 128 | 11 | | internal SentimentConfidenceScores(double positive, double neutral, double negative) |
| | 12 | | { |
| 128 | 13 | | Positive = positive; |
| 128 | 14 | | Neutral = neutral; |
| 128 | 15 | | Negative = negative; |
| 128 | 16 | | } |
| | 17 | |
|
| | 18 | | /// <summary> |
| | 19 | | /// Gets a score between 0 and 1, indicating the confidence that the |
| | 20 | | /// sentiment of the analyzed text is positive. |
| | 21 | | /// </summary> |
| 224 | 22 | | public double Positive { get; } |
| | 23 | |
|
| | 24 | | /// <summary> |
| | 25 | | /// Gets a score between 0 and 1, indicating the confidence that the |
| | 26 | | /// sentiment of the analyzed text is neutral. |
| | 27 | | /// </summary> |
| 224 | 28 | | public double Neutral { get; } |
| | 29 | |
|
| | 30 | | /// <summary> |
| | 31 | | /// Gets a score between 0 and 1, indicating the confidence that the |
| | 32 | | /// sentiment of the analyzed text is negative. |
| | 33 | | /// </summary> |
| 224 | 34 | | public double Negative { get; } |
| | 35 | | } |
| | 36 | | } |