classify

public final String classify(ClassificationRequest request)

Classifies the document against the candidate labels carried by (zero-shot) and exports the ranked result. Branch weights, supplied text, and the other knobs are read from DocumentClassificationSettings on the document's settings. The result is always JSON; is not consulted because only the JSON exporter serializes the classification result.

Return

The exported content as a string (JSON), including the predicted label and ranked candidate probabilities.

Parameters

request

The classification request carrying at least two candidate labels.