public class EntityRecognition implements IntOpenRange
public 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 kotlin.ranges.IntRange toClosedRange()
Transforms this range into an IntRange.
@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)