Re: [Moses-support] Trying to do fancy things with LMs; need some advice.

2011-03-23 Thread Hieu Hoang
StaticData is the 'global' class which all other classes can reference so you should avoid adding #include to StaticData.h otherwise you'll get circular dependencies. therefore, use a forward declaration of your class ChunkLMFF in StaticData.h, instead of #include ChunkLMFF.h i'm not

[Moses-support] Trying to do fancy things with LMs; need some advice.

2011-03-18 Thread Dennis Mehay
Hello all, I am trying to do something rather fancy with Moses by modifying the way Moses uses LMs. What I want to do is somewhat akin to the LanguageModelSkip.h code that is in the repository, in that I want to score sequences over only certain factors from the string (to extend the reach and,

Re: [Moses-support] Trying to do fancy things with LMs; need some advice.

2011-03-18 Thread Kenneth Heafield
I think you'd be better off implementing your own StatefulFeatureFunction, bypassing LanguageModel.{h,cpp} which mostly handles n-grams crossing phrase boundaries, and calling the LanguageModelImplementation as the backend. You'll probably want larger beams too. Kenneth On 03/18/11 13:38,