the recaser should be very fast. You should set the distortion limit to 0. you should binarize your phrase table and language model
On 20/06/14 11:03, Stanislav Kuřík wrote: > Hello, > > I wonder if it's normal for the recaser to take 7 seconds to process a > single sentence when the actual translation of that sentence took 3 seconds. > > Below is the recaser's config file. As for the referred files, phrase- > table.gz is about 3.5 MB while cased.srilm.gz is 33.7 MB. > > I tried setting the 'distortion-limit' to 0 but it did not make any > difference. > > Thank you. > > ######################### > ### MOSES CONFIG FILE ### > ######################### > > # input factors > [input-factors] > 0 > > # mapping steps > [mapping] > 0 T 0 > > [ttable-file] > 0 0 0 5 /storage/moses/trained-models/EN_SV-SE_2014-04- > 22T04_00_17_105475/recaser/phrase-table.gz > > # no generation models, no generation-file section > > # language models: type(srilm/irstlm), factors, order, file > [lmodel-file] > 0 0 3 /storage/moses/trained-models/EN_SV-SE_2014-04- > 22T04_00_17_105475/recaser/cased.srilm.gz > > > # limit on how many phrase translations e for each phrase f are loaded > # 0 = all elements loaded > [ttable-limit] > 20 > > # distortion (reordering) weight > [weight-d] > 0.6 > > # language model weights > [weight-l] > 0.5000 > > > # translation model weights > [weight-t] > 0.20 > 0.20 > 0.20 > 0.20 > 0.20 > > # no generation models, no weight-generation section > > # word penalty > [weight-w] > -1 > > [distortion-limit] > 6 > > > > > _______________________________________________ > Moses-support mailing list > [email protected] > http://mailman.mit.edu/mailman/listinfo/moses-support > > _______________________________________________ Moses-support mailing list [email protected] http://mailman.mit.edu/mailman/listinfo/moses-support
