hexenq / kuroshiro

Japanese language library for converting Japanese sentence to Hiragana, Katakana or Romaji with furigana and okurigana modes supported.
https://kuroshiro.org
MIT License
818 stars 93 forks source link

Create myseft Dictionary #69

Open nemeros111 opened 4 years ago

nemeros111 commented 4 years ago

Hi,

How can i make myseft Dictionary which list of my kanji and furigana in case Kuroshiro is not correct? Ex: 辞書形: じしょけい   (Kuroshiro: じしょがた ✖) 可能形:かのうけい   (Kuroshiro: かのうがた ✖) ます形:ますけい    (Kuroshiro: ますがた ✖) ... Please help me!

hexenq commented 4 years ago

Hello nemeros111. Kuroshiro utilizes different morphological analyzers to do conversion job. The user dictionary you mentioned should be applied to morphological analyzer. So what we should do is to find a morphological analyzer which support user dictionary. As far as I know mecab does. You could refer to mecabユーザ辞書への追加 or this qiita post for more information. Thanks.