Uses of Class
com.yahoo.text.interpretation.AnnotationClass
Package
Description
Models a set of hierarchical annotations (typically produced by QLAS) of a natural language string.
-
Uses of AnnotationClass in com.yahoo.text.interpretation
Modifier and TypeFieldDescriptionstatic final AnnotationClass
Interpretation.INTERPRETATION_CLASS
static final AnnotationClass
Modification.MODIFICATION_CLASS
Modifier and TypeMethodDescriptionInterpretation.getAll()
Gets all annotations mentioned in the query.Span.getAllAnnotations()
Returns all annotations that are contained in either this subspan or in any of its subannotationsInterpretation.getClasses()
Gets all the annotationclasses that describes the text.Interpretation.getClasses
(int from, int to) Gets all annotationclasses that describe a substringSpan.getClasses()
Returns all AnnotationClasses that are defined for this span and any of its superspans.Span.getClasses
(int from, int to) Returns all AnnotationClasses that are defined for the range (from,to).Modifier and TypeMethodDescriptionInterpretation.annotate
(int from, int to, AnnotationClass annotationClass) Returns the annotation with the given annotationClass (and create it if necessary).void
Interpretation.annotate
(int from, int to, AnnotationClass annotationClass, String key, Object value) Sets a key/value pair for an annotation of a substring.Interpretation.annotate
(AnnotationClass annotationClass) Return the annotation with the given annotationclass (and create it if necessary).void
Interpretation.annotate
(AnnotationClass annotationClass, String key, Object value) Sets a key/value pair for an annotation.Span.annotate
(int from, int to, AnnotationClass clazz) This will either create or get the annotation of the class annotationSpan.annotate
(AnnotationClass clazz) Interpretation.get
(int from, int to, AnnotationClass annotationClass) Gets an annotation that is set on a substring.Interpretation.get
(AnnotationClass annotationClass) Returns the annotation marked with the annotationClass.Interpretation.get
(AnnotationClass annotationClass, String key) Gets the value of a property set on an annotation.Interpretation.getAll
(AnnotationClass annotationClass) Returns a list of all annotations of the given class that exists in the text.Span.getAnnotation
(int from, int to, AnnotationClass clazz) Returns the annotations with a specific class for the area defined by (from,to).Span.getAnnotation
(AnnotationClass clazz) Returns the annotations with a specific class for the area defined by this spanboolean
Span.hasClass
(AnnotationClass clazz) Returns true if this class