Hi Hieu, I also tried the same but generates the error below: Exception: moses/TranslationModel/UG/mmsapt.cpp:381 in virtual void Moses::Mmsapt::Load() threw util::Exception because `this->m_feature_names.size() != this->m_numScoreComponents'. At moses/TranslationModel/UG/mmsapt.cpp:381: number of feature values provided by Phrase table (7) does not match number specified in Moses config file (4)!
Thanks and regards, sandipan On 6 September 2014 09:50, Hieu Hoang <hieuho...@gmail.com> wrote: > I'm not sure how many scores there are in the phrase table > PhraseDictionaryBitextSampling > It may be 4. In which case you must specify > > [feature] > PhraseDictionaryBitextSampling name=PT0 num-features=4 ... > > [weight] > PT0= 0.1 0.2 0.3 0.4 > > > On 05/09/14 14:12, Sandipan Dandapat wrote: > > Hi, > During incremental retraining I specified the following line in moses .ini > PhraseDictionaryBitextSampling name=PT0 output-factor=0 num-features=9 > path=/home/sandipan/inc_retrain/MT_sys/EnPl/mtdata_pro/train. L1=en L2=pl > pfwd=g pbwd=g smooth=0 sample=1000 workers=1 > > this generates the error: > Feature function PT0 specified 9 dense scores or weights. Actually has 0. > > which is solved when num-features is changed to '0' > but generates the error below: > > Exception: moses/TranslationModel/UG/mmsapt.cpp:381 in virtual void > Moses::Mmsapt::Load() threw util::Exception because > `this->m_feature_names.size() != this->m_numScoreComponents'. > At moses/TranslationModel/UG/mmsapt.cpp:381: number of feature values > provided by Phrase table (7) does not match number specified in Moses > config file (0)! > Changing it to 7 also does not help. > > I have tried with > Mmsapt name=PT0 output-factor=0 num-features=0 > base=/home/sandipan/inc_retrain/MT_sys/EnPl/mtdata_pro/train. L1=en L2=pl > > but does not work. > What I need to do at this stage of retraining using moses? > > Thanks and regards, > sandipan > > > _______________________________________________ > Moses-support mailing > listMoses-support@mit.eduhttp://mailman.mit.edu/mailman/listinfo/moses-support > > > > _______________________________________________ > 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