add init.opt file

git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@1731 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
jfouet 2008-05-16 12:35:17 +00:00
parent 740b957472
commit 044a43b512
4 changed files with 18 additions and 4 deletions

View File

@ -35,8 +35,20 @@ public:
inline void clear() { array_.clear(); }
inline FeatureArray& get(int i){ return array_.at(i); }
inline const FeatureArray& get(int i)const{ return array_.at(i); }
inline FeatureArray& get(int i){
#ifdef DEBUG
return array_.at(i);
#else
return array_[i];
#endif
}
inline const FeatureArray& get(int i)const{
#ifdef DEBUG
return array_.at(i);
#else
return array_[i];
#endif
}
inline bool exists(int i){ return (i<array_.size())?true:false; }
inline void setIndex(){ };

View File

@ -11,7 +11,8 @@ Scorer.o
ifndef DEBUG
CFLAGS=-O3 -DTRACE_ENABLE
else
CFLAGS=-DTRACE_ENABLE -g
CFLAGS=-DTRACE_ENABLE -g -DDEBUG
endif
GCC=g++

View File

@ -289,7 +289,7 @@ statscore_t SimpleOptimizer::TrueRun(Point& P)const{
for(int d=0;d<Point::getdim();d++){
if(verboselevel()>3)
cerr<<"minimizing along direction"<<d<<endl;
cerr<<"minimizing along direction "<<d<<endl;
Point direction;
direction[d]=1.0;
statscore_t curscore=LineOptimize(P,direction,linebest);//find the minimum on the line

1
mert/init.opt Normal file
View File

@ -0,0 +1 @@
0.1 0.1 0.3 0.4 0.7 0.5 0.01 0.02 0.1 0.1 0.3 0.4 0.7 9