Class MentionOffsets

java.lang.Object
com.basistech.rosette.apimodel.MentionOffsets

public final class MentionOffsets extends Object
The start and end offset/index for a given mention in a string of text
  • Method Details

    • builder

      public static MentionOffsets.MentionOffsetsBuilder builder()
    • getStartOffset

      public Integer getStartOffset()
      Returns:
      the offset for the first character of a mention, based on UTF-16 code page
    • getEndOffset

      public Integer getEndOffset()
      Returns:
      the offset for the last character of a mention, based on UTF-16 code page
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object