Skip to content

v0.4.0

Pre-release
Pre-release

Choose a tag to compare

@proairface proairface released this 13 Sep 21:56
· 24 commits to main since this release
36b4315
Vote across a forest of trees, and fix the published artifact

Accuracy: 64.2% to 68.0% of held-out words exactly right, phoneme error
rate 9.0% to 7.7%.

Nine trees per letter now vote instead of one deciding. Each is trained on
its own bootstrap resample and may only choose between ten of the twelve
features at any split, so they disagree where the evidence is thin.

That disagreement is the point. A single tree grown to pure leaves is
certain about everything, which is why beam search over whole words bought
nothing when it was tried against one tree and is recorded in the README as
a failure. A split vote is a real confidence estimate, and against the
ensemble the same search is worth about a point (66.8% greedy, 67.7% with a
beam of 8) — so the search is back, for a reason this time.

Nine is the knee of the curve, chosen on measured cost rather than the best
score: fifteen trees reach 68.9% and twenty-five 69.2%, but heap roughly
doubles and quadruples. At nine it is ~5.8 MB of heap, 1.2 MB in the jar,
under 200 ms to load and 67 us per unknown word. Node tags are packed into
shorts, worth 3 MB of that heap at no cost — a tag never exceeds a few
hundred.

Also fixes a real packaging regression from the previous commit. Making the
trainer a Gradle subproject was meant to keep it out of the published jar
and did the opposite: JitPack publishes every module it finds, so
com.github.proairface:KotlinG2P:v0.3.0 resolved to an aggregate POM that
pulled the trainer into any app depending on the library. It is a source set
now, which cannot fail that way, since `jar` packages only `main`.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BtiynRL3VisERGpMquRg8x