Note: Due to static Space runtime limitations, this browser demo runs a lightweight JavaScript tokenizer and optional WebAssembly INT8 model without the full Python morphological analyzer (SudachiPy). Actual accuracy and speed differ from the full Python runtime — for full performance, run the Python SDK locally or connect via Local Python API below.
Instant 10,592-reading lexicon active. Load 130M ONNX INT8 weights in browser or connect a local `yumi --serve` Python backend.
Multi-Format Outputs
Morpheme Span Breakdown (Dual-Track Orthographic & Phonological AST)
| Surface | Orthographic Hiragana | Phonological Katakana | Romaji | Source / Notes |
|---|
About OpenYumi-130M (`saivansoft/openyumi-130m`)
OpenYumi-130M is a standalone 130M-parameter Japanese contextual kanji reading (G2P), furigana annotation, and kana/romaji toolkit published by Saivansoft. It resolves intra-sentence heteronyms, dual-reading place names, idioms, sequential voicing (rendaku), numeral-counter sandhi, and jukujikun with 0.0% character loss, shipping both a zero-PyTorch ONNX Runtime SDK and PyTorch weights under the Apache 2.0 license.
Contextual Furigana
Annotate Japanese web pages, e-books, subtitles, and learning apps in HTML <ruby> (XSS-safe), parenthetical, or Aozora Bunko furigana.
TTS & Speech Front-End
Produce dual-track Span ASTs with orthographic Hiragana and phonological Katakana (は→ワ, へ→エ, long vowels, rendaku, and counter euphony).
SDK, CLI & Migration
Includes synchronous WanaKana-style kana/romaji helpers, a 1-line Kuroshiro drop-in adapter, boundary-safe `user_dict`, and a local `yumi --serve` API.
Python SDK & Local Server Quickstart
# Install dependencies:
# pip install numpy sudachipy sudachidict_full onnxruntime tokenizers huggingface_hub
# git clone https://huggingface.co/saivansoft/openyumi-130m && pip install -e ./openyumi-130m
import openyumi as yumi
# Instant synchronous kana / romaji utilities
print(yumi.to_kana("TOFUGUnosushi")) # トフグのすし
print(yumi.to_romaji("おうさま", system="macron", track="phonological")) # ōsama
# Contextual furigana (precision="auto" | "int8" | "fp32")
print(yumi.convert(
"人気のない通りにある店で、一番人気のラーメンを食べた。",
mode="furigana",
model="saivansoft/openyumi-130m",
precision="auto",
))
# Boundary-safe custom dictionary & dual-track Span AST
spans = yumi.parse(
"出張で東京の日本橋を訪れ、週末は大阪の日本橋で遊んだ。",
model="saivansoft/openyumi-130m",
)
# Optional: start local SudachiPy + ONNX server for browser Playground connection
# python -m openyumi.cli --model saivansoft/openyumi-130m --serve --port 8787