We've done something like this in the past. The fact that the check for a non-empty LM happens at the very beginning is somewhat annoying if you have a setup that builds the phrase models and language models in parallel, for instance on a cluster.
- JB On Nov 4, 2013, at 07:48 , Tom Hoar wrote: > Yes, on both counts. You can edit the moses.ini file to change to a > different LM. Editing the train-model.perl script should work. We take a > different approach. We create a temporary /tmp/placeholder.lm before > running the script and then remove it afterwards. We then regex the > pattern and change the moses.ini file to any LM we want. > > > On 11/04/2013 04:57 AM, Read, James C wrote: >> Thanks. >> >> So if you wanted to train and at a later date use a different LM with the >> already trained TM would it just be a simple case of manually editing >> moses.ini? >> >> If I were to edit the training script to skip the check that LM file exists >> (it doesn't) it wouldn't break anything would it? >> >> James >> >> ________________________________________ >> From:moses-support-boun...@mit.edu [moses-support-boun...@mit.edu] on >> behalf of Tom Hoar [tah...@precisiontranslationtools.com] >> Sent: 03 November 2013 13:03 >> To:moses-support@mit.edu >> Subject: Re: [Moses-support] -lm training parameter >> >> You are correct that train-model.perl script does not use the -lm >> parameter through any of the word alignment or phrase scoring steps. The >> script's step 9 builds a template moses.ini configuration file and >> includes the values from the -lm parameter. At the beginning, the script >> checks that the -lm value points to a non-zero length file. If the file >> is missing or is zero length, the script halts. >> >> >> >> On 11/03/2013 06:03 PM, Read, James C wrote: >>> Hi, >>> >>> does anybody know what the effect of the -lm training parameter in the >>> training script is? Surely the LM used has no effect on typical training >>> tasks like word alignment and phrase scoring? >>> >>> thanks, >>> James >>> >>> _______________________________________________ >>> 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 >> >> _______________________________________________ >> 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 _______________________________________________ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support