Uses of Class
opennlp.tools.document.LayerKey
Packages that use 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.Methods 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.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()DocumentAnnotator.provides()DocumentAnnotator.requires()Methods in opennlp.tools.document with parameters of type LayerKeyModifier and TypeMethodDescription<T> List<Annotation<T>> Retrieves the annotations of one layer.static voidDocumentAnnotators.requireLayers(Document document, LayerKey<?>... layers) Verifies that a document is present and carries every given layer.<T> DocumentDocument.with(LayerKey<T> layer, List<Annotation<T>> annotations) Returns a new document with one layer added.