Interface ClassificationCategoryOrBuilder (2.7.0)

public interface ClassificationCategoryOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getConfidence()

public abstract float getConfidence()

The classifier's confidence of the category. Number represents how certain the classifier is that this category represents the given text.

float confidence = 2;

Returns
TypeDescription
float

The confidence.

getName()

public abstract String getName()

The name of the category representing the document, from the predefined taxonomy.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

The name of the category representing the document, from the predefined taxonomy.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.