MikimotoH / furigana

Generate furigana from Japanese
Other
94 stars 26 forks source link

Shard mecab instane and pykakasi support #8

Open dkollmann opened 2 years ago

dkollmann commented 2 years ago

Added support for a custom/shared mecab tagger instance. Added support for pykakasi as an alternative to jaconv. The default behavior remains unchanged.

The idea is that you can provide a mecab tagger instance. Otherwise, one is created. The conversion from kana to hiragana is now handled through a function, allowing you to use another library for this. This is done by passing a function in which will do the conversion.