Like pidong, I have fixed same bug as perl regular expression solution. Best regards, Lang Jun
在 2011年11月22日,下午06:17,Wang Pidong <[email protected]> 写道: I fixed this problem before, and I remember I just changed the regular expression (appearing two times) for the weights from: */^([\-\d\.]+)\s*$/* to */^([\-\d\.e]+)\s*$/* in the perl stript. You can try it to see whether it works. Best wishes! Pidong On 22 November 2011 18:09, somayeh bakhshaei <[email protected]> wrote: > Thank you a lot. > Do you have any solution for it? > > > On Tue, Nov 22, 2011 at 1:31 PM, Wang Pidong <[email protected]>wrote: > >> I guess the problem is from the *reuse-weights.perl* >> , which always ignores floats which have 'e' in the string representation >> of the float, e.g., 1.05e-1 >> >> Hope this can help you. >> >> Best wishes! >> Pidong >> >> >> On 22 November 2011 16:57, somayeh bakhshaei <[email protected]>wrote: >> >>> Hello all, >>> >>> Salam, >>> >>> I am using moses in this way: >>> >>> train, >>> for i=1 to 3 >>> tune >>> end for >>> decode >>> evaluate >>> >>> in the above loop for something unexpected happens, in large execution >>> sometime the weights produced in moses.ini are wrong. For example once it >>> produce 3 in the other case produce 4, take a look hear: >>> >>> # translation model weights >>> [weight-t] >>> 0.0106455 >>> 0.036391 >>> 0.0453815 >>> 0.0716856 >>> 0.0271838 >>> >>> # translation model weights >>> [weight-t] >>> 0.0705978 >>> 0.0652413 >>> 0.100475 >>> 0.00356951 >>> >>> in the case in the previous iteration nothing is wrong. >>> Did anyone can tell me what is happening here please? >>> >>> >>> >>> >>> --------------------- >>> Best Regards, >>> S.Bakhshaei >>> >>> After All you will come .... >>> And will spread light on the dark desolate world! >>> O' Kind Father! We will be waiting for your affectionate hands ... >>> >>> >>> _______________________________________________ >>> Moses-support mailing list >>> [email protected] >>> http://mailman.mit.edu/mailman/listinfo/moses-support >>> >>> >> >> >> -- >> Wang Pidong >> >> Department of Computer Science >> School of Computing >> National University of Singapore >> >> > > > -- > > > > --------------------- > Best Regards, > S.Bakhshaei > > After All you will come .... > And will spread light on the dark desolate world! > O' Kind Father! We will be waiting for your affectionate hands ... > > -- Wang Pidong Department of Computer Science School of Computing National University of Singapore _______________________________________________ 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
