Class TextDocumentStatistics
java.lang.Object
com.azure.ai.textanalytics.models.TextDocumentStatistics
If
TextAnalyticsRequestOptions.isIncludeStatistics()
is set to true
this class will will contain
information about the document payload.-
Constructor Summary
ConstructorDescriptionTextDocumentStatistics
(int characterCount, int transactionCount) Creates aTextDocumentStatistics
model that describes the statistics of text document. -
Method Summary
Modifier and TypeMethodDescriptionint
Get thecharacterCount
property: Number of text elements recognized in the document.int
Get thetransactionsCount
property: Number of transactions for the document.
-
Constructor Details
-
TextDocumentStatistics
public TextDocumentStatistics(int characterCount, int transactionCount) Creates aTextDocumentStatistics
model that describes the statistics of text document.- Parameters:
characterCount
- The number of text elements recognized in the document.transactionCount
- The number of transactions for the document.
-
-
Method Details
-
getCharacterCount
public int getCharacterCount()Get thecharacterCount
property: Number of text elements recognized in the document.- Returns:
- The
characterCount
value.
-
getTransactionCount
public int getTransactionCount()Get thetransactionsCount
property: Number of transactions for the document.- Returns:
- The
transactionsCount
value.
-