TLDR Tech / Data
Text classification with Python 3.14's zstd module
Python 3.14's upcoming standard-library Zstd module enables fast, incremental compression, making compression-based text classification practical by classifying documents based on which class-specific compressor yields the smallest output. This simple, gradient-free approach achieves ~91 percent accuracy on 20 Newsgroups in under 2 seconds, rivaling TF-IDF plus logistic regression while being far simpler and faster to train incrementally.
Read the full story