LoginSignup
1
1

More than 5 years have passed since last update.

Mecabのユーザ辞書に顔文字を登録する

Posted at

ユーザ辞書への登録方法

こちらを参照 → MeCab:単語の追加方法
1. 登録したい単語をcsvファイルにまとめる
2. 辞書をコンパイル
3. dicrcまたはmecabrcのuserdicにコンパイルした辞書を指定

顔文字を登録する際に注意すること

  • 顔文字内にコンマ(,)がある場合は、顔文字をダブルクオテーションで囲う
  • 例:× → ( ,,`・ ω´・),,,0,名詞,固有名詞,一般,*,*,*,( ,,`・ ω´・),*,*
  • 例:○ → "( ,,`・ ω´・)",,,0,名詞,固有名詞,一般,,*,*,"( ,,`・ ω´・)",*,*

上記を無視した場合のエラー内容

  • reading emo1.csv ... dictionary.cpp(38) [fi]
1
1
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
1
1