sumom****@users*****
sumom****@users*****
2008年 10月 2日 (木) 17:23:45 JST
Index: julius4/gramtools/00readme-ja.txt diff -u julius4/gramtools/00readme-ja.txt:1.1.1.1 julius4/gramtools/00readme-ja.txt:1.2 --- julius4/gramtools/00readme-ja.txt:1.1.1.1 Fri Sep 28 11:50:55 2007 +++ julius4/gramtools/00readme-ja.txt Thu Oct 2 17:23:45 2008 @@ -8,255 +8,5 @@ gram2sapixml Julian `®Ì¶@ð SAPI XML ¶@ÉÏ··éXNvg dfa_determinize DFAè»c[ -====================================================================== - RpC - -efBNgÌ Julius ðCXg[·é±ÆÅC -{c[Qà©®IÉRpCECXg[³êÜ·D - -{c[QÌÝðRpC·éêÌû@ðȺÉྵܷD -RpCÉÍ Julius ÌCuÌ\[XªKvÅ·D -ºLÌà¾ÍC{fBNgª Julius Ì\[Xc[ÌºÉ é±Æð -OñƵĢܷD - - 0) RpC¨æÑÀsÉÍCȺÌc[ÆCuªKvÅ·D - - Eperl (ver.5) - EGNU bison - EGNU flex - EGNU readline Cu - Eiconv - Eperl Ì JcodeW [ - - 1) efBNgÅ julius ðRpC·é - iCXg[͵ÈÄæ¢j - - % cd .. - % ./configure - % make - % cd gramtools - - 2) {fBNgÅ configure Æ make ðÀs·éD - - % ./configure - % make - - 4) oãªÁ½ÀsoCið "make install" Å /usr/local/bin É - CXg[·éD - - % make install - - - -====================================================================== -====================================================================== -====================================================================== -ȺÍ}j AÅ·D - - -====================================================================== - mkdfa.pl --- ¶@RpC - - mkdfa.pl Í Julian p̶@RpCÅ·DLq³ê½¶@t@C. -grammar Æêbt@C .voca ©ç JulianpÌ DFA ÆF¯«ð¶¬µÜ·D - - ^¦é¶@ͳK¶@ÌNXÅ é±ÆªKvÅ·D - tH[}bgÌÚ×ÍÊrhL g𲺳¢D - - mkdfa.plÌg¢ûÍCȺÌæ¤É .grammar ¨æÑ .vocat@CÌv -tBbNXðøƵÄ^¦Ü·D¶¬³ê½et@CÍCãLt@CÆ -¯¶fBNgÉi[³êÜ·D - ------------------------------------------------------------- - ÀsáF../sample_grammars/vfr/vfr.{grammar,voca}É뵀 - - % mkdfa.pl ../sample_grammars/vfr/vfr - - Æ·éÆ ../sample_grammars/vfr/vfr.{dfa,dict,term} ª¶¬³êéD ------------------------------------------------------------- - - àÅÍCÇÝñ¾¶@è`©çNFA𶬵C»êðDFAÉÏ··éÆÆ -àÉŬ»ðsȢܷD.dfa t@CÉÍJeSPÊÌ\¶K¥ªC. -dict t@CÉÍJeS²ÆÌo^êbƻ̹̫ª¶¬³êÜ·D - - ¶¬³ê½ .dfa t@CÅÍüÍV{ÍJeSÌIDÆÈèÜ·D -JeSIDÆ .grammar àÅÌJeS¼ÌÎÍRpCÉ .term t@ -CÉ«o³êÜ·D±Ìt@CÍ generate â nextword ÈÇÅgp³ -êÜ·ÌÅCcµÄ¨¢Äº³¢D - - mkdfa ÌÀÌÍCRpC{ÌÌ mkfaC¨æÑÀsXNvg mkdfa.pl -ÌQÂÌvO©çÈèÜ·DÊíÍ mkdfa.pl ©çN®µÄ¾³¢D - - eüÍEoÍt@CÌ`®ÌÚ×É¢ÄÍCÊðQƵĺ³¢D - - -====================================================================== - dfa_minimize --- DFAŬ»c[ - - DFA ðLÀI[g}gÌŬ»ASYÉ]ÁÄC -¿ÈŬ»ÌDFAÉÏ·µÜ·D - -±Ìc[Í mkdfa.pl Å DFA 𶬷éÛÉ©®IÉÄÑo³êÜ·D -ù¶Ì DFA ðŬ»ÌÝs¤êͺLÌvÌÅgÁľ³¢D - - R}hCÅüÍÆ·éDFAÌt@C¼ðwèµÜ·DwèªÈ¢ -êÍWüÍ©çÇÝÝÜ·DܽCoÍ·éDFAt@Cð -"-o t@C¼" ÅwèÅ«Ü·DwèªÈ¢êÍWoÍÖo͵ܷD ------------------------------------------------------------- - gpá1: - - % dfa_minimize vfr.dfa -o vfr-min.dfa - - gpá2: - - % cat vfr.dfa | dfa_minimize > vfr-min.dfa - ------------------------------------------------------------- - - -====================================================================== - generate --- ¶_¶¬c[ - - ¶@É]ÁĶð_ɶ¬µÜ·Dñ¶ð¶¬iójµÈ¢©`Fb -N·é±ÆªÅ«Ü·D - - ÀsÉÍ .dfa, .dict, .term ªKvÅ·D ç©¶ß mkdfa.pl Å -¶¬µÄ¨¢Äº³¢D - ------ Àsá ------------------------------------------- - % bin/generate ../sample_grammars/vfr/vfr <-- üÍ - Reading in dictionary...done - Reading in DFA grammar...done - Mapping dict item <-> DFA terminal (category)...done - Reading in term file (optional)...done - 42 categories, 99 words - DFA has 135 nodes and 198 arcs - ----- - silB âßÜ· silE - silB I¹µÜ· silE - silB Vc ð X[c Æ êµÄ º³¢ silE - silB X[c ð Jb^[ Æ ¯¶ F É êµÄ º³¢ silE - silB ð·µÄ º³¢ silE - silB ±ê ð o¦Ä¨¢Ä º³¢ silE - silB o¦Ä¨¢Ä º³¢ silE - silB ßÁÄ º³¢ silE - silB X[c ð Vc Æ êµÄ º³¢ silE - silB ã ð ò É µÄ º³¢ silE - % --------------------------------------------------------- -IvV "-n num" ÅC¶¬·é¶ðwèÅ«Ü·DftHgÍ10Å·D -IvV "-t" ÅPêÌãíèÉJeS¼Åo͵ܷ (.term¶Ý)D - - -====================================================================== - accept_check --- PêñÌó/ñó`FbNc[ - - ¶Ìó^ñóð»è·éc[Å·D¶ÍWüͩ窩¿«³ê -½PêñƵÄ^¦éKvª èÜ·Dgp·é¶@Ͷ@ÍOÉ mkdfa.pl -É©¯Ä .dfa, .dict, .term 𶬵Ĩ¢Äº³¢D - - Jo[µ½¢transcriptionðCt@CÉÜÆßĢĨ¢ÄC»êð -accept_check ÌWüÍÉ^¦é±ÆÅCÚI̶ªóÂ\©Ç¤©ð -ob`IÉ`FbNÅ«Ü·D - - mkdfa.plƯ¶vtBbNXðR}høƵÄ^¦ÄN®µÜ·D -.dfa, .dict, .termt@CðÇݱñ¾ãC^¦çê½transcriptÉ뵀 - Eüͳê½transcriptimF̽ßj - EãLðC»ÌPêÌ®·éJeS¼ÉÏ·µ½àÌ - Eaccepted / rejected -ðo͵ܷD - - transcriptÍPêÌoͶñ(.vocaÌæ1tB[h)ðóÅæØÁÄ^ -¦Ü·DÅÆÅãÉͽÌê silB, silE ªKvÅ é±ÆÉCð¯ -ĺ³¢Dܽ¶Ì sp ÍtranscriptÉÜßȢž³¢DܽCú{ê -Åtranscriptð^¦éêÍC.vocaƯ¶¿R[hÅ^¦È¯ê΢¯È -¢_Éàӵľ³¢D - ----- Àsá --------------------------------------------- - % bin/accept_check ../sample_grammars/vfr/vfr <-- üÍ - Reading in dictionary...done - Reading in DFA grammar...done - Mapping dict item <-> DFA terminal (category)...done - Reading in term file (optional)...done - 42 categories, 99 words - DFA has 135 nodes and 198 arcs - ----- - please input word sequence>silB É µÄ º³¢ silE <-- üÍ - wseq: silB É µÄ º³¢ silE - cate: NS_B COLOR_N (NI|NI_AT) SURU_V KUDASAI_V NS_E - accepted - please input word sequence> ---------------------------------------------------------- - -êbɯê\LÌPꪡ¶ÝµJeSÌðßÉB«ª éêC -accept_checkÍÂ\ÈSÄÌgÝí¹ðµÜ·(ãLÀsáÌuÉv)D - -ȨCN®É "-t" IvVð¯éÆCPê¼ÅÈJeS¼ðó¯ -t¯éæ¤ÉÈèÜ·D±ÌêCeJeSÌÅÌPêªJeSðã\ -·éPêƵÄIð³êÜ·D - - -====================================================================== - nextword --- Pê\ª`FbNc[iaccept_checkÌ@\Åj - - ^¦ç꽪¶ÉεÄC¶@ãÚ±µ¤éPêÌWðo͵ܷD - - ª¶üÍÅÍqXgQÆâPê¼/JeS¼Ì⮪s¦Ü·D - - ¶@ÍOÉ mkdfa.pl É©¯Ä .dfa, .dict, .term 𶬵Ĩ¢Äº³¢D - - IÓI ª¶Ítü«(right-to-left)ÉüêéKvª èÜ·D±êÍ -Julian ªæ2pXÅͶÍÌö©çæªÉü©ÁÄTõðs¤½ßCPê\ -ªà»ÌûüÅs¤Kvª é©çÅ·D - ----- Àsá --------------------------------------------- - % bin/nextword ../sample_grammars/vfr/vfr <-- üÍ - Reading in dictionary...done - Reading in DFA grammar...done - Mapping dict item <-> DFA terminal (category)...done - Reading in term file (optional)...done - 42 categories, 99 words - DFA has 135 nodes and 198 arcs - ----- - wseq > É µÄ º³¢ silE <-- üÍ - [wseq: É µÄ º³¢ silE] - [cate: (NI|NI_AT) SURU_V KUDASAI_V NS_E] - PREDICTED CATEGORIES/WORDS: - KEIDOU_A (hè n¡ ) - BANGOU_N (Ô ) - HUKU_N ( ) - PATTERN_N (`FbN cÈ ¡È ...) - GARA_N (¿ ) - KANZI_N (´¶ ) - IRO_N (F ) - COLOR_N (Ô ò © ...) - wseq > --------------------------------------------------------- - -transcriptüÍÉÍCÊíÌemacsÌsÒWìÉÁ¦ÄC -ȺÌL[ªgpÅ«Ü·D - - TAB Pê¼Ìâ®D"-t"ÅN®ÍJeS¼Ìâ®D - ½ñ©·Æóâêð\¦D - Ctrl-L â®óâÌ}ü(·½ÑÉØèÖíé)D - Ctrl-PCCtrl-N qXgQÆD - -±Ì¼ÌìÉ¢ÄÍ readline CuÌhL gðQƵľ³¢D - -====================================================================== - gram2sapixml --- Julian `®Ì¶@ð SAPI XML ¶@ÉÏ··éXNvg - -gram2sapixml/gram2sapixml.txt ð²¾³¢D - -====================================================================== - dfa_determinize --- DFA ðè·éc[ - -±Ìc[ÍLÀI[g}gÌè»ASYÉ]¢C -ñèIÈJÚÌ éDFAð軵ܷD - -mkdfa.pl ÍùÉè»³ê½ DFA ðoÍ·éÌÅCÊí±Ìc[Í -p¢çêܹñD±êͼÌtH[}bg©ç DFA ÉÏ··éêÈÇÉ -p¢é±ÆªÅ«Ü·D - - - Èã +»ê¼êÌ}j AÍCIC}j A é¢Í +efBNgÉ é 00readme-ja.txt ð²¾³¢D Index: julius4/gramtools/00readme.txt diff -u julius4/gramtools/00readme.txt:1.1.1.1 julius4/gramtools/00readme.txt:1.2 --- julius4/gramtools/00readme.txt:1.1.1.1 Fri Sep 28 11:50:55 2007 +++ julius4/gramtools/00readme.txt Thu Oct 2 17:23:45 2008 @@ -9,194 +9,8 @@ gram2sapixml perl script to convert Julian grammar to SAPI XML format dfa_determinize DFA determinizer -To know how to write a grammar for Julian and about the file formats, -please see Grammar.txt for details. +Please see online manual or "00readme.txt" file under each directory. +Other document in Juliusbook or on the Web site will also helps you. -====================================================================== -How to compile + http://julius.sourceforge.jp/en/ -These tools are distributed as part of Julius. Compiling Julius from -the parent directory also compile these tools and install them. - -The below tools and libraries are needed to compile and run these tools. - - - perl (ver.5 and later) - - GNU bison - - GNU flex - - iconv - - Jcode.pm (only for gram2sapixml for Japanese code conversion) - -====================================================================== -====================================================================== - Manuals -====================================================================== -====================================================================== - -====================================================================== -mkdfa.pl --- Grammar compiler - - mkdfa.pl compiles the Julian format grammar (.grammar and - .voca) to Julian native formats (.dfa and .dict). - - Assume the .grammar file and .voca file has the same prefix - (i.e. "foo.grammar" and "foo.voca"), mkdfa.pl compiles them to the - Julian native format in the way below: - - ---------------------------------------------------- - % mkdfa.pl foo - ---------------------------------------------------- - Then it generates files "foo.dfa" and "foo.dict" in the same - directory. It also generates terminal symbol information in - "foo.term" that can be used other grammar tools. - - The mkdfa.pl is a script to spawn the core compile "mkfa", so you - need "mkfa" at the same directory of "mkdfa.pl". - - -====================================================================== -dfa_minimize --- minimize DFA grammar - - This tool will compress the DFA grammar to its equivalent minimal - form. - - dfa_minimize will be automatically used at when generating DFA in - mkdfa.pl. You can still use it separatedly from mkdfa.pl as - described to minimize existing DFAs. - - When invoked from command line, input filename can be specified. - if not specified, dfa_minimize will try to read DFA from standard - input. Also, output filename can be specified with "-o filename". - If not specified, it will output the result to standard output. - ------------------------------------------------------------- - ex.1: % dfa_minimize vfr.dfa -o vfr-min.dfa - - ex.2: % cat vfr.dfa | dfa_minimize > vfr-min.dfa ------------------------------------------------------------- - - -====================================================================== -generate --- Randam sentence generator - - This small program randomly generates sentences that are acceptable - by the given grammar. It can be used to check coverage of a - grammar in a human basis, by looking up if it may generate - non-acceptable sentences. - - .dfa, .dict and .term files are needed to execute. They can be - generated from .grammar and .voca file by mkdfa.pl. - - Options: - "-n num" specifies the number of sentence to be generated - (default: 10) - "-t" output in terminal name rather than word name (needs - .term file) - - ----- Example ------------------------------------------------ - - % generate ../sample_grammars/vfr/vfr - Reading in dictionary...done - Reading in DFA grammar...done - Mapping dict item <-> DFA terminal (category)...done - Reading in term file (optional)...done - 42 categories, 99 words - DFA has 135 nodes and 198 arcs - ----- - (sentences will be generated here...) - - -------------------------------------------------------------- - -====================================================================== -accept_check --- Check acception or rejection of sentences - - "accept_check" is a tool to check whether a sentence (word sequence) is - acceptable on the given grammar. Given a grammar, each input from - the standard input is parsed line by line and output whether they - are acceptable or not. - - .dfa, .dict and .term files are needed to execute. They will be - generated from .grammar and .voca file by mkdfa.pl. - - Usage: the grammar should be specified as the same style as - mkdfa.pl, i.e., the prefix of .dfa, .dict and .term should be - specified. See the examples below. - ----- Example --------------------------------------------- - % bin/accept_check ../sample_grammars/vfr/vfr - Reading in dictionary...done - Reading in DFA grammar...done - Mapping dict item <-> DFA terminal (category)...done - Reading in term file (optional)...done - 42 categories, 99 words - DFA has 135 nodes and 198 arcs - ----- - please input word sequence>silB hello silE <-- input - wseq: silB hello silE - cate: NS_B GREETING NS_E - accepted - please input word sequence> ---------------------------------------------------------- - - Input sentence should be a sequence of space-saprated words. The - short pause model (pronunciation given as "sp") in grammar will be - treated specially to allow skip. - - If there are several words in dictionary that matches the given - word, all the possible combination will be tried to check acceptability. - - Specifying "-t" option at startup time will enable category label as - an input. - - -====================================================================== -nextword --- display next predicted words - - Given a partial (part of) sentence from the end, it outputs - the next words allowed in the specified grammar. - - .dfa, .dict and .term files are needed to execute. They will be - generated from .grammar and .voca file by mkdfa.pl. - - !NOTE! The sentence should be specified from the END OF SENTENCE, - because Julian does right-to-left parsing. - ----- Example --------------------------------------------- - % bin/nextword ../sample_grammars/vfr/vfr - Reading in dictionary...done - Reading in DFA grammar...done - Mapping dict item <-> DFA terminal (category)...done - Reading in term file (optional)...done - 42 categories, 99 words - DFA has 135 nodes and 198 arcs - ----- - wseq > afternoon silE <-- input - [wseq: afternoon silE] - [cate: AFTERNOON NS_E] - PREDICTED CATEGORIES/WORDS: - NS_B (silB) - GOOD (good) - wseq > --------------------------------------------------------- - - You can use completion and history for wseq input, which is a - function of GNU readline library. The important keys are: - - TAB completion of dictionary word. When invoking - with "-t" option, completion will be category name. - Ctrl-P, Ctrl-N history up/down. - -====================================================================== -gram2sapixml --- perl script to convert Julian grammar to SAPI XML format - -See gram2sapixml/gram2sapixml.txt for detail. - -====================================================================== -dfa_determinize --- DFA determinizer - - This tool will determinize the DFA grammar. - - This tools is not used for normal use of DFA, since mkdfa.pl will - generate already determinized DFA. This program can be used for - conversion from other formats. - -*** END OF DOCUMENT