Uses of Class
opennlp.tools.document.LayerKey
Packages that use LayerKey
Package
Description
-
Uses of LayerKey in opennlp.tools.chunker
Fields in opennlp.tools.chunker declared as LayerKeyModifier and TypeFieldDescriptionChunkerAnnotator.CHUNKSPhrase chunks; each annotation covers one chunk and carries its type, ordered by text position.Methods in opennlp.tools.chunker that return types with arguments of type LayerKey -
Uses of LayerKey in opennlp.tools.document
Fields in opennlp.tools.document declared as LayerKeyModifier and TypeFieldDescriptionLayers.ENTITIESNamed entities; each annotation covers one mention and carries the entity type as its value.Layers.POS_TAGSPart-of-speech tags; one annotation per token, aligned withLayers.TOKENSby position, carrying the tag.Layers.SENTENCESSentence boundaries; each annotation covers one sentence and carries its text.Layers.TOKENSToken boundaries; each annotation covers one token and carries its text.Fields in opennlp.tools.document with type parameters of type LayerKeyModifier and TypeFieldDescriptionprivate final Map<LayerKey<?>, List<Annotation<?>>> ImmutableDocument.layersMethods in opennlp.tools.document that return LayerKeyModifier and TypeMethodDescriptionstatic <T> LayerKey<T> Creates adocument-scopedLayerKeyfor values that describe the document as a whole, for example a language id, a category distribution, or provenance.static <T> LayerKey<T> Layers.documentKey(String name, Class<T> type) Creates adocument-scopedkey in the toolkit'sopennlp:namespace, for a whole-document value the toolkit itself produces.private static <T> LayerKey<T> LayerKey.key(String id, Class<T> type, LayerKey.Scope scope) Validates the components and creates the key.static <T> LayerKey<T> Creates apositionalkey in the toolkit'sopennlp:namespace, for a layer the toolkit itself produces.static <T> LayerKey<T> Creates aLayerKey.Methods in opennlp.tools.document that return types with arguments of type LayerKeyModifier and TypeMethodDescriptionDocument.layers()ImmutableDocument.layers()DocumentAnnotator.provides()DocumentAnnotator.requires()Methods in opennlp.tools.document with parameters of type LayerKeyModifier and TypeMethodDescriptionprivate static <T> DocumentAdds one layer offromtobasethroughDocument.with(LayerKey, List), capturing the key's value type.(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.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.<T> List<Annotation<T>> Retrieves the annotations of one layer.<T> List<Annotation<T>> Retrieves the annotations of one layer.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.private <T> voidImmutableDocument.validate(LayerKey<T> layer, List<Annotation<T>> annotations) Checks one layer's annotations against the key's contract: no null elements, values assignable to the key's type, spans present and within the text bounds under a positional key, absent under a document-scoped key.<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.Constructor parameters in opennlp.tools.document with type arguments of type LayerKeyModifierConstructorDescriptionprivateImmutableDocument(String text, Map<LayerKey<?>, List<Annotation<?>>> layers) -
Uses of LayerKey in opennlp.tools.lemmatizer
Fields in opennlp.tools.lemmatizer declared as LayerKeyMethods in opennlp.tools.lemmatizer that return types with arguments of type LayerKey -
Uses of LayerKey in opennlp.tools.namefind
Methods in opennlp.tools.namefind that return types with arguments of type LayerKey -
Uses of LayerKey in opennlp.tools.parser
Fields in opennlp.tools.parser declared as LayerKeyModifier and TypeFieldDescriptionstatic final LayerKey<ParserAnnotator.Phrase> ParserAnnotator.PHRASESParse phrases; each annotation covers one phrase and carries itsParserAnnotator.Phrase, in pre-order of the parse tree.Methods in opennlp.tools.parser that return types with arguments of type LayerKey -
Uses of LayerKey in opennlp.tools.postag
Methods in opennlp.tools.postag that return types with arguments of type LayerKey -
Uses of LayerKey in opennlp.tools.sentdetect
Methods in opennlp.tools.sentdetect that return types with arguments of type LayerKey -
Uses of LayerKey in opennlp.tools.stemmer
Fields in opennlp.tools.stemmer declared as LayerKeyMethods in opennlp.tools.stemmer that return types with arguments of type LayerKey -
Uses of LayerKey in opennlp.tools.termvector
Fields in opennlp.tools.termvector declared as LayerKeyModifier and TypeFieldDescriptionstatic final LayerKey<TermVector> TermVectorAnnotator.TERM_VECTORSThe key of the term vector layer this annotator provides: a document-scoped layer ofTermVectorvalues, one per distinct term.Methods in opennlp.tools.termvector that return types with arguments of type LayerKey -
Uses of LayerKey in opennlp.tools.tokenize
Methods in opennlp.tools.tokenize that return types with arguments of type LayerKey