When trimOffsets is false, the Roberta processing will ignore the encoding result. That results the whole encoding method return nil without any error.
For example, using the openai/clip-vit-base-patch32 as the tokenizer configuration, the tk.EncodeSingle("Hello World", true) will return (nil, nil)