ClassificationRequest

public final class ClassificationRequest

Describes a zero-shot classification request for : the candidate labels the document is scored against. Each label optionally carries a longer description that gives the matcher more context; the description never appears in the result. At least two labels are required — classification is zero-shot, so the labels define the entire output space, and a single label would trivially win with probability 1. Branch weights, supplied text, and the other classification knobs are controlled separately via DocumentClassificationSettings on the document's settings.

Constructors

Link copied to clipboard
public void ClassificationRequest()

Functions

Link copied to clipboard
public final void addCandidateLabel(String label)
Adds a candidate label with no description.
public final void addCandidateLabel(String label, String description)
Adds a candidate label with a description.