Thanks Hieu.

One last question. What do you think is the best way to load the SRILM language 
model inside my custom feature function and to get a score for a string that my 
feature function created?

Best,
Jasneet
> On Jan 17, 2016, at 3:45 AM, Hieu Hoang <hieuho...@gmail.com> wrote:
> 
> 
> 
> On 17/01/16 04:05, Jasneet Sabharwal wrote:
>> Thanks Hieu,
>> 
>> I had subscribed to the mailing list and I’m getting the digest, but not 
>> sure why my email went for your approval. When I get the alignments from 
>> GetAlignTerm(), the index of the source word is relative? To get the index 
>> in the source sentence, I’m assuming that I would need to get the starting 
>> position of the source words from CurrSourceWordsRange().GetStartPos() from 
>> current hypothesis and offset the source alignment index with that value?
> yep. And to get the index in the target sentence, use 
> GetCurrTargetWordsRange().GetStartPos()
>> 
>> Regards,
>> Jasneet 
>>> On Jan 15, 2016, at 3:43 AM, Hieu Hoang < 
>>> <mailto:hieuho...@gmail.com>hieuho...@gmail.com 
>>> <mailto:hieuho...@gmail.com>> wrote:
>>> 
>>> please subscribe to the Moses mailing list before posting to it. You can 
>>> subscribe here:
>>>    http://mailman.mit.edu/mailman/admin/moses-support 
>>> <http://mailman.mit.edu/mailman/admin/moses-support>
>>> To answer you question - the target phrase has a method called 
>>>    GetAlignTerm()
>>> that contains the alignment for terminals. This comes from the 
>>> phrase-table, and ultimately from the word alignment. 
>>> 
>>> -------- Forwarded Message --------
>>> Subject:    Moses-support post from  
>>> <mailto:jasneet.sabhar...@sfu.ca>jasneet.sabhar...@sfu.ca 
>>> <mailto:jasneet.sabhar...@sfu.ca> requires approval
>>> Date:       Wed, 13 Jan 2016 23:36:50 -0500
>>> From:       moses-support-ow...@mit.edu <mailto:moses-support-ow...@mit.edu>
>>> To: moses-support-ow...@mit.edu <mailto:moses-support-ow...@mit.edu>
>>> 
>>> As list administrator, your authorization is requested for the
>>> following mailing list posting:
>>> 
>>>     List:    Moses-support@mit.edu <mailto:Moses-support@mit.edu>
>>>     From:    jasneet.sabhar...@sfu.ca <mailto:jasneet.sabhar...@sfu.ca>
>>>     Subject: Getting alignments for current hypothesis in phrase based model
>>>     Reason:  Post by non-member to a members-only list
>>> 
>>> At your convenience, visit:
>>> 
>>>     http://mailman.mit.edu/mailman/admindb/moses-support 
>>> <http://mailman.mit.edu/mailman/admindb/moses-support>
>>>         
>>> to approve or deny the request.
>>> 
>>> 
>>> 
>>> <ForwardedMessage.eml><ForwardedMessage.eml>
>> 
>> 
>> 
>> _______________________________________________
>> Moses-support mailing list
>> Moses-support@mit.edu <mailto:Moses-support@mit.edu>
>> http://mailman.mit.edu/mailman/listinfo/moses-support 
>> <http://mailman.mit.edu/mailman/listinfo/moses-support>
> 
> -- 
> Hieu Hoang
> http://www.hoang.co.uk/hieu <http://www.hoang.co.uk/hieu>
_______________________________________________
Moses-support mailing list
Moses-support@mit.edu
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to