mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 11:25:40 +03:00
small change to reduce few useless computations
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@1970 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
parent
4b4c1b3973
commit
830d9f3404
@ -351,6 +351,13 @@ statscore_t SimpleOptimizer::TrueRun(Point& P)const{
|
||||
statscore_t bestscore=MIN_FLOAT;
|
||||
Point best;
|
||||
|
||||
//If P is already defined and provides a score
|
||||
//we must improve over this score
|
||||
if(P.score>bestscore){
|
||||
bestscore=P.score;
|
||||
best=P;
|
||||
}
|
||||
|
||||
int nrun=0;
|
||||
do{
|
||||
++nrun;
|
||||
|
Loading…
Reference in New Issue
Block a user