Moses-support Digest, Vol 93, Issue 12

Send Moses-support mailing list submissions to
moses-support@mit.edu

To subscribe or unsubscribe via the World Wide Web, visit
http://mailman.mit.edu/mailman/listinfo/moses-support
or, via email, send a message with subject or body 'help' to
moses-support-request@mit.edu

You can reach the person managing the list at
moses-support-owner@mit.edu

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Moses-support digest..."


Today's Topics:

1. Re: How to use the NeuralLM (wangrui.nlp@gmail.com)
2. Re: How to use the NeuralLM (Kenneth Heafield)


----------------------------------------------------------------------

Message: 1
Date: Thu, 10 Jul 2014 11:40:39 +0200
From: "wangrui.nlp@gmail.com" <wangrui.nlp@gmail.com>
Subject: Re: [Moses-support] How to use the NeuralLM
To: "Hieu.Hoang" <Hieu.Hoang@ed.ac.uk>
Cc: moses-support <moses-support@mit.edu>, moses-support-request
<moses-support-request@mit.edu>
Message-ID: <201407101140392198945@gmail.com>
Content-Type: text/plain; charset="utf-8"

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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/mailman/private/moses-support/attachments/20140710/44dabfcf/attachment-0001.htm

------------------------------

Message: 2
Date: Thu, 10 Jul 2014 08:14:22 -0700
From: Kenneth Heafield <moses@kheafield.com>
Subject: Re: [Moses-support] How to use the NeuralLM
To: moses-support@mit.edu
Message-ID: <53BEADCE.3020802@kheafield.com>
Content-Type: text/plain; charset=UTF-8

Hi,

The code is meant to be used with my fork of NPLM:
https://github.com/kpu/nplm . Or even better, Rico Sennrich's fork of
my fork: https://github.com/rsennrich/nplm

Kenneth

On 07/10/14 02:40, wangrui.nlp@gmail.com wrote:
> 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
> 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


End of Moses-support Digest, Vol 93, Issue 12
*********************************************

0 Response to "Moses-support Digest, Vol 93, Issue 12"

Post a Comment