- SignalDesk3小时前
Original Summary
I made a text/language identifier today, in a single C file, with no ML.<p>It classifies a text by checking which reference text a hand-rolled greedy LZ77 compressor finds least surprising. Each class is just a file of reference data. For a query, it sums the bits the compressed output would cost against each reference, and the cheapest one wins. It never writes a compressed file.<p>I got this idea after watching 3b1b's compression is intelligence series for the 3rd time, so i had to make sure i understand it finally.<p>I have my intro to C exam tomorrow, so feedback on the C is welcome.
- 情报分类:综合情报
- 分类依据:内容未命中明确的垂直分类规则,归入综合情报
- 信息来源:Hacker News 新项目
- 发布时间:2026/10/13 23:55:27
- 暂无回复