Uses of Interface
opennlp.tools.document.Document
Packages that use Document
-
Uses of Document in opennlp.tools.document
Methods in opennlp.tools.document that return DocumentModifier and TypeMethodDescriptionDocumentAnalyzer.analyze(CharSequence text) Analyzes a text by running every annotator in order.Annotates a document.default DocumentReturns a document combining this document's layers with another document's layers over the same text, joining documents grown independently, for example by pipelines that ran in parallel.default DocumentDocument.merge(Document other, Document.DuplicateLayerPolicy duplicateLayers) Returns a document combining this document's layers with another document's layers over the same text, resolving duplicate layer keys withduplicateLayers.static DocumentDocument.of(CharSequence text) Creates an emptyDocumentover a text.<T> DocumentDocument.with(LayerKey<T> layer, List<Annotation<T>> annotations) Returns a new document with one layer added.Methods in opennlp.tools.document with parameters of type DocumentModifier and TypeMethodDescriptionAnnotates a document.default DocumentReturns a document combining this document's layers with another document's layers over the same text, joining documents grown independently, for example by pipelines that ran in parallel.default DocumentDocument.merge(Document other, Document.DuplicateLayerPolicy duplicateLayers) Returns a document combining this document's layers with another document's layers over the same text, resolving duplicate layer keys withduplicateLayers.static voidDocumentAnnotators.requireAligned(Document document, LayerKey<?> layer, LayerKey<?> aligned) Verifies that two layers of a document hold the same number of annotations, so the annotation at each position of one belongs to the annotation at the same position of the other.static voidDocumentAnnotators.requireLayers(Document document, LayerKey<?>... layers) Verifies that a document is present and carries every given layer.