- Open terminal and execute:
sudo apt-get install build-essential
- Next, run this command to install Mecab:
sudo apt-get install mecab libmecab-dev mecab-ipadic mecab-ipadic-utf8 mecab-jumandic mecab-jumandic-utf8
- Then you need to install mecab-python:
pip3 install mecab-python3
- Download the latest CRF++ archive from here: https://drive.google.com/drive/folders/0B4y35FiV1wh7fngteFhHQUN2Y1B5eUJBNHZUemJYQV9VWlBUb3JlX0xBdWVZTWtSbVBneU0
- Go to the directory where the downloaded archive is located and then execute thess commands one by one:
tar xzvf CRF++-0.58.tar.gz
cd CRF++-0.58
./configure
make
sudo make install
sudo ldconfig
- In this step you are ready to compile and install CaboCha. Download the latest version here: https://drive.google.com/drive/folders/0B4y35FiV1wh7cGRCUUJHVTNJRnM
- Go to the directory with the archive and execute:
tar xjvf cabocha-0.69.tar.bz2
cd cabocha-0.69
./configure --with-charset=utf8
make
sudo make install
- When you are in the /cabocha-0.69/ directory run these commands:
cd python
sudo python3 setup.py install
If you encountered this kind of a problem, run these commands:
cd /usr/lib
sudo ln -s /usr/local/lib/libcabocha.so.5 libcabocha.so.5
This is it! You've successfully installed everything you need to use CaboCha and Mecab in your Python programming.
- MeCab: https://taku910.github.io/mecab/
- CaboCha: https://taku910.github.io/cabocha/
- https://irukanobox.blogspot.com/2019/09/pythoncabocha.html?m=1
- https://www.trifields.jp/install-cabocha-in-ubuntu-1038
- https://qiita.com/kazasiki/items/99505a5005aebe2efb7a
- https://rpubs.com/auroratsai/440718
- https://web.archive.org/web/20140928032627/gentlemachine.com/blog/2008/11/cabocha-learn.html
- https://www.trifields.jp/python-cabocha-select-dependency-structure-1043
- https://www.tech-tech.xyz/python-cabocha-mac.html
- https://qiita.com/ayuchiy/items/c3f314889154c4efa71e
- http://hiroshiu.blogspot.com/2018/08/basic-usage-of-cabocha-in-python.html
- http://hiroshiu.blogspot.com/2018/04/how-to-add-user-dictionary-to-mecab.html
- https://towardsdatascience.com/mecab-usage-and-add-user-dictionary-to-mecab-9ee58966fc6