markov chain and mecab · GitHub #!/usr/bin/env perl use strict; use warnings; use Text::MeCab; use Algorithm::MarkovChain; use Perl6::Say; use Data::Dumper; open my $in, '<', shift or die $!; my $text = do { local $/; <$in>; }; close $in; my $mecab = Text::MeCab->new({}); my @symbols; for (my $node = $mecab->parse($text); $node; $node = $node->next) { #say $node->surface; push @symbols, $node->sur
MeCab ã«è³ãã¾ã§ã®å½¢æ ç´ è§£æå¨éçºã®æ´å²çã¯ãã¡ããã覧ãã ãã ã¡ã¼ãªã³ã°ãªã¹ã ä¸è¬ã¦ã¼ã¶åãã¡ã¼ãªã³ã°ãªã¹ã éçºè åãã¡ã¼ãªã³ã°ãªã¹ã æ°çæ å ± 2008-02-03 MeCab 0.97 ãã«ãã¹ã¬ããç°å¢ã§è¾æ¸ãéãã¨ãã®æä»å¶å¾¡ããã¾ããã£ã¦ããªãã£ããã°ã®ä¿®æ£ Windowsçã§ã¤ã³ã¹ãã¼ã«æã«è¾æ¸ã®æåã³ã¼ããæå®ã§ããããã«ãªã£ã ä¸é¨ã®ã³ã³ãã¤ã©ã§æ£ããã³ã³ãã¤ã«ã§ããªãã£ãåé¡ã®ä¿®æ£ é¨å解æã¢ã¼ããå¤æ´ããAPI ã®è¿½å (Tagger::set_partial()) ã©ãã£ã¹ã®çæã¬ãã«ãå¤æ´ããAPI ã®è¿½å (Tagger::set_lattice_level()) 温度ãã©ã¡ã¼ã¿ãå¤æ´ããAPIã®è¿½å (Tagger::set_theta()) å ¨åè£åºåã¢ã¼ããå¤æ´ããAPIã®è¿½å (Tagger::set_all_morphs()) 2007-
ã¤ã³ã¹ãã¼ã«ã¯è²ã æ¹æ³ãããããã ãã©MacPortsã§ã§ããã¿ãããªã®ã§ããã使ãã $ port search mecab mecab @0.96 (textproc, japanese) MeCab is a yet another part-of-speech and morphological analyzer. mecab-ipadic-eucjp @2.7.0-20070610 (textproc, japanese) Alternate dictionary for MeCab (ipadic/euc-jp) mecab-ipadic-sjis @2.7.0-20070610 (textproc, japanese) Alternate dictionary for MeCab (ipadic/shift_jis) mecab-ipadic-utf8 @2.7.0-2007
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}