« CRF++ 0.45 | メイン | ソートの平均要素移動距離 »

2007年01月01日

ルー語変換を MeCab だけで実現

巷で話題のルー語変換.周りにこういうしゃべり方をする人がいるからかもしれませんが, 爆笑しました

中身は,MeCab -> EDICT -> Bilingual Emacspeak だそうです. 単純な単語置換なので,MeCab を汎用テキスト変換ツールとして利用すればまったく同じことが MeCab だけで実現できます. やってることは単純で, MeCab の辞書の品詞フィールドをルー語にした辞書を作るだけです.対象のルー語がない場合は単語そのものを品詞に設定します.

通常は 「入力文字列 -> 品詞列」 の変換が行われます.上記のような辞書を作ると,品詞の部分がすべてルー語に置き換わって 「入力文字列 -> ルー語文字列」の変換が実現されます. しかも単語のつながりやすさや,出現しやすさは上記のような辞書を作っても CSV カラムの 2,3,4 カラム目に残っているので, 原理的には MeCab の解析した後にルー語に変換したものと同じになります.つまり,単純な単語置換ではなくて,日本語の文法を考慮しながらそれなりに変換してくれます.

ここに ルー語変換用の MeCab 辞書をおいておきました. ファイルを展開して
% /usr/local/libexec/mecab/mecab-dict-index
% mecab -d . < 変換したいテキスト
を実行してください.

形容詞も含めルー語独自の活用ルールをアプライしたので,オリジナルのシステムに比べさらにアグレッシブに変換します.

オリジナルテキスト
私は、特定の団体、特定の既得権を持った人たち、あるいはまた特定の考え方を持つ人たちのための政治を行うつもりはありません。毎日、額に汗して働き、家族を愛し、地域をよくしたいと願っている。そして日本の未来を信じたいと考えている普通の人たち、すべての国民の皆様のための政治をしっかりと行ってまいります。そのために、本日、「美しい国創り内閣」を組織いたしました。

MeCab版 ルー語変換
私は、スペシフィックのオーガニゼイション、スペシフィックのベスティドゥ権をホウルドゥした人たち、あるいはまたスペシフィ ックのウェイオブスィンキングをホウルドゥする人たちのためのポリティクスをパフォームするつもりはありません。エブリデイ、額に汗してワークし、ファミリーを愛し、エアリアーをよくしたいとディザイアーしている。そしてジャパンのザフィゥーチャーをビリーブしたいとコンシダーしているジェネラルの人たち、すべてのナショナルの皆様のためのポリティクスをしっかりとゴーしてまいります。そのために、トゥデイ、「ビューティフル国メイクしキャビネットゥ」をオーガニゼイションいたしました。


ルー語変換
私は、スペシフィックのオーガニゼイション、スペシフィックのベスティドゥ権を持った人たち、あるいはまたスペシフィックの考え方を持つ人たちのためのポリティクスを行うつもりはありません。毎日、額に汗して働き、家族を愛し、エアリアをよくしたいと願っている。そして日本の未来を信じたいと考えているジェネラルの人たち、すべての国民の皆様のためのポリティクスをしっかりと行ってまいります。そのために、トゥデイ、「美しい国創りキャビネットゥ」をオーガニゼイションいたしました。

投稿者 taku : 2007年01月01日 23:30

トラックバック

このエントリーのトラックバックURL:
http://chasen.org/~taku/blog/mt-tb.cgi/218

このリストは、次のエントリーを参照しています: ルー語変換を MeCab だけで実現:

» ルー語変換。 from ◆ 桃尻開発研究所 ◆beyond the 666◆
ルーとはルー大柴。 どんな言葉もルー語になるぜ。 堅苦しい言葉も、萌え~な言葉も全てが暑苦しい!! さあみんな、トゥゲザーしようぜ!! [続きを読む]

トラックバック時刻: 2007年01月22日 13:34

» this is very good from this is very good
good related article [続きを読む]

トラックバック時刻: 2007年02月17日 18:18

» Margo Maxet from Margo Maxet
Really enjoyed exploring this site. Hope to return some day [続きを読む]

トラックバック時刻: 2007年02月19日 21:55

» Trevor Andreo from Trevor Andreo
Good content and very informativity! Thanks! [続きを読む]

トラックバック時刻: 2007年02月20日 21:44

» Devolped from Taubeka
Hello all! Very nice site and very informativity! [続きを読む]

トラックバック時刻: 2007年02月20日 22:02

