Uses of Class
com.yahoo.text.interpretation.Annotations
Package
Description
Models a set of hierarchical annotations (typically produced by QLAS) of a natural language string.
-
Uses of Annotations in com.yahoo.text.interpretation
Modifier and TypeMethodDescriptionInterpretation.annotate
(int from, int to, AnnotationClass annotationClass) Returns the annotation with the given annotationClass (and create it if necessary).Returns the annotation with the given annotationClass (and create it if necessary).Interpretation.annotate
(AnnotationClass annotationClass) Return the annotation with the given annotationclass (and create it if necessary).Return the annotation with the given annotationclass (and create it if necessary).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.Equivalent toget(from,to,new AnnotationClass(annotationClass))
Interpretation.get
(AnnotationClass annotationClass) Returns the annotation marked with the annotationClass.Returns the annotation marked with the annotationClass.Modification.getAnnotation()
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 spanModifier and TypeMethodDescriptionInterpretation.getAll()
Gets all annotations mentioned in the query.Interpretation.getAll
(AnnotationClass annotationClass) Returns a list of all annotations of the given class that exists in the text.Returns a list of all annotations of the given class that exists in the text.Span.getAllAnnotations()
Returns all annotations that are contained in either this subspan or in any of its subannotations