Class DocumentAnalyzer

java.lang.Object
opennlp.tools.document.DocumentAnalyzer

public final class DocumentAnalyzer extends Object
Runs a fixed sequence of annotators over a text, producing one Document that carries every step's layers.

The pipeline is validated at build time: every annotator's required layers must be provided by an earlier annotator, and no two annotators may provide the same layer, so a misordered or conflicting pipeline fails when it is assembled rather than midway through a document. The analyzer holds no per-call state; it is as thread-safe as the annotators it is built from.

Since:
3.0.0