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 new 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 new 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 new 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 new document combining this document's layers with another document's layers over the same text, resolving duplicate layer keys withduplicateLayers.static voidDocumentAnnotators.requireLayers(Document document, LayerKey<?>... layers) Verifies that a document is present and carries every given layer.