Hieu Hoang http://www.hoang.co.uk/hieu
On 9 July 2016 at 21:26, arefeh kazemi <akazem...@gmail.com> wrote: > Hi all, > > I'm trying to add my feature function in EMS file. As Hieu has explained > in one of the posts, I use the following settings in the config file. The > decoder runs successfully but it doesn't contain my feature function (It's > not in the list of features in Moses.ini files). > Did I miss something? > the -feature-add and -weight-add doesn't change the moses.ini file. It will add the feature to the decoder internally. for -feature-add, it must be formatted in the same way as in the moses.ini, eg. Aref name=Aref0 trainfilePath=.... > > Many Thanks! > Arefe > > > [Tuning] > decoder-settings = "-threads 8 -feature-add > \"trainFilePath=/scratch/akazemi/files/entr/entr-dd-surf-tune.csv > decodeFilePath=/scratch/akazemi/files/entr/entr_Tune_Decoding_WithIndex.txt > relationType=dd\" -weight-add \"Aref0= 0.200000 0.200000 0.200000 0.200000 > 0.200000 0.200000 0.200000 0.200000\"" > > [Evaluation] > decoder-settings = "-threads 8 -feature-add > "trainFilePath=/scratch/akazemi/files/entr/entr-dd-surf-tune.csv > decodeFilePath=/scratch/akazemi/files/entr/entr_Tune_Decoding_WithIndex.txt > relationType=dd" -weight-add "Aref0= 0.200000 0.200000 0.200000 0.200000 > 0.200000 0.200000 0.200000 0.200000"" > > > > > -- > Arefeh Kazemi > > _______________________________________________ > Moses-support mailing list > Moses-support@mit.edu > http://mailman.mit.edu/mailman/listinfo/moses-support > >
_______________________________________________ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support