| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | using System; |
| | 9 | |
|
| | 10 | | namespace Azure.AI.TextAnalytics.Models |
| | 11 | | { |
| | 12 | | /// <summary> The SentenceOpinion. </summary> |
| | 13 | | internal partial class SentenceOpinion |
| | 14 | | { |
| | 15 | | /// <summary> Initializes a new instance of SentenceOpinion. </summary> |
| | 16 | | /// <param name="sentiment"> Opinion level sentiment for the aspect in the sentence. </param> |
| | 17 | | /// <param name="confidenceScores"> Opinion level sentiment confidence scores for the aspect in the sentence. </ |
| | 18 | | /// <param name="offset"> The opinion offset from the start of the sentence. </param> |
| | 19 | | /// <param name="length"> The length of the opinion. </param> |
| | 20 | | /// <param name="text"> The aspect text detected. </param> |
| | 21 | | /// <param name="isNegated"> The indicator representing if the opinion is negated. </param> |
| | 22 | | /// <exception cref="ArgumentNullException"> <paramref name="confidenceScores"/> or <paramref name="text"/> is n |
| 0 | 23 | | internal SentenceOpinion(SentenceOpinionSentiment sentiment, AspectConfidenceScoreLabel confidenceScores, int of |
| | 24 | | { |
| 0 | 25 | | if (confidenceScores == null) |
| | 26 | | { |
| 0 | 27 | | throw new ArgumentNullException(nameof(confidenceScores)); |
| | 28 | | } |
| 0 | 29 | | if (text == null) |
| | 30 | | { |
| 0 | 31 | | throw new ArgumentNullException(nameof(text)); |
| | 32 | | } |
| | 33 | |
|
| 0 | 34 | | Sentiment = sentiment; |
| 0 | 35 | | ConfidenceScores = confidenceScores; |
| 0 | 36 | | Offset = offset; |
| 0 | 37 | | Length = length; |
| 0 | 38 | | Text = text; |
| 0 | 39 | | IsNegated = isNegated; |
| 0 | 40 | | } |
| | 41 | |
|
| | 42 | | /// <summary> Opinion level sentiment for the aspect in the sentence. </summary> |
| 0 | 43 | | public SentenceOpinionSentiment Sentiment { get; } |
| | 44 | | /// <summary> Opinion level sentiment confidence scores for the aspect in the sentence. </summary> |
| 0 | 45 | | public AspectConfidenceScoreLabel ConfidenceScores { get; } |
| | 46 | | /// <summary> The opinion offset from the start of the sentence. </summary> |
| 0 | 47 | | public int Offset { get; } |
| | 48 | | /// <summary> The length of the opinion. </summary> |
| 0 | 49 | | public int Length { get; } |
| | 50 | | /// <summary> The aspect text detected. </summary> |
| 0 | 51 | | public string Text { get; } |
| | 52 | | /// <summary> The indicator representing if the opinion is negated. </summary> |
| 0 | 53 | | public bool IsNegated { get; } |
| | 54 | | } |
| | 55 | | } |