I have implement the NPLM tookit, both the original one and the thread safe one. When I integrate NPLM into latest version Moses, using "./bjam ... --with-nplm=path to nplm, "I found many errors. Firstly, the "lm/wrappers/nplm.cc and lm/wrappers/nplm.hh" is needed. I found it is not in Moses, but in Kenlm toolkit, so I download from https://github.com/kpu/kenlm/tree/master/lm/wrappers . Then when I try it again, the error become: ------------------------------------------------ lm/wrappers/nplm.cc: In constructor ‘lm::np::Model::Model(const std::string&, size_t)’: lm/wrappers/nplm.cc:36: error: no matching function for call to ‘nplm::neuralLM::neuralLM(const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)’ /panfs/panmt/users/rwang/nplm-0.1/src/neuralLM.h:49: note: candidates are: nplm::neuralLM::neuralLM() /panfs/panmt/users/rwang/nplm-0.1/src/neuralLM.h:26: note: nplm::neuralLM::neuralLM(const nplm::neuralLM&) lm/wrappers/nplm.cc: In member function ‘lm::FullScoreReturn lm::np::Model::FullScore(const lm::np::State&, lm::WordIndex, lm::np::State&) const’: lm/wrappers/nplm.cc:60: error: ‘class nplm::neuralLM’ has no member named ‘staging_ngram’ lm/wrappers/nplm.cc:62: error: ‘class nplm::neuralLM’ has no member named ‘staging_ngram’ lm/wrappers/nplm.cc:63: error: ‘class nplm::neuralLM’ has no member named ‘lookup_from_staging’ In file included from /panfs/panmt/users/rwang/nplm-0.1/src/neuralLM.h:16, from lm/wrappers/nplm.cc:8: ------------------------------------------------ I tried mon both the original one and the thread safe one of NPLM.
-- ------------------ Yours sincerely, WANG Rui ------------------------------------------------------------- Joint Ph.D. Candidate Institute of Cognitive Science National Center for Scientific Research (CNRS, France) Ph.D. Candidate Department of Computer Science and Engineering, Shanghai Jiao Tong University (SJTU, China) Homepage : http://bcmi.sjtu.edu.cn/~wangrui/ Tel: +33-(0)-6 78 41 93 69 (Lyon, France) +86-18818272601(Shanghai, China)
_______________________________________________ Moses-support mailing list [email protected] http://mailman.mit.edu/mailman/listinfo/moses-support
