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 Span |
Span.parent |
private Span |
Interpretation.rootSpan |
private Span |
Annotations.span |
Modifier and Type | Field and Description |
---|---|
private List<Span> |
Span.subSpans |
Modifier and Type | Method and Description |
---|---|
Span |
Annotations.getSpan()
The span that this annotation is for.
|
Span |
Interpretation.root()
Returns the root of the tree representation of the interpretation
|
Modifier and Type | Method and Description |
---|---|
private List<Span> |
Span.getRemovableSubSpan() |
List<Span> |
Span.getSubSpans()
Returns all spans that are directly childrens of this span.
|
List<Span> |
Span.getTermSpans(String term)
Returns all spans, either this or any of the spans that are inherits this span that match the given term
|
List<Span> |
Interpretation.getTermSpans(String term)
Returns all spans that consists of the term given.
|
List<Span> |
Span.getTokens()
Returns an unmodifiable list of all spans below this span that is a leaf node
|
List<Span> |
Interpretation.getTokens()
Gets the lowermost spans (usually the spans marked with token).
|
Modifier and Type | Method and Description |
---|---|
private void |
Span.addSubSpan(Span span) |
Modifier and Type | Method and Description |
---|---|
private void |
Span.getTermSpans(String term,
List<Span> spans) |
private void |
Span.getTokens(List<Span> spans) |
Constructor and Description |
---|
Annotations(Span span) |
Span(int from,
int to,
Span parent) |
Copyright © 2017. All rights reserved.