Re: [Moses-support] Fwd: Question on Phrase Extraction implementation

2014-08-05 Thread liling tan
Dear Hieu, Thanks for the note on thax and the original .cpp code. Fredik fixed the bug. Apparently there was an error in the original textbook print and it was addressed in the errata but i didn't notice it. http://stackoverflow.com/questions/25109001/phrase-extraction-algorithm-for-statistical-

Re: [Moses-support] Fwd: Question on Phrase Extraction implementation

2014-08-04 Thread Hieu Hoang
hi liling On 3 August 2014 22:02, liling tan wrote: > > Dear Moses community, > > I have reimplemented the phrasal extraction algorithm as presented on the > page 133 of Philip Koehn's SMT book for NLTK in > https://github.com/alvations/nltk/blob/develop/nltk/align/phrase_based.py > > However,

[Moses-support] Fwd: Question on Phrase Extraction implementation

2014-08-03 Thread liling tan
Dear Moses community, I have reimplemented the phrasal extraction algorithm as presented on the page 133 of Philip Koehn's SMT book for NLTK in https://github.com/alvations/nltk/blob/develop/nltk/align/phrase_based.py However, there is some bug that i can't figure out why am I not achieving the