» Quincy Shwarz from Quincy Shwarz
Great work,webmaster,nice design! [続きを読む]

トラックバック時刻: 2007年02月21日 02:41

» Whistle from Hunting
I have just found your website great. [続きを読む]

トラックバック時刻: 2007年02月21日 15:59

» Peter from Peter
Good site with easy navigation. Thanks, i liked it. [続きを読む]

トラックバック時刻: 2007年02月21日 20:16

» Popen Jollsad from Popen Jollsad
This is a wonderful wealth of information! [続きを読む]

トラックバック時刻: 2007年02月22日 05:03

» Michael Koton from Michael Koton
Hello all! Very nice site and very informativity! [続きを読む]

トラックバック時刻: 2007年02月22日 16:28

» Nnay Nui from Nnay Nui
Hi,excellent site! Thank you! [続きを読む]

トラックバック時刻: 2007年02月23日 14:56

» Vincent Ukiler from Vincent Ukiler
Very interesting site. Perfect design and content. Thanks [続きを読む]

トラックバック時刻: 2007年02月24日 03:35

» Quincy Hrotty from Quincy Hrotty
You have many friends that post in your guestbook - it is cool! [続きを読む]

トラックバック時刻: 2007年02月24日 06:33

» Miranda Nikolson from Miranda Nikolson
Nice web site. [続きを読む]

トラックバック時刻: 2007年02月24日 06:35

» Karen Herfed from Karen Herfed
Hello all! Very nice site and very informativity! [続きを読む]

トラックバック時刻: 2007年02月24日 09:12

» Oliver Dnero from Oliver Dnero
Wow! This site is very good! [続きを読む]

トラックバック時刻: 2007年02月24日 09:25

» Kristina Fopert from Kristina Fopert
Very good site. You are doing great job. Please Keep it up [続きを読む]

トラックバック時刻: 2007年02月24日 15:26

» Accommodation from Accommodation
Hello admin, nice site! Good content, eautiful design, thank! [続きを読む]

トラックバック時刻: 2007年02月24日 21:51

» Merlin Hloed from Merlin Hloed
Hello all! Very nice site and very informativity! [続きを読む]

トラックバック時刻: 2007年02月24日 23:00

» Milen Archer from Milen Archer
Hi. Wish I did your graphics. Great work. [続きを読む]

トラックバック時刻: 2007年02月25日 04:49

» Polo Trest from Polo Trest
It's a very good site !! Very nice work, admin :) [続きを読む]

トラックバック時刻: 2007年02月25日 07:40

» environmental from calendar
Very interesting site, beautiful design, thank. [続きを読む]

トラックバック時刻: 2007年02月25日 09:24

» Alberta from Alberta
You have a great site! [続きを読む]

トラックバック時刻: 2007年02月25日 09:25

» John Sqedas from John Sqedas
Impressive webpage! I like it a lot! I'm looking forward to the next update [続きを読む]

トラックバック時刻: 2007年02月25日 09:45

» Corey Groer from Corey Groer
Keep up good work,yo have nice site! [続きを読む]

トラックバック時刻: 2007年02月25日 21:10

» Corey Groer from Corey Groer
Keep up good work,yo have nice site! [続きを読む]

トラックバック時刻: 2007年02月25日 21:16

» Edgar Kartcher from Edgar Kartcher
Your website is really wonderful and i bookmarked it. Thank your for the hard... [続きを読む]

トラックバック時刻: 2007年02月25日 22:01

» volunteer from volunteer
Very interesting site. Perfect design and content. Thanks [続きを読む]

トラックバック時刻: 2007年02月25日 22:01

» Corey Jokket from Corey Jokket
very nice site!!! good luck!!! [続きを読む]

トラックバック時刻: 2007年02月25日 22:52

» articulation from williamsburg
nice project with good design and pictures...best wishes...;-)) [続きを読む]

トラックバック時刻: 2007年02月25日 23:08

» Rita Holy from Rita Holy
Good content and very informativity! Thanks! [続きを読む]

トラックバック時刻: 2007年02月25日 23:14

» Henry Glade from Henry Glade
Nice site? thanks ! [続きを読む]

トラックバック時刻: 2007年02月25日 23:20

» Margo Froler from Margo Froler
Great work,webmaster,nice design! [続きを読む]

トラックバック時刻: 2007年02月26日 03:03

» scrapbooking from scrapbooking
Fantastic website you have here. [続きを読む]

トラックバック時刻: 2007年02月26日 03:24

» Bee Jay from Bee Jay
Great website - I appreciate the variety of articles. They're like torpedos f... [続きを読む]

