Hi Abby, Currently there is no build rule for ORLM in Moses since we ditched automake. This is mostly because I do not know how to build ORLM or test it. Does it require external code? Could you send me a trivial example test?
Kenneth On 02/08/2012 12:14 PM, Barry Haddow wrote: > Hi Sylvain > > That part of the code is in a conditional compilation block, which is only > compiled when OLRM is switched on. I don't know how to switch it on using > bjam, but it looks like the LM refactoring broke it, > > cheers - Barry > > On Wednesday 08 February 2012 17:08:48 Sylvain Raybaud wrote: >> Hi >> >> It looks strange, since its calling >> LanguageModelORLM::GetLMImplementation which does not seem to be part of >> class LanguageModelORLM as defined in ORLM.h, nor in classes in inherits >> from. How do you compile it using bjam? I could not find out. >> >> regards, >> >> Sylvain >> >> On Tuesday 07 February 2012 20:05:54 Hieu Hoang wrote: >>> 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 >>>>> Moses-support@mit.edu >>>>> http://mailman.mit.edu/mailman/listinfo/moses-support >>> >>> _______________________________________________ >>> Moses-support mailing list >>> Moses-support@mit.edu >>> http://mailman.mit.edu/mailman/listinfo/moses-support >> > > -- > Barry Haddow > University of Edinburgh > +44 (0) 131 651 3173 > _______________________________________________ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support