nn_plus_gzip icon indicating copy to clipboard operation
nn_plus_gzip copied to clipboard

Gzip and nearest neighbors for text classification

nn_plus_gzip

Minimalist reimplementation of the Gzip and nearest neighbors method for text classification based on the paper:

  • “Low-Resource” Text Classification: A Parameter-Free Classification Method with Compressors (https://aclanthology.org/2023.findings-acl.426/) by Zhiying Jiang, Matthew Yang, Mikhail Tsirlin, Raphael Tang, Yiqin Dai, and Jimmy Lin