sentencepiece_encode function

Tokenise text alongside a Sentencepiece model