Good question

During loading of the memory phrase table, the language model score is
calculated for the target phrase side of each translation rule. Therefore
the LanguageModelSRI::GetValue() get called during load.

However, if you are using a binary phrase-table where translation rules are
loaded on demand, then the translation rules are only loaded during
translation. Therefore LanguageModelSRI::GetValue() is only called during
translation

Hieu Hoang
http://www.hoang.co.uk/hieu

On 20 November 2015 at 00:39, koormoosh <[email protected]> wrote:

> Hi Hieu,
>
> Just put cout<<"IAMCALLINGDECODER"<<endl; in the SRI.cpp,
> LanguageModelSRI::GetValue function under moses/LM/SRI.cpp.
> bjam moses with-srilm, and do the trucasing, training, tuning, and etc to
> get the moses.ini. Then call moses to load things into the memory using:
>  ./moses -f ../scripts/training/train/model/moses.ini
> It spits out "IAMCALLINGDECODER".
>
> The confusion is the reason that it calls the decoder when it's loading
> quantities into the memory to prepare for translating.
>
> On Fri, Nov 20, 2015 at 11:00 AM, Hieu Hoang <[email protected]> wrote:
>
>> I'm not sure what you mean. Can you give an example or point to the exact
>> part of the code where it does this
>>
>> Hieu Hoang
>> http://www.hoang.co.uk/hieu
>>
>> On 19 November 2015 at 13:47, koormoosh <[email protected]> wrote:
>>
>>> Hi,
>>>
>>> What is the reason that during loading moses in the test time using:
>>>
>>> ./moses -f ../scripts/training/train/model/moses.ini
>>>
>>> it calls the decoder before it fully loads itself and gets ready for
>>> translating?
>>>
>>> *** please note that I am talking about the period after running the
>>> above line and right "before" asking a test sentence to be translated. I
>>> understand that it needs to call the decoder when a test sentence is asked.
>>>
>>> Thanks
>>> koorm
>>>
>>> _______________________________________________
>>> 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

Reply via email to