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.static SpanDocumentAnnotators.toCharacterSpan(List<Annotation<String>> tokens, int first, int count, Span span, String source) Maps a span over one sentence's tokens onto the character span those tokens cover.static String[]DocumentAnnotators.values(List<Annotation<String>> layer, int first, int count) Collects the values of a contiguous run of annotations, for example the tags of one sentence's tokens duringDocumentAnnotators.forEachSentence(List, List, SentenceTokenConsumer).<T> DocumentDocument.with(LayerKey<T> layer, List<Annotation<T>> annotations) Returns a new document with one layer added.