| | 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 <see cref="RecognizeEntitiesResult"/> objects corresponding |
| | 11 | | /// to a batch of documents, and information about the batch operation. |
| | 12 | | /// </summary> |
| | 13 | | public class RecognizeEntitiesResultCollection : ReadOnlyCollection<RecognizeEntitiesResult> |
| | 14 | | { |
| 48 | 15 | | internal RecognizeEntitiesResultCollection(IList<RecognizeEntitiesResult> list, TextDocumentBatchStatistics stat |
| | 16 | | { |
| 48 | 17 | | Statistics = statistics; |
| 48 | 18 | | ModelVersion = modelVersion; |
| 48 | 19 | | } |
| | 20 | |
|
| | 21 | | /// <summary> |
| | 22 | | /// Gets statistics about the documents and how it was processed |
| | 23 | | /// by the service. This property will have a value when IncludeStatistics |
| | 24 | | /// is set to true in the client call. |
| | 25 | | /// </summary> |
| 32 | 26 | | public TextDocumentBatchStatistics Statistics { get; } |
| | 27 | |
|
| | 28 | | /// <summary> |
| | 29 | | /// Gets the version of the Text Analytics model used by this operation |
| | 30 | | /// on this batch of documents. |
| | 31 | | /// </summary> |
| 8 | 32 | | public string ModelVersion { get; } |
| | 33 | | } |
| | 34 | | } |