MCPcopy
hub / github.com/m-bain/whisperX / compression_ratio

Function compression_ratio

whisperx/utils.py:189–191  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

187
188
189def compression_ratio(text) -> float:
190 text_bytes = text.encode("utf-8")
191 return len(text_bytes) / len(zlib.compress(text_bytes))
192
193
194def format_timestamp(

Callers

nothing calls this directly

Calls 1

encodeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…