pub fn compression_ratio(text: &str) -> f32
Gzip compression ratio of text — text.len() / compressed_len.
text
text.len() / compressed_len
Values above DecodingConfig::compression_ratio_threshold (2.4) indicate a repetitive or hallucinated output.
DecodingConfig::compression_ratio_threshold