diff options
author | bhaddow <bhaddow@1f5c12ca-751b-0410-a591-d2e778427230> | 2008-05-17 17:24:09 +0400 |
---|---|---|
committer | bhaddow <bhaddow@1f5c12ca-751b-0410-a591-d2e778427230> | 2008-05-17 17:24:09 +0400 |
commit | 86772c27e2313c9c65acf765b9f8f4e9541555a9 (patch) | |
tree | 380e3a273d3575740817c3cd82aef409ab1eab5e /mert/Optimizer.h | |
parent | 74fb532e00a5f1a295a9a0b1169d20099b160639 (diff) |
Fixed return of non-initialised variable
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@1782 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'mert/Optimizer.h')
-rw-r--r-- | mert/Optimizer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mert/Optimizer.h b/mert/Optimizer.h index 23df73e67..cc30b4344 100644 --- a/mert/Optimizer.h +++ b/mert/Optimizer.h @@ -33,7 +33,7 @@ class Optimizer{ /**given a set of lambdas, get the nbest for each sentence*/ void Get1bests(const Point& param,vector<unsigned>& bests)const; /**given a set of nbests, get the Statistical score*/ - statscore_t GetStatScore(const vector<unsigned>& nbests)const{scorer->score(nbests);}; + statscore_t GetStatScore(const vector<unsigned>& nbests)const{return scorer->score(nbests);}; /**given a set of lambdas, get the total statistical score*/ statscore_t GetStatScore(const Point& param)const; vector<statscore_t > GetIncStatScore(vector<unsigned> ref,vector<vector <pair<unsigned,unsigned> > >)const; |