classifyToFile

public final void classifyToFile(ClassificationRequest request, String outputPath)

Classifies the document against the candidate labels carried by (zero-shot) and writes the exported result to a file. The result is always JSON; is not consulted because only the JSON exporter serializes the classification result.

Parameters

request

The classification request carrying at least two candidate labels.

outputPath

Path to the output file.