トラックバック時刻: 2007年02月27日 10:53

» Wendyj Kristinaf from Wendyj Kristinaf
Very good site, greate content !! [続きを読む]

トラックバック時刻: 2007年02月27日 13:00

» Content Sara from Content Sara
Hello admin, nice site! Good content, eautiful design, thank! [続きを読む]

トラックバック時刻: 2007年02月27日 13:09

» Wendy Gedsa from Wendy Gedsa
Hello admin, nice site ! Good content, eautiful design, thank ! [続きを読む]

トラックバック時刻: 2007年02月28日 09:11

» Wendy Gedsa from Wendy Gedsa
Hello admin, nice site ! Good content, eautiful design, thank ! [続きを読む]

トラックバック時刻: 2007年02月28日 09:14

» Wendy Gedsa from Wendy Gedsa
Hello admin, nice site ! Good content, eautiful design, thank ! [続きを読む]

トラックバック時刻: 2007年02月28日 09:21

» Swatch from Swatch
Very good site keep it up! [続きを読む]

トラックバック時刻: 2007年02月28日 09:21

» Roberto Deftyh from Roberto Deftyh
Very good site. You are doing great job. Please Keep it up....! [続きを読む]

トラックバック時刻: 2007年02月28日 12:21

» Alternative from Alternative
Excellent site. It was pleasant to me. [続きを読む]

トラックバック時刻: 2007年02月28日 12:22

» Dermatologist from Dermatologist
Hi all! I really like this great site! [続きを読む]

トラックバック時刻: 2007年03月01日 07:23

» Wendy Berdy from Wendy Berdy
ery good site. You are doing great job. Please Keep it up [続きを読む]

トラックバック時刻: 2007年03月01日 07:33

» Wendy Berdy from Wendy Berdy
ery good site. You are doing great job. Please Keep it up [続きを読む]

トラックバック時刻: 2007年03月01日 07:40

» Soldiers from Soldiers
Wow! This site is very good! [続きを読む]

トラックバック時刻: 2007年03月01日 08:52

» Jak Miller from Jak Miller
Hi,excellent site! Thank you! [続きを読む]

トラックバック時刻: 2007年03月01日 09:31

» Davidg Yrieda from Davidg Yrieda
Very good site. You are doing great job. [続きを読む]

トラックバック時刻: 2007年03月01日 09:37

» Graham Maxert from Graham Maxert
Yo have nice site, admin! keep up good work man! [続きを読む]

トラックバック時刻: 2007年03月01日 11:37

» David Kols from David Kols
Yo have nice site, admin! keep up good work man! [続きを読む]

トラックバック時刻: 2007年03月02日 06:08

» Gaultheria from Gaultheria
Excellent site. It was pleasant to me. [続きを読む]

トラックバック時刻: 2007年03月02日 09:05

» Margo Verf from Margo Verf
Great work,webmaster,nice design! [続きを読む]

トラックバック時刻: 2007年03月02日 09:57

» Trevor Defter from Trevor Defter
I love you so much! Great place to visit! [続きを読む]

トラックバック時刻: 2007年03月02日 10:10

» Ricko Luks from Ricko Luks
I have just found your website great! [続きを読む]

トラックバック時刻: 2007年03月03日 04:15

» Roberto Cert from Roberto Cert
Very interesting site, beautiful design, thank. [続きを読む]

トラックバック時刻: 2007年03月03日 05:13

» Krist Sandy from Krist Sandy
Hello all! Very nice site and very informativity! [続きを読む]

トラックバック時刻: 2007年03月03日 07:03

» Richard Green from Richard Green
Nice site with good design,Keep it up! [続きを読む]

トラックバック時刻: 2007年03月03日 07:37

» John Hryted from John Hryted
Hello all! Very nice site and very informativity. [続きを読む]

トラックバック時刻: 2007年03月03日 08:40

» Sara Breatly from Sara Breatly
It's a very good site !! Very nice work, admin :) [続きを読む]

トラックバック時刻: 2007年03月03日 09:09

» Shwarz Dester from Shwarz Dester
I love you so much! Great place to visit! [続きを読む]

トラックバック時刻: 2007年03月04日 07:23

» Shwarz Dester from Shwarz Dester
I love you so much! Great place to visit! [続きを読む]

トラックバック時刻: 2007年03月04日 07:24

» Popen Litteg from Popen Litteg
You have many friends that post in your guestbook [続きを読む]

トラックバック時刻: 2007年03月04日 08:30

