| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | using Azure.Core; |
| | 5 | |
|
| | 6 | | namespace Azure.AI.TextAnalytics |
| | 7 | | { |
| | 8 | | /// <summary> |
| | 9 | | /// A collection of statistics describing an individual input document. |
| | 10 | | /// This information is provided on the result collection returned by an |
| | 11 | | /// operation when the caller passes in a <see cref="TextAnalyticsRequestOptions"/> |
| | 12 | | /// with IncludeStatistics set to true. |
| | 13 | | /// </summary> |
| | 14 | | [CodeGenModel("DocumentStatistics")] |
| | 15 | | public readonly partial struct TextDocumentStatistics |
| | 16 | | { |
| | 17 | | internal TextDocumentStatistics(int characterCount, int transactionCount) |
| | 18 | | { |
| 88 | 19 | | CharacterCount = characterCount; |
| 88 | 20 | | TransactionCount = transactionCount; |
| 88 | 21 | | } |
| | 22 | |
|
| | 23 | | /// <summary> |
| | 24 | | /// Gets the number of characters (in Unicode graphemes) the corresponding document contains. |
| | 25 | | /// </summary> |
| | 26 | | [CodeGenMember("CharactersCount")] |
| 12 | 27 | | public int CharacterCount { get; } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Gets the number of transactions used by the service to analyze the |
| | 31 | | /// input document. |
| | 32 | | /// </summary> |
| | 33 | | [CodeGenMember("TransactionsCount")] |
| 12 | 34 | | public int TransactionCount { get; } |
| | 35 | | } |
| | 36 | | } |