Package opennlp.tools.document
package opennlp.tools.document
-
ClassDescriptionAnnotation<T>One annotation of a
Document: a typed value anchored to aSpanof the document's original text, or a span-less value under adocument-scopedkey.An offset-anchored annotation container: the original text of one document plus any number of typed annotation layers over it.HowDocument.merge(Document, DuplicateLayerPolicy)treats a layer key that is present on both documents.Runs a fixed sequence ofannotatorsover a text, producing oneDocumentthat carries every step's layers.Assembles aDocumentAnalyzerfrom annotators in execution order.A pipeline step that reads layers from aDocumentand returns a new document with its own layers added.Support methods shared byDocumentAnnotatorimplementations: the required-layer check and the per-sentence walk over the token layer.Receives one sentence's contiguous token run duringDocumentAnnotators.forEachSentence(List, List, SentenceTokenConsumer).LayerKey<T>Identifies one annotation layer of aDocumentand carries the type of that layer's annotation values, so reading a layer back is statically typed.How the annotations of a layer relate to the document text.The standardlayer keysfor the results the toolkit produces itself.