3
1

More than 3 years have passed since last update.

mecab-python3ではunidic-liteが必要っぽい

Last updated at Posted at 2020-09-06

追記

下にコメントがありますが、mecab-python3の開発者の方によるとunidic-liteは必要ないとのことです。こちら不正確な記事ではありますが、個人的な経験として残させていただきます。


Qiitaなどの記事を見ながらUbuntuにMeCabを動かす環境構築をしていたのですが、記事の通りにやってても動かない。コマンドラインでは動くのに、Pythonで利用しようとするとなぜかエラーを吐いてしまっていました。

なんでだろうなって思ってたら、よくよく調べるとパッケージが足りていませんでした。mecab-python3のREADMEにちゃんと書いてあったのを読まなかったのが悪い。ちゃんと一次ソースを見ましょう。

UbuntuなのでGoogle Colabで困っている方も試してみてください。me

解決法

pip install unidic-lite 

参考記事

mecab-python3のリポジトリ:https://github.com/SamuraiT/mecab-python3

こちらの記事を参考に構築しました:https://qiita.com/ekzemplaro/items/c98c7f6698f130b55d53

3
1
4

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1