sumom****@users*****
sumom****@users*****
2011年 2月 13日 (日) 14:02:00 JST
Index: julius4/mkbinhmm/mkbinhmmlist.c diff -u julius4/mkbinhmm/mkbinhmmlist.c:1.1 julius4/mkbinhmm/mkbinhmmlist.c:1.2 --- julius4/mkbinhmm/mkbinhmmlist.c:1.1 Tue Sep 30 12:58:18 2008 +++ julius4/mkbinhmm/mkbinhmmlist.c Sun Feb 13 14:02:00 2011 @@ -7,7 +7,7 @@ /* mkbinhmmlist --- read in ascii hmmlist file and write in binary format */ -/* $Id: mkbinhmmlist.c,v 1.1 2008/09/30 03:58:18 sumomo Exp $ */ +/* $Id: mkbinhmmlist.c,v 1.2 2011/02/13 05:02:00 sumomo Exp $ */ #include <sent/stddefs.h> #include <sent/htk_hmm.h> @@ -68,13 +68,21 @@ return -1; } + if (hmminfo->is_triphone) { + fprintf(stderr, "making pseudo bi/mono-phone for IW-triphone\n"); + if (make_cdset(hmminfo) == FALSE) { + fprintf(stderr, "ERROR: m_fusion: failed to make context-dependent state set\n"); + return -1; + } + } + printf("\n------------------------------------------------------------\n"); print_hmmdef_info(stdout, hmminfo); printf("\n"); printf("------------------------------------------------------------\n"); - printf("---- writing ----\n"); + printf("---- writing logical-to-physical mapping and pseudo phone info ----\n"); printf("filename: %s\n", outfile); if ((fp = fopen_writefile(outfile)) == NULL) { @@ -91,7 +99,7 @@ } printf("\n"); - printf("binary HMMList written to \"%s\"\n", outfile); + printf("binary HMMList and pseudo phone definitions are written to \"%s\"\n", outfile); return 0; }