bazingagin / npc_gzip

Code for Paper: “Low-Resource” Text Classification: A Parameter-Free Classification Method with Compressors
MIT License
1.77k stars 156 forks source link

add majority vote #37

Closed bazingagin closed 1 year ago

bazingagin commented 1 year ago

This is an important fix for the predict function. Previously the code seems to only support k=1 case... And I do think tests need to be changed as they have some restrictions that do not hold when k>1.