Skip to main content

ONNX Runtime inference for Hebrew grapheme-to-phoneme conversion (ReNikud Plus)

Project description

ReNikud Plus — Hebrew Grapheme-to-Phoneme Inference

Convert unvocalized Hebrew text into IPA for TTS, speech technology, and spoken-language research.

Benchmark

G2P benchmark comparison

Install

pip install renikud-plus

The ONNX weights (~310 MB) download automatically from Hugging Face on first use and are cached locally. No separate hf download step is required.

Usage

from renikud_onnx import G2P

g2p = G2P()  # downloads notmax123/RenikudPlus model.onnx if needed
print(g2p.phonemize("שלום עולם"))
# → ʃlˈom ʔolˈam

Pass a local path if you already have the weights:

g2p = G2P("model.onnx")

For a gender-conditioned ONNX model, pass speaker and target_speaker as 0 (unknown), 1 (male), or 2 (female):

g2p.phonemize("היא רצה", speaker=2, target_speaker=2)

Niqqud output

vocalize renders the same predictions as pointed Hebrew (niqqud) instead of IPA — for TTS engines that read niqqud natively but ignore phoneme markup. It accepts the same speaker / target_speaker arguments.

print(g2p.vocalize("שלום עולם"))
# → שׁלוֹם עוֹלַם

Niqqud has no stress mark, so predicted stress is not represented in this output (it is in phonemize). Diacritization is phonetically faithful but not publication-grade — e.g. shva in clusters is omitted.

Citation

@misc{melichov2026renikud,
  title={ReNikud: Audio-Supervised Hebrew Grapheme-to-Phoneme Conversion},
  author={Maxim Melichov and Yakov Kolani and Morris Alper},
  year={2026},
  url={https://arxiv.org/pdf/2606.20179},
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

renikud_plus-0.3.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

renikud_plus-0.3.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file renikud_plus-0.3.0.tar.gz.

File metadata

  • Download URL: renikud_plus-0.3.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.13

File hashes

Hashes for renikud_plus-0.3.0.tar.gz
Algorithm Hash digest
SHA256 123e8c7c4b3bd1d00e4b2161ea10bce29f7f7a4a7e38a034402afeecb767b721
MD5 e9ee13c5f0ead87af35c09948fe327c4
BLAKE2b-256 41bc8ebe22fc96be36b1a0300361c44df98e1a39ef83a445265f2c8189b990de

See more details on using hashes here.

File details

Details for the file renikud_plus-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for renikud_plus-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0fe3b30bf2898471cb314dff89e0758d5290eb701e134e0e980ffb9aa775a805
MD5 3e972a29f5dfa3c0c4048a008d3cf269
BLAKE2b-256 35d6df772315350329dfbea4508099d37c3deaa731a3686ac50e20d87c89f198

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page