Hi Mahima If moses cannot load your model then mosesserver will not be able to load it either.
If you specify the language model type as 0 then you need to have srilm compiled in. Note that the srilm build can sometimes appear to succeed but in reality fail - you need to check the build logs carefully, cheers - Barry On Sunday 25 Mar 2012 05:03:03 Mahima Sharma wrote: > Hi Barry > > I had compiled the language model. I compiled SRILM and RandLM. Since I > wanted to create a moses server. I also have set the xml-rpc option. After > compiling and recompiling I was unable to resolve the problem. So, I > downloaded the version of Moses available on sourceforge and trained the > system using it. Then, I copied moses.ini file of this version to the > latest one and it worked. My lm entry is as follows: > > [lmodel-file] > 0 0 7 /path-to-SRILM > > I am looking into the problem and if I could figure it out I will let you > know. If not, then I might seek your help in understanding what went wrong. > > Since, I wish to use this onto a remote client/webpage, would I still get a > problem in connecting the same. I haven't tried it yet. > > Thank you for replying > Mahima > > On Thu, Mar 22, 2012 at 4:18 PM, Barry Haddow <[email protected]>wrote: > > Hi Mahima > > > > This is the key: > > > ERROR:no LM created. We probably don't have it compiled > > > > i.e. you're trying to use a language model type that you haven't compiled > > in. > > > > You should see the something like the following in your ini file: > > > > [lmodel-file] > > 8 0 5 /path-to-language-model > > > > The first digit specifies the language model type. If you set it to 8 > > then moses > > will use kenlm, which is compiled in by default, so should work. > > > > You can set it to 0 for srilm, or 1 for irstlm, but these libraries must > > be compiled in by passing the correct options to bjam (e.g. --with- > > irstlm=/path/to/irstlm) > > > > cheers - Barry > > > > On Thursday 22 March 2012 10:36:37 Mahima Sharma wrote: > > > Hi > > > > > > I have trained my system as the moses_steps. Things went perfectly, my > > > system was trained, moses.ini file was created. But, when I tried to > > > test my system using the command. > > > > > > echo "Mumbai is the financial capital of India ." | > > > $MOSES/dist/bin/moses -f moses-hin/model/moses.ini > > > > > > I get an error > > > > > > Start loading LanguageModel /home/nisheeth/MT/moses-hin/lm/ilc.lm : > > > [11.000] seconds > > > ERROR:Language model type unknown. Probably not compiled into library > > > ERROR:no LM created. We probably don't have it compiled > > > > > > I don't seem to understand the problem. Can anybody please help me. > > > > > > thanks > > > Mahima > > > -- > > > Change always comes bearing gifts. > > > > -- > > Barry Haddow > > University of Edinburgh > > +44 (0) 131 651 3173 > > > > -- > > 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
