[irstlm] 66/78: minor fixings

Giulio Paci giuliopaci-guest at moszumanska.debian.org
Tue May 17 07:47:07 UTC 2016


This is an automated email from the git hooks/post-receive script.

giuliopaci-guest pushed a commit to tag adaptiveLM.v0.10
in repository irstlm.

commit e2cb6ee56459cc673191b9f00723454efcf06a3f
Author: Nicola Bertoldi <bertoldi at fbk.eu>
Date:   Tue Dec 8 22:37:02 2015 +0100

    minor fixings
---
 src/lmtable.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lmtable.cpp b/src/lmtable.cpp
index b2d45c8..a930d85 100644
--- a/src/lmtable.cpp
+++ b/src/lmtable.cpp
@@ -2525,7 +2525,7 @@ namespace irstlm {
 					iprob=ng.prob;
 					lpr = (double)(isQtable?Pcenters[ng.size][(qfloat_t)iprob]:iprob);
 					if (*ng.wordp(1)==dict->oovcode()) lpr-=logOOVpenalty; //add OOV penalty
-					if (maxsuffptr || statesize) { //one extra step is needed if ng.size=ong.size
+					if (maxsuffptr || maxsuffidx || statesize) { //one extra step is needed if ng.size=ong.size
 						if (ong.size==ng.size) {
 							ng.size--;
 							get(ng,ng.size,ng.size);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/irstlm.git



More information about the debian-science-commits mailing list