Hacker News front pageGraafHenk2 min readrelease notesintermediate
WangNet – 1.8 MB, zero-dependency Numberwang adjudication in 11 languages
Summary
Numberwang is a tiny character‑level CNN packaged as a 1.8 MB JSON model and a ~100‑line pure‑Python inference script that classifies numeric strings in eleven languages without any external dependencies. It reaches 88.9 % macro‑F1 on a held‑out set, but struggles with unseen arithmetic expressions.
- The model is a 1.8 MB JSON file with ~100 lines of pure‑Python inference code, requiring no external libraries.
- Architecture: character‑level CNN (Embedding→Conv1d→ReLU→global max pool→Linear→softmax) with 80 k parameters.
- Achieves 88.9 % macro‑F1 on a 486‑sample test set; arithmetic on unseen operands is the weakest area (44–72% F1).
- Supports eleven languages, digits, words, Roman numerals, arithmetic expressions, and various formats without tokenizers or rules.
Useful for engineers who need zero‑dependency, low‑footprint ML inference or multilingual number parsing.
6/10
