[Moses-support] Fwd: the member variable m_lhsTarget in TargetPhrase.h

2012-02-15 Thread Hieu Hoang
Fyi Hieu Sent from my flying horse Begin forwarded message: *From:* Abby Levenberg leven...@gmail.com *Date:* 15 February 2012 06:33:17 PM GMT+07:00 *To:* Hieu Hoang hieuho...@gmail.com *Subject:* *Re: the member variable m_lhsTarget in TargetPhrase.h* snt_index is the data structure to index

[Moses-support] A little bug in extract-parallel.perl

2012-02-15 Thread Guchun Zhang
Hi, I'd like to report a little bug inside generic/extract-parallel.perl on line 104. For the current code, the ordering file will never be produced under the parallel scenario as $TMPDIR/extract.0.o never exists. It's quite straightforward to remove the bug as follows, changing from if (-e

Re: [Moses-support] [SOLVED?] GetLMImplementation function

2012-02-15 Thread Sylvain Raybaud
Hi Thanks for the feedback. I made the changes you suggested to avoid heap allocation. However, I gave the example of unigram_score only because it's the simplest one, but I mostly need 3 gram and 5 gram scores, and unigram, bigram and 3-gram existence. For example: float

Re: [Moses-support] A little bug in extract-parallel.perl

2012-02-15 Thread Guchun Zhang
Hi, It's actually the best to change from line 101 to line 118 to *my $numStr = NumStr(0); if (-e $TMPDIR/extract.$numStr) { `$extractCmd`; } if (-e $TMPDIR/extract.$numStr.inv) { `$extractInvCmd`; } if (-e $TMPDIR/extract.$numStr.o) { `$extractOrderingCmd`; } } else { if (-e

Re: [Moses-support] A little bug in extract-parallel.perl

2012-02-15 Thread Hieu Hoang
hi guchun thanks for the patch, it's been committed. https://github.com/moses-smt/mosesdecoder/commit/7073f7d89168dc14112a6fd7a34cda9efd5fd6b3 you can also do git pull requests on github to any ambiguity when submitting patches. Or i can give you commit access to the moses repository. On