Hi, Nick
Many thanks, it works perfectly.
Now I can tune my system with my NNJM.
I think the MOSES homepage
http://www.statmt.org/moses/?n=FactoredTraining.BuildingLanguageModel#ntoc31
should redirect the download link to nplm. if you compile with the nplm in that link, that doesn't work.
Also, in "Querying" part, should notice to add following! line to "moses.ini"
[weight]
BilingualNPLM0= (some weight)
thanks again,
Helson
------------ 원본 메일 내용 ------------
보낸 사람 : "Nikolay Bogoychev"<[email protected]>
받는 사람 : "Jianri Li" <[email protected]>
참 조 : "moses-support" <[email protected]>
메일 제목 : Re: [Moses-support] where is 'premultiply' member of class 'neuralLM' ?
보낸 날짜 : Sun, 8 Feb 2015 10:09:41 +0000
Hey,I replied to your previous query but I g! ot mail delivery failiure notification, so I am trying again: In order to use NPLM with moses you should use this fork of NPLM: https://github.com/rsennrich/nplmCheers,Nick
On Sun, Feb 8, 2015 at 9:38 AM, Jianri Li <[email protected]> wrote:
Hi, allI resend the mail in case my description is not clear.When I compile MOSES with nplm, I got a error message like following:moses/LM/NeuralLMWrapper.cpp:37:22: error: ‘class nplm::neuralLM’ has no member named ‘premultiply’then I looked up the file "moses/LM/NeuralLMWrapper.cpp", found the code like this:---------------#include "NeuralLMWrapper.h"#include "neuralLM.h"... ...m_neuralLM_shar! ed = new nplm::neuralLM();m_neuralLM_shared->read(m_filePath);m_neuralLM_shared->premultiply();... ...--------------obviously it calls the class member "premultiply" of class "neuralLM", which is used for pre-computation if there is only one hidden layer.However when I go back to the nplm folder and found none of the following header files or cpp files contain any member named "premultiply","neuralClasses.h","neuralLM.h","neuralNetwork.h",Of course the np! lm and moses are both lastest version.I am now really confused about this.I know the moses has supported the nplm for several months already, but I cannot find any similar problem in moses mail-list history or through Googling.Did I missed something or shoud I write the "premulply" member by myself?I guess it is not a serious problem and I just didn't get it.Thank you for your attention.Helson
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support
