See: SentencePiece Tool, SentencePiece Normalization Algorithm, SentencePiece Subword Segmentation Training Algorithm, SentencePiece Encoding Algorithm, SentencePiece Decoding Algorithm.