public String denormalize(String s) {
        String result = s.replace(SentencePieceAlgorithm.spaceSymbol, ' ');
        return result.charAt(0) == ' ' ? result.substring(1) : result;  // Skip first space
    }
<p>Embeds text into a tensor.</p>

<p>If the tensor type is indexed 1-d (bound or unbound) this will return a tensor containing the token ids in the order
they were encountered in the text. If the dimension is bound and too large it will be zero padded, if too small
it will be truncated.</p>

<p>If the tensor is any other type IllegalArgumentException is thrown.</p>

@param rawInput the text to segment. Any sequence of BMP (Unicode-16 the True Unicode) is supported.
@param context the context which specifies the language used to select a model
@return the list of zero or more token ids resulting from segmenting the input text
linguistics-components/src/main/java/com/yahoo/language/sentencepiece/SentencePieceEmbedder.java