[irstlm] 24/78: added missing inherited functions
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 396792fa99b9b3e1fe50cc91d5197506a8ac75da
Author: Nicola Bertoldi <bertoldi at fbk.eu>
Date: Mon Nov 9 08:41:07 2015 +0100
added missing inherited functions
---
src/lmInterpolation.h | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/src/lmInterpolation.h b/src/lmInterpolation.h
index 4f4b4fa..8e5e429 100644
--- a/src/lmInterpolation.h
+++ b/src/lmInterpolation.h
@@ -81,6 +81,32 @@ namespace irstlm {
virtual double clprob(ngram ng, double* bow=NULL, int* bol=NULL, ngram_state_t* maxsuffidx=NULL, char** maxsuffptr=NULL, unsigned int* statesize=NULL, bool* extendible=NULL, double* lastbow=NULL);
virtual double clprob(ngram ng, topic_map_t& lm_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);
+ virtual double clprob(string_vec_t& text, double* bow, int* bol, ngram_state_t* maxsuffidx, char** maxsuffptr, unsigned int* statesize, bool* extendible, double* lastbow)
+ {
+ VERBOSE(2,"lmInterpolation::clprob(string_vec_t& text, ...)" << std::endl);
+
+ //create the actual ngram
+ ngram ng(dict);
+ ng.pushw(text);
+ VERBOSE(3,"ng:|" << ng << "|" << std::endl);
+
+ MY_ASSERT (ng.size == (int) text.size());
+ return clprob(ng, bow, bol, maxsuffidx, maxsuffptr, statesize, extendible, lastbow);
+ }
+
+ virtual double clprob(string_vec_t& text, topic_map_t& lm_weights, double* bow, int* bol, ngram_state_t* maxsuffidx, char** maxsuffptr, unsigned int* statesize, bool* extendible, double* lastbow)
+ {
+ VERBOSE(2,"lmInterpolation::clprob(string_vec_t& text, topic_map_t& lm_weights, ...)" << std::endl);
+
+ //create the actual ngram
+ ngram ng(dict);
+ ng.pushw(text);
+ VERBOSE(3,"ng:|" << ng << "|" << std::endl);
+
+ MY_ASSERT (ng.size == (int) text.size());
+ return clprob(ng, lm_weights, bow, bol, maxsuffidx, maxsuffptr, statesize, extendible, lastbow);
+ }
+
virtual const char *cmaxsuffptr(ngram ong, unsigned int* size=NULL);
virtual ngram_state_t cmaxsuffidx(ngram ong, unsigned int* size=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