Split a string into token ids with a vocabulary, always taking the longest match and emitting an unknown token for characters no entry covers. Then make it fast and stop repeating the unknown token.
Split a string into token ids with a vocabulary, always taking the longest match and emitting an unknown token for characters no entry covers. Then make it fast and stop repeating the unknown token.
The discussion opens with the full question.