Share via


TextDocumentStatistics Class

  • java.lang.Object
    • com.azure.ai.textanalytics.models.TextDocumentStatistics

public final class TextDocumentStatistics

If isIncludeStatistics() is set to true this class will will contain information about the document payload.

Constructor Summary

Constructor Description
TextDocumentStatistics(int characterCount, int transactionCount)

Creates a TextDocumentStatistics model that describes the statistics of text document.

Method Summary

Modifier and Type Method and Description
int getCharacterCount()

Get the characterCount property: Number of text elements recognized in the document.

int getTransactionCount()

Get the transactionsCount property: Number of transactions for the document.

Methods inherited from java.lang.Object

Constructor Details

TextDocumentStatistics

public TextDocumentStatistics(int characterCount, int transactionCount)

Creates a TextDocumentStatistics 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 the characterCount property: Number of text elements recognized in the document.

Returns:

The characterCount value.

getTransactionCount

public int getTransactionCount()

Get the transactionsCount property: Number of transactions for the document.

Returns:

The transactionsCount value.

Applies to