[irstlm] 12/78: code optimization

Giulio Paci giuliopaci-guest at moszumanska.debian.org
Tue May 17 07:47:01 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 cc9fe4eb8e6ef70f7e4b5814f5d9e9a851f5312e
Author: Nicola Bertoldi <bertoldi at fbk.eu>
Date:   Sun Nov 8 15:50:47 2015 +0100

    code optimization
---
 src/ngramcache.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/ngramcache.h b/src/ngramcache.h
index 232afa9..0442ef7 100644
--- a/src/ngramcache.h
+++ b/src/ngramcache.h
@@ -39,8 +39,9 @@ typedef struct PROB_AND_STATE_ENTRY {
   double bow;     //!< backoff weight
   int bol;        //!< backoff level
   bool extendible;  //!< flag for extendibility of the ngram
+  double lastbow;        //!< bow weight of the deepest found ngram
 //  PROB_AND_STATE_ENTRY(double lp=0.0, char* st=NULL, unsigned int stsz=0, double bw=0.0, int bl=0, bool ex=false): logpr(lp), state(st), statesize(stsz), bow(bw), bol(bl), extendible(ex) {}; //initializer
-  PROB_AND_STATE_ENTRY(double lp=0.0, ngram_state_t ngramst=0, char* st=NULL, unsigned int stsz=0, double bw=0.0, int bl=0, bool ex=false): logpr(lp), ngramstate(ngramst), state(st), statesize(stsz), bow(bw), bol(bl), extendible(ex) {}; //initializer
+  PROB_AND_STATE_ENTRY(double lp=0.0, ngram_state_t ngramst=0, char* st=NULL, unsigned int stsz=0, double bw=0.0, int bl=0, bool ex=false, double lstbw=0): logpr(lp), ngramstate(ngramst), state(st), statesize(stsz), bow(bw), bol(bl), extendible(ex), lastbow(lstbw) {}; //initializer
 } prob_and_state_t;
 
 void print(prob_and_state_t* pst,  std::ostream& out=std::cout);

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