[irstlm] 19/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 58282bb7416b4f32f6d9e37e2c6968977bc268dd
Author: Nicola Bertoldi <bertoldi at fbk.eu>
Date:   Mon Nov 9 00:42:38 2015 +0100

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

diff --git a/src/lmInterpolation.h b/src/lmInterpolation.h
index 6d5519e..4f4b4fa 100644
--- a/src/lmInterpolation.h
+++ b/src/lmInterpolation.h
@@ -116,7 +116,7 @@ namespace irstlm {
 		//for an interpolation LM this variable does not make sense
 		//for compatibility, we return true if all subLM return true
 		inline bool is_inverted() {
-			for (int i=0; i<m_number_lm; i++) {
+			for (size_t i=0; i<m_number_lm; i++) {
 				if (m_isinverted[i] == false) return false;
 			}
 			return true;
@@ -127,7 +127,7 @@ namespace irstlm {
 		};
 		
 		inline virtual bool is_OOV(int code) { //returns true if the word is OOV for each subLM
-			for (int i=0; i<m_number_lm; i++) {
+			for (size_t i=0; i<m_number_lm; i++) {
 				int _code=m_lm[i]->getDict()->encode(getDict()->decode(code));
 				if (m_lm[i]->is_OOV(_code) == false) return false;
 			}
@@ -135,7 +135,7 @@ namespace irstlm {
 		}
 		
 		virtual int addWord(const char *w){
-			for (int i=0; i<m_number_lm; i++) {
+			for (size_t i=0; i<m_number_lm; i++) {
 				m_lm[i]->getDict()->incflag(1);
 				m_lm[i]->getDict()->encode(w);
 				m_lm[i]->getDict()->incflag(0);

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