This image has MeCab installed and ready to use. MeCab is a Japanese open source morphological analysis library. Please refer the MeCab documentation for more information.
This project provides images on Docker Hub.
$ docker pull blue271828/mecab
You can use mecab
command directly as below.
$ docker run -it --rm blue271828/mecab mecab
本日は晴天なり
本日 名詞,副詞可能,*,*,*,*,本日,ホンジツ,ホンジツ
は 助詞,係助詞,*,*,*,*,は,ハ,ワ
晴天 名詞,一般,*,*,*,*,晴天,セイテン,セイテン
なり 助動詞,*,*,*,文語・ナリ,基本形,なり,ナリ,ナリ
EOS
This project supports using mecab on ipython. You can use MeCab via mecab-python3 library from that environment.
$ docker run -it --rm blue271828/mecab ipython
Follows are basic usage.
>>> import MeCab
>>> chasen = MeCab.Tagger("-O chasen")
>>> print(chasen.parse("本日は晴天なり"))
本日 ホンジツ 本日 名詞-副詞可能
は ハ は 助詞-係助詞
晴天 セイテン 晴天 名詞-一般
なり ナリ なり 助動詞 文語・ナリ 基本形
EOS