» Kristina Ilasa from Kristina Ilasa
Excellent site. It was pleasant to me [続きを読む]

トラックバック時刻: 2007年03月05日 00:40

» Romanson from Romanson
Thanks the author for this site,has very much liked! Good luck! [続きを読む]

トラックバック時刻: 2007年03月05日 00:51

» Davis Mert from Davis Mert
This is a wonderful wealth of information! [続きを読む]

トラックバック時刻: 2007年03月05日 06:11

» Jesus from Jesus
Excellent site - do keep up the good work. [続きを読む]

トラックバック時刻: 2007年03月05日 06:50

» Merlin Jorens from Merlin Jorens
I have just found your website great [続きを読む]

トラックバック時刻: 2007年03月06日 03:35

» Corey Lopata from Corey Lopata
Hello,admin!Your site is fantastic! [続きを読む]

トラックバック時刻: 2007年03月06日 03:48

» Davis Dolls from Davis Dolls
Nice site with good design,Keep it up [続きを読む]

トラックバック時刻: 2007年03月06日 05:08

» Travis Gloert from Travis Gloert
I love you so much! Great place [続きを読む]

トラックバック時刻: 2007年03月06日 05:16

» Andrew Kifed from Andrew Kifed
I love you so much! Great place to visit [続きを読む]

トラックバック時刻: 2007年03月07日 04:36

» Henry from Henry
We found this site very informative must site for tube people. [続きを読む]

トラックバック時刻: 2007年03月08日 21:44

» Charly from Charly
I have been using the Internet for years,and feel that your Site is just outs... [続きを読む]

トラックバック時刻: 2007年03月08日 23:22

» Jefferson from Jefferson
Very interesting and beautiful site. It is a lot of helpful information. Thanks! [続きを読む]

トラックバック時刻: 2007年03月09日 02:17

» Joan from Joan
Site is interesting and useful. Has come, was surprised with quantity of the ... [続きを読む]

トラックバック時刻: 2007年03月09日 03:42

» Buy 200 tramadol saturday delivery. from Tramadol buy.
Buy tramadol online. Buy tramadol. Tramadol amp buy valium online medications... [続きを読む]

トラックバック時刻: 2007年03月10日 00:41

» payday loans from payday loans
your blog is so important. you are the new media [続きを読む]

トラックバック時刻: 2007年03月11日 18:27

» soma from soma
your blog is so important. you are the new media [続きを読む]

トラックバック時刻: 2007年03月11日 19:18

» Mary Ganly from Mary Ganly
You did good mate, thanks for keeping the blues alive. Just like the blues yo... [続きを読む]

トラックバック時刻: 2007年03月12日 00:31

» Kenny Boyde from Kenny Boyde
First visit to your site and think its tops; Have just returned from Orlando ... [続きを読む]

トラックバック時刻: 2007年03月12日 15:58

» Kenny Boyde from Kenny Boyde
First visit to your site and think its tops; Have just returned from Orlando ... [続きを読む]

トラックバック時刻: 2007年03月12日 16:07

» Sofi from Sofi
Helo there! Been visiting for years , a great site [続きを読む]

トラックバック時刻: 2007年03月12日 17:39

» ellen patrick from ellen patrick
fantastic web site [続きを読む]

トラックバック時刻: 2007年03月12日 19:06

» Laura from Laura
this is one great website, it must have taken you a while to put it all toget... [続きを読む]

トラックバック時刻: 2007年03月12日 20:32

» Cristie from Cristie
Pleasure viewing your web site; Thank you for putting it out there for us all... [続きを読む]

トラックバック時刻: 2007年03月12日 22:03

» heidi gerhardt from heidi gerhardt
Just wanted to say that i love the website and links; Very pleasurable source... [続きを読む]

トラックバック時刻: 2007年03月12日 23:37

» heidi gerhardt from heidi gerhardt
Just wanted to say that i love the website and links; Very pleasurable source... [続きを読む]

トラックバック時刻: 2007年03月12日 23:43

» viagra from viagra
great site, nice design. [続きを読む]

トラックバック時刻: 2007年03月14日 13:39

» cialis from cialis
very nice site! [続きを読む]

トラックバック時刻: 2007年03月14日 16:52

» Holyleons from Holyleons
Very interesting site, beautiful design, thank. [続きを読む]

トラックバック時刻: 2007年03月15日 16:20

» Intermediary from Intermediary
very nice site!!! good luck!!! [続きを読む]

トラックバック時刻: 2007年03月16日 13:29