Class CharSpan
java.lang.Object
ai.djl.huggingface.tokenizers.jni.CharSpan
A class holds character span information.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CharSpan
public CharSpan(int start, int end) Constructs a newCharSpaninstance.- Parameters:
start- the start positionend- 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
-