[irstlm] 76/78: added a couple of missing virtual fucntions

Giulio Paci giuliopaci-guest at moszumanska.debian.org
Tue May 17 07:47:08 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 48e56b4c982c32b44f563efa26fad3aec3a14ccb
Author: Nicola Bertoldi <bertoldi at fbk.eu>
Date:   Tue Dec 22 08:40:38 2015 +0100

    added a couple of missing virtual fucntions
---
 src/lmContainer.h | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/src/lmContainer.h b/src/lmContainer.h
index 312b2dd..f4d79c2 100644
--- a/src/lmContainer.h
+++ b/src/lmContainer.h
@@ -193,6 +193,35 @@ namespace irstlm {
                         return 0.0;
 		}                
 
+		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)
+		{
+			UNUSED(text);
+			UNUSED(bow);
+			UNUSED(bol);
+			UNUSED(maxsuffidx);
+			UNUSED(maxsuffptr);
+			UNUSED(statesize);
+			UNUSED(extendible);
+			UNUSED(lastbow);
+
+                        return 0.0;
+		} 
+
+		virtual double clprob(string_vec_t& text, 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)
+		{ 
+			UNUSED(topic_weights);
+                        UNUSED(text);
+			UNUSED(bow);
+			UNUSED(bol);
+			UNUSED(maxsuffidx);
+			UNUSED(maxsuffptr);
+			UNUSED(statesize);
+                        UNUSED(extendible);
+                        UNUSED(lastbow);
+
+                        return 0.0;
+		}
+
 		virtual const char *cmaxsuffptr(ngram ng, unsigned int* statesize=NULL)
 		{
 			UNUSED(ng);

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