Hi Hieu, Thanks for your reply and quick modification. Now it works!!
Thanks again, Toshiaki Nakazawa At Fri, 14 Jun 2013 10:13:47 +0100, Hieu Hoang wrote: > > [1 <text/plain; ISO-8859-1 (7bit)>] > a mistake on my part. > > the way to specify ttable-limit has slightly changed, from > [ttable-limit] > 20 > to > PhraseDictionaryMemory name=TranslationModel0 table-limit=20 .... > > i've also changed the perl script that created the ini file so hopefully it > won't reoccur > > https://github.com/moses-smt/mosesdecoder/commit/029110c2451be2ecafbb1ed5f912e573647b3401 > > > On 14 June 2013 03:51, Toshiaki Nakazawa <[email protected]> wrote: > > > Hi all, > > > > I'm now trying the latest version of Moses (downloaded today). > > > > Using a small dataset, I first ran train-model.perl with following options: > > > > mosesdecoder/scripts/training/train-model.perl -root-dir > > /zinnia/nakazawa/MEDICAL/moses/tmp/train -external-bin-dir > > /share/tool/MT/tool/SMT -corpus data/data -f fr -e en \ > > -alignment grow-diag-final-and -lm > > 0:3:/zinnia/nakazawa/MEDICAL/moses/MED.binary:8 -reordering > > msd-bidirectional-fe -parallel -mgiza -mgiza-cpus 8 > > > > and got the moses.ini like this: > > > > ######################### > > ### MOSES CONFIG FILE ### > > ######################### > > > > # input factors > > [input-factors] > > 0 > > > > # mapping steps > > [mapping] > > 0 T 0 > > > > # limit on how many phrase translations e for each phrase f are loaded > > # 0 = all elements loaded > > [ttable-limit] > > 20 > > > > [distortion-limit] > > 6 > > > > # feature functions > > [feature] > > UnknownWordPenalty > > WordPenalty > > PhraseDictionaryMemory name=TranslationModel0 num-features=5 > > path=/zinnia/nakazawa/MEDICAL/moses/tmp/train/model/phrase-table.gz > > input-factor=0 output-factor=0 > > LexicalReordering name=LexicalReordering0 num-features=6 > > type=wbe-msd-bidirectional-fe-allff input-factor=0 output-factor=0 > > path=/zinnia/nakazawa/MEDICAL/moses/tmp/train/model/reordering-table.wbe-msd-bidirectional-fe.gz > > Distortion > > KENLM lazyken=0 name=LM0 factor=0 > > path=/zinnia/nakazawa/MEDICAL/moses/MED.binary order=3 > > > > # dense weights for feature functions > > [weight] > > UnknownWordPenalty0= 1 > > WordPenalty0= -1 > > TranslationModel0= 0.2 0.2 0.2 0.2 0.2 > > LexicalReordering0= 0.3 0.3 0.3 0.3 0.3 0.3 > > Distortion0= 0.3 > > LM0= 0.5 > > > > > > With this moses.ini, I tried to translate some sentences, but failed: > > > > $ mosesdecoder/bin/moses -f ../train/model/moses.ini < test.fr > > Defined parameters (per moses.ini or switch): > > config: ../train/model/moses.ini > > distortion-limit: 6 > > feature: UnknownWordPenalty WordPenalty PhraseDictionaryMemory > > name=TranslationModel0 num-features=5 > > path=/zinnia/nakazawa/MEDICAL/moses/tmp/train/model/phrase-table.gz > > input-factor=0 output-factor=0 LexicalReordering name=LexicalReordering0 > > num\ > > -features=6 type=wbe-msd-bidirectional-fe-allff input-factor=0 > > output-factor=0 > > path=/zinnia/nakazawa/MEDICAL/moses/tmp/train/model/reordering-table.wbe-msd-bidirectional-fe.gz > > Distortion KENLM lazyken=0 name=LM0 factor=0 path=/zinnia/nakazawa/ARAMAK\ > > I_MEDICAL/moses/MED.binary order=3 > > input-factors: 0 > > mapping: 0 T 0 > > ttable-limit: 20 > > weight: UnknownWordPenalty0= 1 WordPenalty0= -1 TranslationModel0= 0.2 > > 0.2 0.2 0.2 0.2 LexicalReordering0= 0.3 0.3 0.3 0.3 0.3 0.3 Distortion0= > > 0.3 LM0= 0.5 > > ERROR:Unknown parameter ttable-limit > > > > > > I couldn't find the reason of this ERROR. Could you help me? > > > > Thanks in advance, > > > > Toshiaki Nakazawa > > _______________________________________________ > > Moses-support mailing list > > [email protected] > > http://mailman.mit.edu/mailman/listinfo/moses-support > > > > > > -- > Hieu Hoang > Research Associate > University of Edinburgh > http://www.hoang.co.uk/hieu > [2 <text/html; ISO-8859-1 (quoted-printable)>] > _______________________________________________ Moses-support mailing list [email protected] http://mailman.mit.edu/mailman/listinfo/moses-support
