public final class TextAnnotation extends Enhancement
| Constructor and Description |
|---|
TextAnnotation() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getEnds()
Returns the position of the text where the annotation ends
|
String |
getSelectedText()
Returns the matched/extracted piece of text from the analyzed content
|
String |
getSelectionContext()
Returns a surrounding context of the matched text
|
int |
getStarts()
Returns the position of the text where the annotation starts
|
String |
getType()
Returns the type of the entity annotation
|
int |
hashCode() |
void |
setType(String type) |
compareTo, getConfidence, getLanguage, getRelationspublic int getStarts()
public int getEnds()
public String getSelectedText()
public String getSelectionContext()
public String getType()
public void setType(String type)
Copyright © 2015 Redlink GmbH. All rights reserved.