[irstlm] 20/78: minor changes

Giulio Paci giuliopaci-guest at moszumanska.debian.org
Tue May 17 07:47:02 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 a9bc94427dffb617282d22688d7e86504ee75bd8
Author: Nicola Bertoldi <bertoldi at fbk.eu>
Date:   Mon Nov 9 00:42:46 2015 +0100

    minor changes
---
 src/lmInterpolation.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/lmInterpolation.cpp b/src/lmInterpolation.cpp
index e9f7584..7da53bc 100644
--- a/src/lmInterpolation.cpp
+++ b/src/lmInterpolation.cpp
@@ -106,7 +106,7 @@ namespace irstlm {
 		VERBOSE(2,"lmInterpolation::load(const std::string &filename,int mmap) m_number_lm:"<< m_number_lm << std::endl);
 		
 		dict->incflag(1);
-		for (int i=0; i<m_number_lm; i++) {
+		for (size_t i=0; i<m_number_lm; i++) {
 			inp.getline(line,BUFSIZ,'\n');
 			tokenN = parseWords(line,words,3);
 			
@@ -151,7 +151,7 @@ namespace irstlm {
 		inp.close();
 		
 		int maxorder = 0;
-		for (int i=0; i<m_number_lm; i++) {
+		for (size_t i=0; i<m_number_lm; i++) {
 			maxorder = (maxorder > m_lm[i]->maxlevel())?maxorder:m_lm[i]->maxlevel();
 		}
 		
@@ -433,7 +433,7 @@ namespace irstlm {
 		MY_ASSERT(dub > dict->size());
 		double _logpr;
 		double OOVpenalty=0.0;
-		for (int i=0; i<m_number_lm; i++) {
+		for (size_t i=0; i<m_number_lm; i++) {
 			if (m_weight[i]>0.0){
 				m_lm[i]->setlogOOVpenalty(dub);  //set OOV Penalty for each LM
 				_logpr=m_lm[i]->getlogOOVpenalty(); // logOOV penalty is in log10

-- 
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