Converts string `text` to integer ids and the encoded string. Encoding includes prefixing the beginning-of-word token to each word. Returns: (ids, tokens) where ids is the encoded integer ids and tokens is the encoded string.
(self, text)
source not stored for this graph (policy: none)