mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 11:25:40 +03:00
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:
parent
740b957472
commit
044a43b512
@ -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(){ };
|
||||
|
@ -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++
|
||||
|
@ -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
1
mert/init.opt
Normal 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
|
Loading…
Reference in New Issue
Block a user