Text Ranking and Classification using Data Compression

Nitya Kasturi, Igor L. Markov
9/23/2021
cs.LG

Official code: facebookresearch/zest (7 stars, Python, last commit 2022-01-15).

Abstract

A well-known but rarely used approach to text categorization uses conditional entropy estimates computed using data compression tools. Text affinity scores derived from compressed sizes can be used for classification and ranking tasks, but their success depends on the compression tools used.

Show full abstract

We use the Zstandard compressor and strengthen these ideas in several ways, calling the resulting language-agnostic technique Zest. In applications, this approach simplifies configuration, avoiding careful feature extraction and large ML models. Our ablation studies confirm the value of individual enhancements we introduce. We show that Zest complements and can compete with language-specific multidimensional content embeddings in production, but cannot outperform other counting methods on public datasets.

View on arXivView PDF

Code Implementations(1)

Zest is a compression-based text classifier using Meta's Zstandard compression algorithm. Zest is language-agnostic and this approach simplifies configuration, avoids careful feature extraction and large ML models.

70PythonDec 3, 20214 years agoNOASSERTION

Similar Papers

Cite this paper

@article{kasturi2021text,
  title  = {Text Ranking and Classification using Data Compression},
  author = {Nitya Kasturi and Igor L. Markov},
  year   = {2021},
  eprint = {2109.11577},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.11577}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2109.11577.svg)](https://codeofpaper.com/paper/2109.11577)

Discussion