| | | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | | 2 | | // Licensed under the MIT License. |
| | | 3 | | |
| | | 4 | | using System.Collections.Generic; |
| | | 5 | | using System.Collections.ObjectModel; |
| | | 6 | | |
| | | 7 | | namespace Azure.AI.TextAnalytics |
| | | 8 | | { |
| | | 9 | | /// <summary> |
| | | 10 | | /// Collection of key phrases present in a document. |
| | | 11 | | /// </summary> |
| | | 12 | | public class KeyPhraseCollection : ReadOnlyCollection<string> |
| | | 13 | | { |
| | | 14 | | internal KeyPhraseCollection(IList<string> keyPhrases, IList<TextAnalyticsWarning> warnings) |
| | 52 | 15 | | : base(keyPhrases) |
| | | 16 | | { |
| | 52 | 17 | | Warnings = new ReadOnlyCollection<TextAnalyticsWarning>(warnings); |
| | 52 | 18 | | } |
| | | 19 | | |
| | | 20 | | /// <summary> |
| | | 21 | | /// Warnings encountered while processing the document. |
| | | 22 | | /// </summary> |
| | 12 | 23 | | public IReadOnlyCollection<TextAnalyticsWarning> Warnings { get; } |
| | | 24 | | } |
| | | 25 | | } |