Skip to content

v0.6.0

Latest

Choose a tag to compare

@maxmelichov maxmelichov released this 14 Nov 13:36
93a82fa

Self-contained weights, pinned per release.

One file, nothing else

G2P() needs only model.onnx (or model_int8.onnx). The vocabularies, per-letter constraints and cascade conditioning all travel inside the ONNX metadata.

from renikud_onnx import G2P

g2p = G2P()                               # downloads model.onnx on first use
g2p = G2P(filename="model_int8.onnx")     # 4× smaller, within ~0.3 pt overall
print(g2p.phonemize("שלום לכולם"))         # ʃalˈom lekulˈam

Pinned model revision

Each release now downloads the exact Hugging Face commit it was tested against (DEFAULT_HF_REVISION), so an installed version keeps loading the same weights however the model repo evolves. Pass G2P(revision="main") to opt into the latest upload. (#4, #5)

New weights

  • 93.3% word accuracy on 126k words of unseen podcast speech; per-category numbers are in the README.
  • The attested-reading rescorer is removed; the new weights fold in what it did. On 24 hand-checked pointed words the default decode goes from 13/24 to 17/24 segments right.
  • niqqud="use" still constrains the exact-MAP decode: 24/24 segments on that set, and 7/7 against the reference readings on the pointed possessive-suffix words.

Breaking changes

G2P(tau=..., mask=..., inventory_sources=...) and rescoring_enabled are removed.

Install

pip install 'renikud-plus[cpu]'   # or [gpu]