Package | Description |
---|---|
com.yahoo.document.annotation |
Provides classes and interfaces for creating trees of spans over string
values in Vespa documents, and annotating these spans.
|
Modifier and Type | Field and Description |
---|---|
private AnnotationType |
AnnotationReferenceDataType.aType |
static AnnotationType |
AnnotationTypes.CANONICAL |
static AnnotationType |
AnnotationTypes.NORMALIZED |
static AnnotationType |
AnnotationTypes.PROXIMITY_BREAK |
static AnnotationType |
AnnotationTypes.READING |
static AnnotationType |
AnnotationTypes.SPECIAL_TOKEN |
static AnnotationType |
AnnotationTypes.STEM |
private AnnotationType |
AnnotationType.superType |
static AnnotationType |
AnnotationTypes.TERM |
static AnnotationType |
AnnotationTypes.TOKEN_TYPE |
static AnnotationType |
AnnotationTypes.TRANSFORMED |
private AnnotationType |
Annotation.type |
Modifier and Type | Field and Description |
---|---|
static List<AnnotationType> |
AnnotationTypes.ALL_TYPES |
private Map<Integer,AnnotationType> |
AnnotationTypeRegistry.idMap |
private Map<String,AnnotationType> |
AnnotationTypeRegistry.nameMap |
Modifier and Type | Method and Description |
---|---|
AnnotationType |
AnnotationReferenceDataType.getAnnotationType()
Returns the annotation type of this AnnotationReferenceDataType.
|
AnnotationType |
Annotation.getType()
Returns the type of this annotation.
|
AnnotationType |
AnnotationTypeRegistry.getType(int id)
Returns an annotation type with the given id.
|
AnnotationType |
AnnotationTypeRegistry.getType(String name)
Returns an annotation type with the given name.
|
Modifier and Type | Method and Description |
---|---|
Collection<AnnotationType> |
AnnotationType.getInheritedTypes() |
Map<String,AnnotationType> |
AnnotationTypeRegistry.getTypes()
Returns an unmodifiable
Map of all types registered. |
Modifier and Type | Method and Description |
---|---|
SpanNode |
SpanNode.annotate(AnnotationType type)
Convenience method for adding an annotation with no value to this span, same as
getSpanTree(). |
SpanNode |
SpanNode.annotate(AnnotationType type,
FieldValue value)
Convenience method for adding an annotation to this span, same as
getSpanTree(). |
SpanNode |
SpanNode.annotate(AnnotationType type,
Integer value)
Convenience method for adding an annotation to this span, same as
getSpanTree(). |
SpanNode |
SpanNode.annotate(AnnotationType type,
String value)
Convenience method for adding an annotation to this span, same as
getSpanTree(). |
SpanTree |
SpanTree.annotate(SpanNode node,
AnnotationType type)
Creates an Annotation based on the given AnnotationType, and adds it to the internal list of
annotations for this SpanTree (convenience method). Use this when
adding an Annotation (that does not have a FieldValue) that shall annotate a SpanNode.
|
SpanTree |
SpanTree.annotate(SpanNode node,
AnnotationType type,
FieldValue value)
Adds an Annotation.
|
int |
AnnotationType.compareTo(AnnotationType annotationType) |
void |
AnnotationType.inherit(AnnotationType type)
WARNING! Only to be used by the configuration system and in unit tests. Not to be used in production code.
|
boolean |
AnnotationType.inherits(AnnotationType type) |
void |
AnnotationTypeRegistry.register(AnnotationType type)
Register a new annotation type. WARNING! Only to be used by the configuration system and in unit tests. Not to be used in production code.
|
protected void |
AnnotationReferenceDataType.setAnnotationType(AnnotationType type)
Sets the annotation type that this AnnotationReferenceDataType points to. WARNING! Do not use.
|
void |
Annotation.setType(AnnotationType type)
Sets the type of this annotation. BEWARE! Should only be used during deserialization.
|
boolean |
AnnotationTypeRegistry.unregister(AnnotationType type)
Unregisters the type given by the argument. WARNING! Only to be used by the configuration system and in unit tests. Not to be used in production code.
|
Constructor and Description |
---|
Annotation(AnnotationType type)
Constructs a new annotation of the specified type.
|
Annotation(AnnotationType type,
FieldValue value)
Constructs a new annotation of the specified type, and having the specified value.
|
AnnotationReferenceDataType(AnnotationType aType)
Creates an AnnotationReferenceDataType with a generated id.
|
AnnotationReferenceDataType(AnnotationType aType,
int id)
Creates an AnnotationReferenceDataType with a given id.
|
Copyright © 2018. All rights reserved.