| | 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 | | using System.Collections.Generic; |
| | 10 | | using System.Linq; |
| | 11 | | using Azure.AI.TextAnalytics; |
| | 12 | |
|
| | 13 | | namespace Azure.AI.TextAnalytics.Models |
| | 14 | | { |
| | 15 | | /// <summary> The DocumentKeyPhrases. </summary> |
| | 16 | | internal partial class DocumentKeyPhrases |
| | 17 | | { |
| | 18 | | /// <summary> Initializes a new instance of DocumentKeyPhrases. </summary> |
| | 19 | | /// <param name="id"> Unique, non-empty document identifier. </param> |
| | 20 | | /// <param name="keyPhrases"> A list of representative words or phrases. The number of key phrases returned is p |
| | 21 | | /// <param name="warnings"> Warnings encountered while processing document. </param> |
| | 22 | | /// <exception cref="ArgumentNullException"> <paramref name="id"/>, <paramref name="keyPhrases"/>, or <paramref |
| 0 | 23 | | internal DocumentKeyPhrases(string id, IEnumerable<string> keyPhrases, IEnumerable<TextAnalyticsWarning_internal |
| | 24 | | { |
| 0 | 25 | | if (id == null) |
| | 26 | | { |
| 0 | 27 | | throw new ArgumentNullException(nameof(id)); |
| | 28 | | } |
| 0 | 29 | | if (keyPhrases == null) |
| | 30 | | { |
| 0 | 31 | | throw new ArgumentNullException(nameof(keyPhrases)); |
| | 32 | | } |
| 0 | 33 | | if (warnings == null) |
| | 34 | | { |
| 0 | 35 | | throw new ArgumentNullException(nameof(warnings)); |
| | 36 | | } |
| | 37 | |
|
| 0 | 38 | | Id = id; |
| 0 | 39 | | KeyPhrases = keyPhrases.ToList(); |
| 0 | 40 | | Warnings = warnings.ToList(); |
| 0 | 41 | | } |
| | 42 | |
|
| | 43 | | /// <summary> Initializes a new instance of DocumentKeyPhrases. </summary> |
| | 44 | | /// <param name="id"> Unique, non-empty document identifier. </param> |
| | 45 | | /// <param name="keyPhrases"> A list of representative words or phrases. The number of key phrases returned is p |
| | 46 | | /// <param name="warnings"> Warnings encountered while processing document. </param> |
| | 47 | | /// <param name="statistics"> if showStats=true was specified in the request this field will contain information |
| 0 | 48 | | internal DocumentKeyPhrases(string id, IReadOnlyList<string> keyPhrases, IReadOnlyList<TextAnalyticsWarning_inte |
| | 49 | | { |
| 0 | 50 | | Id = id; |
| 0 | 51 | | KeyPhrases = keyPhrases; |
| 0 | 52 | | Warnings = warnings; |
| 0 | 53 | | Statistics = statistics; |
| 0 | 54 | | } |
| | 55 | |
|
| | 56 | | /// <summary> Unique, non-empty document identifier. </summary> |
| 0 | 57 | | public string Id { get; } |
| | 58 | | /// <summary> A list of representative words or phrases. The number of key phrases returned is proportional to t |
| 0 | 59 | | public IReadOnlyList<string> KeyPhrases { get; } |
| | 60 | | /// <summary> Warnings encountered while processing document. </summary> |
| 0 | 61 | | public IReadOnlyList<TextAnalyticsWarning_internal> Warnings { get; } |
| | 62 | | /// <summary> if showStats=true was specified in the request this field will contain information about the docum |
| 0 | 63 | | public TextDocumentStatistics? Statistics { get; } |
| | 64 | | } |
| | 65 | | } |