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
ConstructorsConstructorDescriptionTextDocumentStatistics(int characterCount, int transactionCount) Creates aTextDocumentStatisticsmodel that describes the statistics of text document. -
Method Summary
Modifier and TypeMethodDescriptionintGet thecharacterCountproperty: Number of text elements recognized in the document.intGet thetransactionsCountproperty: Number of transactions for the document.
-
Constructor Details
-
TextDocumentStatistics
public TextDocumentStatistics(int characterCount, int transactionCount) Creates aTextDocumentStatisticsmodel 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 thecharacterCountproperty: Number of text elements recognized in the document.- Returns:
- The
characterCountvalue.
-
getTransactionCount
public int getTransactionCount()Get thetransactionsCountproperty: Number of transactions for the document.- Returns:
- The
transactionsCountvalue.
-