public class EntityRecognition implements IntOpenRange
IntOpenRange.DefaultImpls| Constructor and Description |
|---|
EntityRecognition(EntityValue value,
double probability) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(IntOpenRange other) |
EntityValue |
component1() |
double |
component2() |
EntityRecognition |
copy(EntityValue value,
double probability) |
boolean |
equals(java.lang.Object p) |
int |
getEnd()
End
|
EntityType |
getEntityType() |
double |
getProbability() |
java.lang.String |
getRole() |
int |
getStart()
Start
|
EntityValue |
getValue() |
boolean |
hasSubEntities() |
int |
hashCode() |
boolean |
isSameRange(IntOpenRange range) |
boolean |
overlap(IntOpenRange range) |
boolean |
overlap(int start,
int end) |
int |
size() |
java.lang.String |
textValue(java.lang.String originalText) |
java.lang.String |
toString() |
compareTo, getEnd, getStart, isSameRange, overlap, overlap, size, textValuepublic EntityRecognition(@NotNull
EntityValue value,
double probability)
@NotNull public EntityType getEntityType()
@NotNull public java.lang.String getRole()
public boolean hasSubEntities()
@NotNull public EntityValue getValue()
public double getProbability()
public int getEnd()
End
(exclusive) text index of the entity.
public int getStart()
Start
(inclusive) text index of the entity.
public int compareTo(@NotNull
IntOpenRange other)
public boolean isSameRange(@NotNull
IntOpenRange range)
public boolean overlap(@NotNull
IntOpenRange range)
public boolean overlap(int start,
int end)
public int size()
@NotNull
public java.lang.String textValue(@NotNull
java.lang.String originalText)
@NotNull public EntityValue component1()
public double component2()
@NotNull public EntityRecognition copy(@NotNull EntityValue value, double probability)
@NotNull public java.lang.String toString()
public int hashCode()
public boolean equals(@Nullable
java.lang.Object p)