Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

This article is a Private article. Only a writer and users who know the URL can access it.
Please change open range to public in publish setting if you want to share this article with other users.

More than 5 years have passed since last update.

Mecabセットアップ for Ubuntu

Last updated at Posted at 2018-01-02

##1:Mecab download site: https://drive.google.com/uc?export=download&id=0B4y35FiV1wh7cENtOXlicTFaRUE

$ tar -zxvf mecab-X.X.tar.gz
$ cd mecab-X.X
$ ./configure
$ make
$ make check
$ sudo make install
terminal
$ $ sudo ldconfig

UbuntuでMeCabやKyTeaを入れてlibなんちゃらがないと言われた時

##2:the dictionary for Mecab download site: https://drive.google.com/uc?export=download&id=0B4y35FiV1wh7MWVlSDBCSXZMTXM

$ tar zxfv mecab-ipadic-2.7.0-XXXX.tar.gz
$ cd mecab-ipadic-2.7.0-XXXX
$ ./configure --with-charset=utf8
$ make
$ sudo make install

##3: mecab-ipadic-NEologd
1,2のステップのあとに行う。

terminal
$ git clone --depth 1 https://github.com/neologd/mecab-ipadic-neologd.git
$ cd mecab-ipadic-neologd
$ ./bin/install-mecab-ipadic-neologd -n -a  # 全インストール

読み込む辞書の設定をいじる

/usr/local/etc/mecabrc
dicdir = /usr/lib/mecab/dic/mecab-ipadic-neologd

Mecabとのバインディング

python: mecab-python3
ruby: natto

terminal
$ pip install mecab-python3

##参照
Ubuntu 14.04 に Mecab と mecab-python3 をインストール
mecab-ipadic-NEologd : Neologism dictionary for MeCab
HomebrewでインストールしたMeCabの設定ファイル(mecabrc)の保存場所

0

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?