[irstlm] 67/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 e6de4d58fe37968455a47161963894328d3fdb54
Author: Nicola Bertoldi <bertoldi at fbk.eu>
Date:   Tue Dec 8 22:37:25 2015 +0100

    minor fixings
---
 src/lmContainer.h | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/lmContainer.h b/src/lmContainer.h
index 37418d3..fb760e6 100644
--- a/src/lmContainer.h
+++ b/src/lmContainer.h
@@ -179,12 +179,8 @@ namespace irstlm {
 		}
 		virtual double clprob(int* ng, int ngsize, topic_map_t& topic_weights, double* bow=NULL, int* bol=NULL, ngram_state_t* maxsuffidx=NULL, char** maxsuffptr=NULL, unsigned int* statesize=NULL,bool* extendible=NULL, double* lastbow=NULL)
 		{
-			//create the actual ngram
-			ngram ong(getDict());
-			ong.pushc(ng,ngsize);
-			MY_ASSERT (ong.size == ngsize);
-			
-			return clprob(ong, topic_weights, bow, bol, maxsuffidx, maxsuffptr, statesize, extendible, lastbow);
+			UNUSED(topic_weights);
+			return clprob(ng, ngsize, bow, bol, maxsuffidx, maxsuffptr, statesize, extendible, lastbow);
 		}
 		virtual double clprob(string_vec_t& text, double* bow=NULL, int* bol=NULL, ngram_state_t* maxsuffidx=NULL, char** maxsuffptr=NULL, unsigned int* statesize=NULL,bool* extendible=NULL, double* lastbow=NULL)
 		{

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