Uses of Interface
opennlp.tools.document.Document
Packages that use Document
Package
Description
-
Uses of Document in opennlp.tools.chunker
Methods in opennlp.tools.chunker that return DocumentModifier and TypeMethodDescriptionChunks the document sentence by sentence and adds theChunkerAnnotator.CHUNKSlayer.Methods in opennlp.tools.chunker with parameters of type DocumentModifier and TypeMethodDescriptionChunks the document sentence by sentence and adds theChunkerAnnotator.CHUNKSlayer. -
Uses of Document in opennlp.tools.document
Classes in opennlp.tools.document that implement DocumentModifier and TypeClassDescription(package private) final classThe defaultDocumentimplementation: an unmodifiable map from layer key to an unmodifiable annotation list.Methods in opennlp.tools.document that return DocumentModifier and TypeMethodDescriptionprivate static <T> DocumentDocumentAnalyzer.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.ImmutableDocument.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.<T> DocumentImmutableDocument.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 TypeMethodDescriptionprivate static <T> DocumentAnnotates a document.(package private) static voidDocumentMerges.checkDuplicateLayer(Document base, LayerKey<?> layer, Document other, Document.DuplicateLayerPolicy duplicateLayers) Checks that a layer present on both documents of a merge can be kept as it is.(package private) static voidDocumentMerges.checkMergeable(Document document, Document other, Document.DuplicateLayerPolicy duplicateLayers) Checks the arguments of a merge.private <T> List<Annotation<?>> ImmutableDocument.copyValidated(LayerKey<T> layer, Document from) Returns a validated immutable copy of one offrom's layers, capturing the key's value type.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.ImmutableDocument.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. -
Uses of Document in opennlp.tools.lemmatizer
Methods in opennlp.tools.lemmatizer that return DocumentModifier and TypeMethodDescriptionLemmatizes the document sentence by sentence and adds theLemmatizerAnnotator.LEMMASlayer.Methods in opennlp.tools.lemmatizer with parameters of type DocumentModifier and TypeMethodDescriptionLemmatizes the document sentence by sentence and adds theLemmatizerAnnotator.LEMMASlayer. -
Uses of Document in opennlp.tools.namefind
Methods in opennlp.tools.namefind that return DocumentModifier and TypeMethodDescriptionFinds names sentence by sentence and adds theLayers.ENTITIESlayer.Methods in opennlp.tools.namefind with parameters of type DocumentModifier and TypeMethodDescriptionFinds names sentence by sentence and adds theLayers.ENTITIESlayer. -
Uses of Document in opennlp.tools.parser
Methods in opennlp.tools.parser that return DocumentModifier and TypeMethodDescriptionParses the document sentence by sentence and adds theParserAnnotator.PHRASESlayer.Methods in opennlp.tools.parser with parameters of type DocumentModifier and TypeMethodDescriptionParses the document sentence by sentence and adds theParserAnnotator.PHRASESlayer. -
Uses of Document in opennlp.tools.postag
Methods in opennlp.tools.postag that return DocumentModifier and TypeMethodDescriptionTags the document sentence by sentence and adds theLayers.POS_TAGSlayer.Methods in opennlp.tools.postag with parameters of type DocumentModifier and TypeMethodDescriptionTags the document sentence by sentence and adds theLayers.POS_TAGSlayer. -
Uses of Document in opennlp.tools.sentdetect
Methods in opennlp.tools.sentdetect that return DocumentModifier and TypeMethodDescriptionDetects sentences over the document text and adds theLayers.SENTENCESlayer, each sentence annotated with its covered text on its span.Methods in opennlp.tools.sentdetect with parameters of type DocumentModifier and TypeMethodDescriptionDetects sentences over the document text and adds theLayers.SENTENCESlayer, each sentence annotated with its covered text on its span. -
Uses of Document in opennlp.tools.stemmer
Methods in opennlp.tools.stemmer that return DocumentModifier and TypeMethodDescriptionStems the token layer and adds theStemmerAnnotator.STEMSlayer.Methods in opennlp.tools.stemmer with parameters of type DocumentModifier and TypeMethodDescriptionStems the token layer and adds theStemmerAnnotator.STEMSlayer. -
Uses of Document in opennlp.tools.termvector
Methods in opennlp.tools.termvector that return DocumentModifier and TypeMethodDescriptionAggregates the token layer into theTermVectorAnnotator.TERM_VECTORSlayer.Methods in opennlp.tools.termvector with parameters of type DocumentModifier and TypeMethodDescriptionAggregates the token layer into theTermVectorAnnotator.TERM_VECTORSlayer. -
Uses of Document in opennlp.tools.tokenize
Methods in opennlp.tools.tokenize that return DocumentModifier and TypeMethodDescriptionTokenizes the document and adds theLayers.TOKENSlayer, sentence by sentence when a sentence layer is present and over the whole text otherwise.Methods in opennlp.tools.tokenize with parameters of type DocumentModifier and TypeMethodDescriptionTokenizes the document and adds theLayers.TOKENSlayer, sentence by sentence when a sentence layer is present and over the whole text otherwise.