haqumei-cli-0.1.0 is not a library.
haqumei-cli
A command-line interface for haqumei, a G2P (Grapheme-to-Phoneme) and text processing library for Japanese.
Installation
Usage
REPL
Run without arguments to enter the interactive mode.
)
> 今日はいい天気ですね。
One-liner / Pipeline Processing
You can specify the text directly as an argument, or pass the text via standard input.
|
File Processing
Read from an input file and write to an output file.
JSON Lines Output
Supports structured JSON output.
}
Modes (--mode)
haqumei-cli supports various output modes:
g2p(default): Flat phoneme sequence.g2p-detailed: Detailed phoneme sequence (symbols converted tosp,unk, etc.).kana: Katakana sequence.kana-per-word: Katakana sequence separated by word.per-word: Phoneme list grouped by word.pairs: Word to phoneme mapping.mapping: Detailed mapping including unknown word status.mapping-detailed: Includes POS, pronunciation, accent nucleus, and mora count.fullcontext: Full-context labels for TTS.
Options
Run --help to see all available configuration options (e.g., dictionary paths, unicode normalization, long vowel rules).