public class NGramAnnotation
extends java.lang.Object
implements de.ims.icarus.language.dependency.annotation.DependencyAnnotation
Modifier and Type | Field and Description |
---|---|
protected DefaultNGramHighlight |
highlight |
Constructor and Description |
---|
NGramAnnotation(DefaultNGramHighlight highlight) |
Modifier and Type | Method and Description |
---|---|
int |
getAnnotationCount() |
de.ims.icarus.search_tools.annotation.ResultAnnotator |
getAnnotator() |
int |
getGroupId(int index) |
int |
getGroupId(int index,
java.lang.String token) |
long |
getHighlight(int index) |
NGramHighlighting |
getHighlighting() |
int |
getIndex() |
boolean |
isAfterLast() |
boolean |
isBeforeFirst() |
boolean |
isEdgeHighlighted(int index) |
boolean |
isHighlighted(int index) |
boolean |
isNodeHighlighted(int index) |
boolean |
isTokenHighlighted(int index,
java.lang.String token) |
boolean |
isTransitiveHighlighted(int index) |
void |
moveToAnnotation(int index) |
boolean |
nextAnnotation() |
void |
reset() |
protected DefaultNGramHighlight highlight
public NGramAnnotation(DefaultNGramHighlight highlight)
public NGramHighlighting getHighlighting()
public boolean isHighlighted(int index)
isHighlighted
in interface de.ims.icarus.search_tools.annotation.SearchAnnotation
SearchAnnotation.isHighlighted(int)
public int getGroupId(int index)
getGroupId
in interface de.ims.icarus.search_tools.annotation.SearchAnnotation
SearchAnnotation.getGroupId(int)
public int getGroupId(int index, java.lang.String token)
getGroupId
in interface de.ims.icarus.search_tools.annotation.SearchAnnotation
SearchAnnotation.getGroupId(int, java.lang.String)
public boolean isNodeHighlighted(int index)
isNodeHighlighted
in interface de.ims.icarus.search_tools.annotation.SearchAnnotation
SearchAnnotation.isNodeHighlighted(int)
public boolean isEdgeHighlighted(int index)
isEdgeHighlighted
in interface de.ims.icarus.search_tools.annotation.SearchAnnotation
SearchAnnotation.isEdgeHighlighted(int)
public boolean isTransitiveHighlighted(int index)
isTransitiveHighlighted
in interface de.ims.icarus.search_tools.annotation.SearchAnnotation
SearchAnnotation.isTransitiveHighlighted(int)
public boolean isTokenHighlighted(int index, java.lang.String token)
isTokenHighlighted
in interface de.ims.icarus.search_tools.annotation.SearchAnnotation
SearchAnnotation.isTokenHighlighted(int, java.lang.String)
public int getAnnotationCount()
getAnnotationCount
in interface de.ims.icarus.util.annotation.Annotation
Annotation.getAnnotationCount()
public void reset()
reset
in interface de.ims.icarus.util.annotation.Annotation
Annotation.reset()
public boolean isBeforeFirst()
isBeforeFirst
in interface de.ims.icarus.util.annotation.Annotation
Annotation.isBeforeFirst()
public boolean isAfterLast()
isAfterLast
in interface de.ims.icarus.util.annotation.Annotation
Annotation.isAfterLast()
public boolean nextAnnotation()
nextAnnotation
in interface de.ims.icarus.util.annotation.Annotation
Annotation.nextAnnotation()
public int getIndex()
getIndex
in interface de.ims.icarus.util.annotation.Annotation
Annotation.getIndex()
public void moveToAnnotation(int index)
moveToAnnotation
in interface de.ims.icarus.util.annotation.Annotation
Annotation.moveToAnnotation(int)
public long getHighlight(int index)
getHighlight
in interface de.ims.icarus.search_tools.annotation.SearchAnnotation
SearchAnnotation.getHighlight(int)
public de.ims.icarus.search_tools.annotation.ResultAnnotator getAnnotator()
getAnnotator
in interface de.ims.icarus.search_tools.annotation.SearchAnnotation
SearchAnnotation.getAnnotator()