0
0

More than 3 years have passed since last update.

google colaboratoryでmecabを使うまで

Posted at

メモメモ

1.ローカルでの準備

ローカルで色々と準備しないと動かなかった

mac
$ brew install mecab
$ brew install mecab-ipadic
#or
$ brew install mecab mecab-ipadic git curl xz

2.colaboratory側で

colab
!apt install aptitude
!aptitude install mecab libmecab-dev mecab-ipadic-utf8 git make curl xz-utils file -y
!pip install mecab-python3
colab
!git clone --depth 1 https://github.com/neologd/mecab-ipadic-neologd.git
!echo yes | mecab-ipadic-neologd/bin/install-mecab-ipadic-neologd -n

!ln -s /etc/mecabrc /usr/local/etc/mecabrc

あとはimport MeCabして使えるかを確認

0
0
1

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
0
0