From sumomo @ users.sourceforge.jp Thu May 31 12:01:46 2012 From: sumomo @ users.sourceforge.jp (sumomo @ users.sourceforge.jp) Date: Thu, 31 May 2012 12:01:46 +0900 Subject: [Julius-cvs 722] CVS update: julius4/libjulius/src Message-ID: <1338433306.781803.1310.nullmailer@users.sourceforge.jp> Index: julius4/libjulius/src/beam.c diff -u julius4/libjulius/src/beam.c:1.19 julius4/libjulius/src/beam.c:1.20 --- julius4/libjulius/src/beam.c:1.19 Tue Oct 11 15:51:06 2011 +++ julius4/libjulius/src/beam.c Thu May 31 12:01:46 2012 @@ -42,7 +42,7 @@ * @author Akinobu LEE * @date Tue Feb 22 17:00:45 2005 * - * $Revision: 1.19 $ + * $Revision: 1.20 $ * */ /* @@ -1917,6 +1917,9 @@ TOKEN2 *tknext; TOKENID tknextid; + /* does not propagate invalid token */ + if (next_score <= LOG_ZERO) return; + if ((tknextid = node_exist_token(d, d->tn, next_node, last_tre->wid)) != TOKENID_UNDEFINED) { /* 遷移先ノードには既に他ノードから伝搬済み: スコアが高いほうを残す */ /* the destination node already has a token: compare score */ @@ -1932,9 +1935,7 @@ } else { /* 遷移先ノードは未伝搬: 新規トークンを作って割り付ける */ /* token unassigned: create new token and assign */ - if (next_score > LOG_ZERO) { /* valid token */ - tknextid = create_token(d); /* get new token */ - } + tknextid = create_token(d); /* get new token */ tknext = &(d->tlist[d->tn][tknextid]); tknext->last_tre = last_tre; /* propagate last word info */ tknext->last_cword = last_cword; /* propagate last context word info */