ã¯ããã«
æªæ¥ã®ãé¨å±ãã¤ãããããã¸ã§ã¯ã第ï¼å¼¾ã§ããã¨ã¯è¨ã£ã¦ãå°å³ãªã¨ããã§ããï¼ã§ãéè¦ã§ãï¼ã
前回ãJulius ã使ã£ã¦é³å£°èªèãããã¦ã¿ã¾ãããããæ¸ããããã«èªè精度ãæ¨æºããçµæã ã£ãã®ã§ãæ¹åãã¹ã第7章 言語モデルãåèã«ãã¦è¨è¿°ææ³ãæ¸ãã¦ã¿ã¾ããã
ãæè¦ããã ãã£ãæ¹ã
ãããã¨ããããã¾ãï¼
è¨è¿°ææ³é³å£°èªèãããã試ãã¦ã¿ã
æªæ¥ãªãé¨å±ã®å é§è d:id:rti7743 ããã«æãã¦ãããã¾ããã
@hecomi Juliusè¨è¿°ææ³é³å£°èªèå®è¡ãããã ã£ãããªããããã«ã¼ã«ãã¼ã¹ã§ã®ããããµã³ãã«ã ã£ãã¯ãã§ããããåããã¦ã¿ãã¨ãããã¨æãã¾ããURL
2012-01-12 23:51:25 via web to @hecomi
./bin/julius -C hmm_mono.jconf -gram SampleGrammars/railroad/railroad -input mic -charconv EUC-JP UTF-8
railroad ã¯ã<é§ å>ãã<é§ å>ã¾ã§ãã¨ããå ¥åãåãåãè¨è¿°ææ³ãæ¸ãã¦ããããã®ææ³ã«ç¹åããé³å£°èªèããã¦ããã¾ãã試ãã«ãä»å°ããé·éã¾ã§ãã¨ãè¨ã£ã¦ã¿ãã°ãããããã®ç²¾åº¦ã§ææã®çµæãå¾ãããã¨æãã¾ãã
èªåã§ææ³ãä½ã£ã¦ã¿ã
èªåã§å®¶é»ãæä½ããããã®ææ³ãæ¸ãã¦ã¿ã¾ãã第7章 言語モデルãåèã«ãã¦æ¸ãã¦ã¿ã¾ããã
kaden.grammar
S : NS_B KADEN_ PLEASE NS_E KADEN_ : KADEN KADEN_ : KADEN WO
kaden.voca
% KADEN ãã¬ã t e r e b i é»æ° d e n k i % WO ã w o % PLEASE ã¤ã㦠t u k e t e æ¶ã㦠k e s i t e åæ¿ k i r i k a e 次 t u g i å m a e % NS_B <s> silB % NS_E <s> silE
解説
ã¾ããgrammar ããæ¸ãå§ãã¾ããæåã«ã
S : NS_B KADEN_ PLEASE NS_E
ã®å½¢ã§ã©ããªææ³ãèªã¿è¾¼ã¾ãããããå®ç¾©ãã¾ããKADEN_ ã¨ã PLEASE ã¨ãã¯èªåã§é©å½ã«æåãå½ã¦è¾¼ã¿ã¾ããåãªããã¬ã¼ã¹ãã«ãã§ãã
次ã«ãã®é©å½ã«å½ã¦è¾¼ãã æåãè¤æ°ãã¿ã¼ã³ã«åå²ããå ´åãç¶ãè¡ã§ã
KADEN_ : KADEN KADEN_ : KADEN WO
ã¨ãã£ãããã«å®ç¾©ãã¾ãããã®æç¹ã§ã¤ã¡ã¼ã¸ã¨ãã¦ã¯æ¬¡ã®ããã«ããªã¼æ§é ã«ãªã£ã¦ãããããªæãã§ãã
NS_B KADEN_ + KADEN + KADEN WO PLEASE NS_E
KADEN_ 㯠KADEN ããã㯠KADEN WO ã¨ããå½¢ã«ãªããï¼ã¨ãããã¨ã§ãã
次㫠voca ãã¡ã¤ã«ãä½ãã¾ããããã§ã¯å
ã»ã©ã® grammar ãã¡ã¤ã«ã®æ«ç«¯ã«ä½ç½®ãããã¬ã¼ã¹ãã«ãã«ã¤ãã¦ãã©ããªè¨èãå½ããããå®ç¾©ãã¾ããã¤ã¾ãã
NS_B * KADEN_ + KADEN * + KADEN WO * PLEASE * NS_E *
*ãã¤ãããã¤ãã§ããããã§ã¯è¤æ°ã®è¨èãæå®ãããã¨ãã§ããä¾ãã° KADEN ã¯ã
% KADEN ãã¬ã t e r e b i é»æ° d e n k i
ãããªå½¢ã«ãªãããã§ããä»ã®ãã®ãå
¨é¨æ¸ãã° kaden.voca ã®å®æã§ããã¡ãªã¿ã« silB ã silE 㯠silent Begin 㨠silent End ã ã¨æãã¾ããå¤åã
ãã®ï¼ã¤ã®ãã¡ã¤ã«ã§æ¬¡ã®ãããªå®ç¾©ãåºæ¥ãããã§ããã
NS_B + (é³ç¡) KADEN_ + KADEN + ãã¬ã + é»æ° + KADEN WO + ãã¬ã ã + é»æ° ã PLEASE + ã¤ã㦠+ æ¶ã㦠+ åæ¿ + 次 + å NS_E + (é³ç¡)
ã³ã³ãã¤ã«
ä½ã£ã kaden.grammar 㨠kaden.voca ãã³ã³ãã¤ã«ãã¾ãã
./bin/mkdfa.pl kaden
ãã㧠julius ã«ä¸ããããã® kaden.dfa 㨠kaden.dict ãçæããã¾ãã
åããã¦ã¿ã
æ®éã«è©¦ãå ´åã«ã¯ã
./bin/julius -C hmm_mono.jconf -gram kaden -input mic
ã§OKã§ããUTF-8 ã§ç·¨éãã¦ããã®ã§ charconv ãªãã·ã§ã³ãä»ããå¿ è¦ã¯ããã¾ãããmodule ã¢ã¼ãã§åããã¦ååä½æããããã°ã©ã ã§ã¢ã¯ã»ã¹ããçµæãåãåºãã¦ã¿ã¾ãã
ãµã¼ãå´
./bin/julius -C hmm_mono.jconf -gram kaden -input module
ã¯ã©ã¤ã¢ã³ãå´
./julius_client <s>é»æ°ã¤ãã¦<s> <s>é»æ°ã¤ãã¦<s> <s>é»æ°ã¤ãã¦<s> <s>é»æ°ã¤ãã¦<s> <s>ãã¬ãã¤ãã¦<s> <s>ãã¬ãåæ¿<s> <s>ãã¬ãã¤ãã¦<s> <s>ãã¬ãæ¶ãã¦<s> <s>ãã¬ã次<s> <s>ãã¬ãã¤ãã¦<s> <s>é»æ°æ¬¡<s> <s>é»æ°ã¤ãã¦<s> <s>é»æ°å<s> <s>é»æ°æ¶ãã¦<s>
ã¾ã 誤èªèãå¤ãã§ãâ¦ï¼#^Ï^ï¼ï¾ï¾ï½·ï¾ï¾ï½·ããæ¶ãã¦ãã£ã¦ãã£ã¦ãã®ã«ãã¤ãã¦ãã«ãªãããããã¡ãã£ã¨ãªãã ãã©â¦ã
ãã¨ããããèªèããªããã ãã©ä½ã§ãªãã§ãããã
追è¨ï¼2012/01/14ï¼
ããããèªèããªãåé¡ã¯ãgrammar 㨠voca ã次ã®ããã«ãããã¨ã§è§£æ±ºãã¾ããã
kaden.grammar
S : NS_B KADEN_ NOISE PLEASE NS_E KADEN_ : KADEN KADEN_ : KADEN WO
kaden.voca
% KADEN ãã¬ã t e r e b i é»æ° d e n k i % WO ã w o % PLEASE ã¤ã㦠t u k e t e æ¶ã㦠k e s i t e åæ¿ k i r i k a e 次 t u g i å m a e % NOISE <sp> sp % NS_B <s> silB % NS_E <s> silE
NOISE ãå ¥ãã¦ã¿ãã°è¯ãã£ãããã§ãã