Getting entity offset from ONNX outputs

Hi all,

Working with a BERT model that I’ve exported successfully for NER. ONNX inference is successful, I’m just wondering if there’s a built-in function to convert the token index (from the model output) to the char offsets. I want to be able to identify the exact position of the entity in the original text.

Hopefully this isn’t too dumb of a question.

Nevermind, I’m an idiot. You can find out how to do it here:

There’s just too much documentation to sift through!