Hi Sašo,

Thanks, the edited command solved the problem.
But while executing the next step (using the model on the string as
suggested in the tutorial ('putin beschreibt menschen .')), I got another
issue:

Exception: moses\Word.cpp:142 in void
Moses::Word::CreateFromString(Moses::FactorDirection, const std::ve
 ctor<long unsigned int>&, const StringPiece&, bool, bool) threw
util::Exception because `!isNonTerminal &          & i <
factorOrder.size()'.
Too few factors in string 'putin'.

If it's an unrelated topic, I will start a new thread.

Thanks for your help,
Anna

2016-05-30 10:52 GMT+02:00 Sašo Kuntaric <saso.kunta...@gmail.com>:

> Hi Anna,
>
> I wouldn't change it manually, especially since you have multiple lms in
> factored training and you can get the "old and new format don't mix" error.
> Just use the command that Kenneth now changed on the website and you'll be
> fine.
>
> p.s. No problem Kenneth, we don't mind giving you extra work :-).
>
> Best regards,
>
> Sašo
>
> 2016-05-29 23:23 GMT+02:00 Kenneth Heafield <mo...@kheafield.com>:
>
>> It's KENLM, not KenLM according to Hieu, who did name it after all.
>>
>> Kenneth
>>
>> On 05/29/2016 10:19 PM, Anna Garbar wrote:
>> > Hi Sašo,
>> >
>> > Thanks for your reply. Before recompiling moses with srilm, I also tried
>> > to changed SRILM to KenLM im the moses.ini (under feature functions),
>> > but received "Feature name KenLM is not registered." Or did I have to
>> > make any other changes?
>> >
>> > Best,
>> > Anna
>> >
>> > 2016-05-29 23:10 GMT+02:00 Sašo Kuntaric <saso.kunta...@gmail.com
>> > <mailto:saso.kunta...@gmail.com>>:
>> >
>> >     Hi Anna,
>> >
>> >     You are probably using KenLM as it's the default language model
>> >     making tool. The factored tutorial however has the parameter for
>> >     using SRILM. In the "lm 0:3:factored-corpus/surface.lm:0" part of
>> >     the command, leave the last zero parameter ":0" out. Moses will then
>> >     use the default KenLM tool.
>> >
>> >     To the website authors: maybe it would be a good thing to mention
>> >     this in the tutorial as I had the same issue.
>> >
>> >     Best regards,
>> >
>> >     Sašo
>> >
>> >     2016-05-29 22:48 GMT+02:00 Rajen Chatterjee
>> >     <rajen.k.chatter...@gmail.com <mailto:rajen.k.chatter...@gmail.com
>> >>:
>> >
>> >         Hi,
>> >
>> >         Since you are using SRILM have you compiled Moses with this flag
>> >         "--with-srilm=/path/to/srilm" (look here for various compilation
>> >         options http://www.statmt.org/moses/?n=Development.GetStarted).
>> >
>> >         On Sun, May 29, 2016 at 9:48 PM, Anna Garbar
>> >         <anna.gar...@gmail.com <mailto:anna.gar...@gmail.com>> wrote:
>> >
>> >             Dear Moses Team,
>> >
>> >             I am working through the factored tutorial
>> >             (http://www.statmt.org/moses/?n=Moses.FactoredTutorial) and
>> >             when trying out the pos model on a sample sentence ('putin
>> >             beschreibt menschen .'), I receive
>> >
>> >             Exception: moses\FF\Factory.cpp:321 in void
>> >             Moses::FeatureRegistry::Construct(const string&, const
>> >             string&) threw UnknownFeatureException because `i ==
>> >             registry_.end()'.
>> >             Feature name SRILM is not registered.
>> >
>> >             The last command was:
>> >
>> >             /home/AG/mosesdecoder/bin/moses -f pos/model/moses.ini < in
>> >
>> >             Where should I look for mistake?
>> >
>> >             Thanks in advance,
>> >             Anna
>> >
>> >             _______________________________________________
>> >             Moses-support mailing list
>> >             Moses-support@mit.edu <mailto:Moses-support@mit.edu>
>> >             http://mailman.mit.edu/mailman/listinfo/moses-support
>> >
>> >
>> >
>> >
>> >         --
>> >         -Regards,
>> >          Rajen Chatterjee.
>> >
>> >         _______________________________________________
>> >         Moses-support mailing list
>> >         Moses-support@mit.edu <mailto:Moses-support@mit.edu>
>> >         http://mailman.mit.edu/mailman/listinfo/moses-support
>> >
>> >
>> >
>> >
>> >     --
>> >     lp,
>> >
>> >     Sašo
>> >
>> >
>> >
>> >
>> > _______________________________________________
>> > 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
>>
>
>
>
> --
> lp,
>
> Sašo
>
> _______________________________________________
> 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

Reply via email to