Uses of Record Class
opennlp.tools.document.Annotation
Packages that use Annotation
-
Uses of Annotation in opennlp.tools.document
Methods in opennlp.tools.document that return AnnotationModifier and TypeMethodDescriptionstatic <T> Annotation<T> Annotation.of(T value) Creates a span-less annotation for adocument-scopedlayer.Methods in opennlp.tools.document that return types with arguments of type AnnotationModifier and TypeMethodDescription<T> List<Annotation<T>> Retrieves the annotations of one layer.Method parameters in opennlp.tools.document with type arguments of type AnnotationModifier and TypeMethodDescriptionstatic voidDocumentAnnotators.forEachSentence(List<Annotation<String>> sentences, List<Annotation<String>> tokens, DocumentAnnotators.SentenceTokenConsumer consumer) Walks the token layer sentence by sentence and hands each sentence's contiguous token run to the consumer.<T> DocumentDocument.with(LayerKey<T> layer, List<Annotation<T>> annotations) Returns a new document with one layer added.