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 |
getLanguage()
Deprecated.
|
String |
getSelectedText()
Returns the matched/extracted piece of text from the analyzed content
|
String |
getSelectedTextLang() |
String |
getSelectionContext()
Returns a surrounding context of the matched text
|
String |
getSelectionPrefix()
Some chars before the
getSelectedText() aimed to allow the location
of the selection in case getStarts() and getEnds() can
not be used (e.g. |
String |
getSelectionSuffix()
Some chars after the
getSelectedText() aimed to allow the location
of the selection in case getStarts() and getEnds() can
not be used (e.g. |
int |
getStarts()
Returns the position of the text where the annotation starts
|
String |
getType()
Returns the type of the entity annotation
|
int |
hashCode() |
compareTo, getConfidence, getRelationspublic int getStarts()
public int getEnds()
public String getSelectedText()
public String getSelectedTextLang()
@Deprecated public String getLanguage()
getSelectedTextLang()EnhancementgetLanguage in class Enhancementnullpublic String getSelectionContext()
public String getSelectionPrefix()
getSelectedText() aimed to allow the location
of the selection in case getStarts() and getEnds() can
not be used (e.g. for rich text documents)public String getSelectionSuffix()
getSelectedText() aimed to allow the location
of the selection in case getStarts() and getEnds() can
not be used (e.g. for rich text documents)public String getType()
Copyright © 2018 Redlink GmbH. All rights reserved.