pub fn decode_to_string(indices: &[usize]) -> Result<String, String>Expand description
Decode token indices to a String using the global tokenizer.
This is a convenience function that calls [SimpleTokenizer::global().decode_to_string()].
ยงExample
let text = decode_to_string(&[0, 1, 2])?;
println!("{}", text);