Skip to main content

encode_byte_level_chars

Function encode_byte_level_chars 

Source
pub fn encode_byte_level_chars(bytes: &[u8]) -> String
Expand description

Encode raw bytes into a string of GPT-2 byte-encoded characters. The result matches the keys of a byte_level vocab.