medab: debian package is configured as default(EUC)

deb1:~# apt-get install mecab
Reading package lists… Done
Building dependency tree… Done
The following extra packages will be installed:
  libmecab1 mecab-jumandic mecab-utils
The following NEW packages will be installed:
  libmecab1 mecab mecab-jumandic mecab-utils
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 14.5MB of archives.
After unpacking 86.8MB of additional disk space will be used.
Do you want to continue [Y/n]?

 

Get:1 http://cdn.debian.or.jp etch/main libmecab1 0.93-1 [294kB]
Get:2 http://cdn.debian.or.jp etch/main mecab-utils 0.93-1 [7046B]
Get:3 http://cdn.debian.or.jp etch/main mecab-jumandic 5.1+20051121-1 [14.1MB]
Get:4 http://cdn.debian.or.jp etch/main mecab 0.93-1 [37.7kB]
Fetched 14.5MB in 2m3s (117kB/s)
Selecting previously deselected package libmecab1.
(Reading database … 40965 files and directories currently installed.)
Unpacking libmecab1 (from …/libmecab1_0.93-1_i386.deb) …
Selecting previously deselected package mecab-utils.
Unpacking mecab-utils (from …/mecab-utils_0.93-1_i386.deb) …
Selecting previously deselected package mecab-jumandic.
Unpacking mecab-jumandic (from …/mecab-jumandic_5.1+20051121-1_all.deb) …
Selecting previously deselected package mecab.
Unpacking mecab (from …/archives/mecab_0.93-1_i386.deb) …
Setting up libmecab1 (0.93-1) …

Setting up mecab-utils (0.93-1) …
Setting up mecab-jumandic (5.1+20051121-1) …
Compiling Juman dictionary for Mecab.  This takes long time…
reading /usr/share/mecab/dic/juman/unk.def … 37
emitting double-array: 100% |###########################################|
reading /usr/share/mecab/dic/juman/Special2.csv … 8
reading /usr/share/mecab/dic/juman/Prefix.csv … 75
reading /usr/share/mecab/dic/juman/Special.csv … 8
reading /usr/share/mecab/dic/juman/ContentW.csv … 483161
reading /usr/share/mecab/dic/juman/Noun.koyuu.csv … 29805
reading /usr/share/mecab/dic/juman/Noun.hukusi.csv … 74
reading /usr/share/mecab/dic/juman/Noun.keishiki.csv … 10
reading /usr/share/mecab/dic/juman/Postp.csv … 104
reading /usr/share/mecab/dic/juman/Noun.suusi.csv … 46
reading /usr/share/mecab/dic/juman/Demonstrative.csv … 3
reading /usr/share/mecab/dic/juman/Suffix.csv … 1163
reading /usr/share/mecab/dic/juman/AuxV.csv … 421
reading /usr/share/mecab/dic/juman/Assert.csv … 30
reading /usr/share/mecab/dic/juman/Rengo.csv … 916
emitting double-array: 100% |###########################################|
emitting matrix      : 100% |###########################################|

done!

Setting up mecab (0.93-1) …

 

hide@deb1:~$ which mecab
/usr/bin/mecab

hide@deb1:~$ man mecab

MECAB(1)                             MeCab                            MECAB(1)

NAME
       mecab – manual page for mecab of 0.92

SYNOPSIS
       mecab [options] files

DESCRIPTION
       MeCab: Yet Another Part-of-Speech and Morphological Analyzer

COPYRIGHT
       Copyright (C) 2001-2006 Taku Kudo
       Copyright (C) 2004-2006 Nippon Telegraph and Telephone Corporation

       -r, –rcfile=FILE
              use FILE as resource file

       -d, –dicdir=DIR
              set DIR  as a system dicdir

       -u, –userdic=FILE
              use FILE as a user dictionary

       -l, –lattice-level=INT
              lattice information level (default 0)

       -a, –all-morphs
              output all morphs (default false)

       -O, –output-format-type=TYPE
              set output format type (wakati,none,…)

       -p, –partial
              partial parsing mode

       -F, –node-format=STR
              use STR as the user-defined node format

       -U, –unk-format=STR
              use STR as the user-defined unk format

       -B, –bos-format=STR
              use STR as the user-defined bos format

       -E, –eos-format=STR
              use STR as the user-defined eos format

       -b, –input-buffer-size=INT
              set input buffer size (default BUF_SIZE)

       -C, –allocate-sentence
              allocate new memory for input sentence

       -N, –nbest=INT
              output N best results  (default 1)

       -t, –theta=FLOAT
              set temparature parameter theta (default 0.75)

       -o, –output=FILE
              set the output file name

       -v, –version
              show the version and exit.

       -h, –help
              show this help and exit.

