LoginSignup
0
0

More than 5 years have passed since last update.

python jupyter notebookでmecabを使用するときに覚えておくと便利なこと

Posted at

自分用

デフォルトの辞書設定

usr/local/etc/mecabrc

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

一時的に別の辞書を使いたいときは

~.ipynd
import MeCab
 mecab = MeCab.Tagger(' -d /usr/local/lib/mecab/dic/mecab-ipadic-neologd')

みたいな感じでオプションで指定

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