Share via


ClassificationCategory Class

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

public final class ClassificationCategory

The document classification result which contains the classified category and the confidence score on it.

Constructor Summary

Constructor Description
ClassificationCategory()

Constructs a ClassificationCategory model.

Method Summary

Modifier and Type Method and Description
String getCategory()

Gets the classified category of document.

double getConfidenceScore()

Gets the score property: Confidence score between 0 and 1 of the classified category.

Methods inherited from java.lang.Object

Constructor Details

ClassificationCategory

public ClassificationCategory()

Constructs a ClassificationCategory model.

Method Details

getCategory

public String getCategory()

Gets the classified category of document.

Returns:

The classified category of document.

getConfidenceScore

public double getConfidenceScore()

Gets the score property: Confidence score between 0 and 1 of the classified category.

Returns:

The confidenceScore value.

Applies to