hi sylvain

i don't know the answer but from what i see, mosesserver still compiles

On 07/02/2012 19:24, Sylvain Raybaud wrote:
> Hi, List
>
> I've been digging into this but I'm still clueless... I really need to get the
> LanguageModelImplementation object, but nowhere in Base.h/cpp or in specific
> implementations like Ken.h/cpp could I find where it refers to
> LanguageModelImplementation. Is it still used at all?
>
> By the way, I think mosesserver has got the same problem since its
> implementation uses the same methods I used.
>
> regards,
>
> Sylvain
>
> On Monday 06 February 2012 13:20:07 Sylvain Raybaud wrote:
>> Hello
>>
>> I'm trying to update a software that makes use of Moses API. It uses (among
>> others) Moses' LanguageModel and LanguageModelImplementation classes. It
>> used to call method GetLMImplementation of an object of type LanguageModel,
>> in order to use methods NewState and GetValueForgotState of class
>> LanguageModelImplementation. That was in august. Unfortunatelly, now I've
>> pulled a new version of Moses from git, and method GetLMImplementation
>> seems to have vanished. Methods NewState and GetValueForgotState seems to
>> still be implemented in class LanguageModelImplementation. Now I can get
>> the LM using:
>>
>>    TranslationSystem ts =
>> StaticData::Instance().GetTranslationSystem(std::string("default")); LMList
>> list = ts.GetLanguageModels();
>>    LanguageModel *lm = *(list.begin());
>>
>> But I could not find a way to get the LanguageModelImplementation object in
>> order to call aforementioned method. Do you have an idea of what I should
>> change in the code?
>>
>> By the way, documentation on http://www.statmt.org/moses/html/hierarchy.html
>> seems to be obsolete, as it seems to be lacking many files, classes and
>> functions.
>>
>> regards,
>>
>> Sylvain
>> _______________________________________________
>> 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