メモメモ
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
して使えるかを確認