MuShare / EasyJapanese

Learn Japanese
MIT License
2 stars 1 forks source link

Add furigana for title on of mainichi news #21

Open yanyin1986 opened 5 years ago

yanyin1986 commented 5 years ago

We can import the kuromoji library to do Japanese morphological analyze.

Kuromoji is an easy to use and self-contained Japanese morphological analyzer that does

<b>Word segmentation.</b> Segmenting text into words (or morphemes)
<b>Part-of-speech tagging.</b> Assign word-categories (nouns, verbs, particles, adjectives, etc.)
<b>Lemmatization.</b> Get dictionary forms for inflected verbs and adjectives
<b>Readings.</b> Extract readings for kanji
Several other features are supported. Please consult each dictionaries' Token class for details

Ref

https://github.com/atilika/kuromoji

yanyin1986 commented 4 years ago

This library seems to base on 'MeCab' which used to work on Japanese morphological analyzation. We can improve the dictionary by ourself.

HomePage

https://taku910.github.io/mecab/

iOS Lib Ref

https://github.com/landonepps/mecab-ios https://github.com/rnorth/iPhone-libmecab

yanyin1986 commented 4 years ago

Maybe we should use this. https://github.com/neologd/mecab-ipadic-neologd