Package | Description |
---|---|
com.yahoo.text.interpretation |
Models a set of hierarchical annotations (typically produced by QLAS) of a natural language string.
|
Modifier and Type | Field and Description |
---|---|
private Annotations |
Modification.annotations |
Modifier and Type | Field and Description |
---|---|
private Map<AnnotationClass,Annotations> |
Span.annotations |
Modifier and Type | Method and Description |
---|---|
private Annotations |
Span.addAnnotation(int from,
int to,
AnnotationClass clazz) |
Annotations |
Span.annotate(AnnotationClass clazz) |
Annotations |
Interpretation.annotate(AnnotationClass annotationClass)
Return the annotation with the given annotationclass (and create it if necessary).
|
Annotations |
Span.annotate(int from,
int to,
AnnotationClass clazz)
This will either create or get the annotation of the class annotation
|
Annotations |
Interpretation.annotate(int from,
int to,
AnnotationClass annotationClass)
Returns the annotation with the given annotationClass (and create it if necessary).
|
Annotations |
Interpretation.annotate(int from,
int to,
String annotationClass)
Returns the annotation with the given annotationClass (and create it if necessary).
|
Annotations |
Interpretation.annotate(String annotationClass)
Return the annotation with the given annotationclass (and create it if necessary).
|
Annotations |
Interpretation.get(AnnotationClass annotationClass)
Returns the annotation marked with the annotationClass.
|
Annotations |
Interpretation.get(int from,
int to,
AnnotationClass annotationClass)
Gets an annotation that is set on a substring.
|
Annotations |
Interpretation.get(int from,
int to,
String annotationClass)
Equivalent to
get(from,to,new AnnotationClass(annotationClass)) |
Annotations |
Interpretation.get(String annotationClass)
Returns the annotation marked with the annotationClass.
|
Annotations |
Modification.getAnnotation() |
Annotations |
Span.getAnnotation(AnnotationClass clazz)
Returns the annotations with a specific class for the area defined by this span
|
Annotations |
Span.getAnnotation(int from,
int to,
AnnotationClass clazz)
Returns the annotations with a specific class for the area defined by (from,to).
|
private Annotations |
Span.getBestAnnotation(int from,
int to,
AnnotationClass clazz) |
Modifier and Type | Method and Description |
---|---|
Map<AnnotationClass,List<Annotations>> |
Interpretation.getAll()
Gets all annotations mentioned in the query.
|
List<Annotations> |
Interpretation.getAll(AnnotationClass annotationClass)
Returns a list of all annotations of the given class that exists in the text.
|
List<Annotations> |
Interpretation.getAll(String annotationClass)
Returns a list of all annotations of the given class that exists in the text.
|
Map<AnnotationClass,List<Annotations>> |
Span.getAllAnnotations()
Returns all annotations that are contained in either this subspan or in any of its subannotations
|
Modifier and Type | Method and Description |
---|---|
private void |
Interpretation.dumpAnnotation(StringBuilder sb,
Annotations annotations) |
Modifier and Type | Method and Description |
---|---|
private void |
Span.getAllAnnotations(Map<AnnotationClass,List<Annotations>> results) |
Copyright © 2018. All rights reserved.