Class CharSpan

java.lang.Object
ai.djl.huggingface.tokenizers.jni.CharSpan

public class CharSpan extends Object
A class holds character span information.
  • Constructor Details

    • CharSpan

      public CharSpan(int start, int end)
      Constructs a new CharSpan instance.
      Parameters:
      start - the start position
      end - the end position
  • Method Details

    • getStart

      public int getStart()
      Returns the start position.
      Returns:
      the start position
    • getEnd

      public int getEnd()
      Returns the end position.
      Returns:
      the end position