mecab of 0.92                      July 2006                          MECAB(1)

 

hide@deb1:~$ mecab -h
MeCab: Yet Another Part-of-Speech and Morphological Analyzer

Copyright (C) 2001-2006 Taku Kudo
Copyright (C) 2004-2006 Nippon Telegraph and Telephone Corporation

Usage: mecab [options] files
-r, –rcfile=FILE              use FILE as resource file
-d, –dicdir=DIR               set DIR  as a system dicdir
-u, –userdic=FILE             use FILE as a user dictionary
-l, –lattice-level=INT        lattice information level (default 0)
-a, –all-morphs               output all morphs (default false)
-O, –output-format-type=TYPE  set output format type (wakati,none,…)
-p, –partial                  partial parsing mode
-F, –node-format=STR          use STR as the user-defined node format
-U, –unk-format=STR           use STR as the user-defined unk format
-B, –bos-format=STR           use STR as the user-defined bos format
-E, –eos-format=STR           use STR as the user-defined eos format
-x, –unk-feature=STR          use STR as the feature for unknown word
-b, –input-buffer-size=INT    set input buffer size (default BUF_SIZE)
-C, –allocate-sentence        allocate new memory for input sentence
-N, –nbest=INT                output N best results  (default 1)
-t, –theta=FLOAT              set temparature parameter theta (default 0.75)
-o, –output=FILE              set the output file name
-v, –version                  show the version and exit.
-h, –help                     show this help and exit.

 

hide@deb1:~$ mecab test.txt.euc  -U %M | nkf -w
こちら  名詞,普通名詞,*,*,こちら,こちら,代表表記:こちら
より    助詞,格助詞,*,*,より,より,*
メールアドレス  名詞,地名,*,*,*,*,*
を      助詞,格助詞,*,*,を,を,*
入力    名詞,サ変名詞,*,*,入力,にゅうりょく,代表表記:入力
して    動詞,*,サ変動詞,タ系連用テ形,する,して,付属動詞候補(基本) 代表表記:す る
ご      接頭辞,名詞接頭辞,*,*,ご,ご,代表表記:御
送信    名詞,サ変名詞,*,*,送信,そうしん,代表表記:送信
下さい  動詞,*,子音動詞ラ行イ形,命令形,下さる,ください,付属動詞候補(タ系) 代表表記:下さる
。      特殊,句点,*,*,。,。,*
紹介    名詞,サ変名詞,*,*,紹介,しょうかい,代表表記:紹介
制      名詞,普通名詞,*,*,制,せい,漢字読み:音 代表表記:制
な      判定詞,*,判定詞,ダ列基本連体形,だ,な,*
ので    助動詞,*,ナ形容詞,ダ列タ系連用テ形,のだ,ので,*
折り返し        動詞,*,子音動詞サ行,基本連用形,折り返す,おりかえし,代表表記:折り返す
招待    名詞,サ変名詞,*,*,招待,しょうたい,代表表記:招待
状      名詞,普通名詞,*,*,状,じょう,漢字読み:音 修飾(ニ格) 代表表記:状
メール  名詞,普通名詞,*,*,メール,めーる,代表表記:メール
を      助詞,格助詞,*,*,を,を,*
送り    動詞,*,子音動詞ラ行,基本連用形,送る,おくり,代表表記:送る
ます    接尾辞,動詞性接尾辞,動詞性接尾辞ます型,基本形,ます,ます,*
。      特殊,句点,*,*,。,。,*
EOS

 

hide@deb1:~$ nkf -w  test.txt.euc
こちらよりメールアドレスを入力してご送信下さい。紹介制なので折り返し招待状メールを送ります。
hide@deb1:~$ mecab test.txt.euc  -U %M -F "%pS%f[5]" -E "\n"| nkf -w

こちらよりメールアドレスをにゅうりょくしてごそうしんください。しょうかいせいなのでおりかえししょうたいじょうめーるをおくります。

カテゴリー: 未分類 パーマリンク

コメントを残す

以下に詳細を記入するか、アイコンをクリックしてログインしてください。

WordPress.com ロゴ

WordPress.com アカウントを使ってコメントしています。 ログアウト / 変更 )

Twitter 画像

Twitter アカウントを使ってコメントしています。 ログアウト / 変更 )

Facebook の写真

Facebook アカウントを使ってコメントしています。 ログアウト / 変更 )

Google+ フォト

Google+ アカウントを使ってコメントしています。 ログアウト / 変更 )

%s と連携中