Hi Saeed You add extra models by creating new feature functions. See here for a guide http://www.statmt.org/moses/?n=Moses.FeatureFunctions
cheers - Barry On 02/08/12 12:45, saeed farzi wrote: > Thank you Marwen, > I wanna add some models no just reordering model to MOses. I am > looking for some documents about howto add extra models to Moses. I > wonder if you could help me. > > tnx > > On 8/2/12, Marwen AZOUZI<[email protected]> wrote: >> On 08/02/2012 11:23 AM, saeed farzi wrote: >>> Hi all, >>> I am going to add new reordering model to MOSES. Could anybody tell >>> me how to add new model to MOSES. >>> Tnx in advance, >>> >> Hi Saeed, >> >> Imagine you have this configuration in your "moses.ini" file: >> >> # distortion (reordering) files >> [distortion-file] >> 0-0 wbe-msd-bidirectional-fe-allff6 >> /path/to/your/first/model/reordering-table.wbe-msd-bidirectional-fe.gz >> >> # distortion (reordering) weight >> [weight-d] >> 0.3 >> 0.3 >> 0.3 >> 0.3 >> 0.3 >> 0.3 >> 0.3 >> >> to add a new reordering model : >> >> # distortion (reordering) files >> [distortion-file] >> 0-0 wbe-msd-bidirectional-fe-allff6 >> /path/to/your/first/model/reordering-table.wbe-msd-bidirectional-fe.gz >> 0-0 wbe-msd-bidirectional-fe-allff6 >> /path/to/your/second/model/reordering-table.wbe-msd-bidirectional-fe.gz >> >> # distortion (reordering) weight >> [weight-d] >> 0.3 >> 0.3 >> 0.3 >> 0.3 >> 0.3 >> 0.3 >> 0.3 >> 0.3 >> 0.3 >> 0.3 >> 0.3 >> 0.3 >> 0.3 >> 0.3 >> >> PS: be careful when using/"filter/-/model/-/given/-input.pl" script when >> both of reordering tables have the same name. >> The script works fine with multiple phrase tables that have the same name >> but apparently (I don't know if it has been fixed) not adapted to deal with >> reordering tables. >> >> Marwen. >> >> >> > -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. _______________________________________________ Moses-support mailing list [email protected] http://mailman.mit.edu/mailman/listinfo/moses-support
