Re: [Moses-support] where is premultiply member of class neuralLM ?

2015-02-08 Thread Nikolay Bogoychev
Hey,
I replied to your previous query but I got 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/nplm

Cheers,

Nick

On Sun, Feb 8, 2015 at 9:38 AM, Jianri Li skywal...@postech.ac.kr wrote:

  Hi, all

 I 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 nplm 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
 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


Re: [Moses-support] where is premultiply member of class neuralLM ?

2015-02-08 Thread Jianri Li


 		Hi, NickMany thanks, it works perfectly.Now I can tune my system with my NNJM.I think the MOSES homepagehttp://www.statmt.org/moses/?n=FactoredTraining.BuildingLanguageModel#ntoc31should 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"nhe...@gmail.com받는 사람 : "Jianri Li" skywal...@postech.ac.kr 참조  : "moses-support" moses-support@mit.edu메일 제목 : Re: [Moses-support] where is 'premultiply' member of class 'neuralLM' ?보낸 날짜 : Sun, 8 Feb 2015 10:09:41 +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,NickOn Sun, Feb 8, 2015 at 9:38 AM, Jianri Li skywal...@postech.ac.kr 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
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