Hi,

you have two values in the generation table,
but only one weight. Given the type of
generation step you are using, I would suggest
to either
(1) delete the second number in every line of the generation table
(2) use as generation weights the values 0.3 and 0. Note that this
will not work for tuning.

-phi


On 12/10/07, Phuong Thao <[EMAIL PROTECTED]> wrote:
> Dear Philipp Koehn,
>
> I had already fixed that error, but now I have another problem with 
> generation file also.
>
> Defined parameters (per moses.ini or switch):
>         config: model/moses.ini
>         distortion-limit: 6
>         generation-file: 0 1 
> /home/thao/Factored_Model/Corp/model/generation.0-1
>         input-factors: 0 1
>         input-file: test/test.txt
>         lmodel-file: 0 0 3 TrainingLM/NewCorp.lowercased.words.lm 0 1 5 
> TrainingLM/NewCorp.clean.vi.pos.lm
>         mapping: 0 T 0 0 G 0
>         ttable-file: 0 0 5 
> /home/thao/Factored_Model/Corp/model/phrase-table.0-0
>         ttable-limit: 20 0
>         weight-d: 0.2
>         weight-generation: 0.3
>         weight-l: 0.2500 0.2500
>         weight-t: 0.2 0.2 0.2 0.2 0.2
>         weight-w: -1
> ERROR:Expected at least 4 tokens per emtry in 'generation-file', but only 
> found 3
>
> - The generation file is as following:
>
> miễn_phí V 1.0000000  0.0018248
> công_nhận V 1.0000000  0.0000960
> 350 N 1.0000000  0.0000345
> giải_thích N 0.2857143  0.0001381
> giải_thích V 0.7142857  0.0009604
> bay V 1.0000000  0.0000960
>
> Is the generation file correct? I don't understand the meaning of "4 tokens" 
> in the error alert. Could you tell me about that?
> Thank you very much.
>
> Sincerely,
> Thao.
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Philipp Koehn
> Sent: Monday, December 10, 2007 7:52 AM
> To: Thao Nguyen
> Cc: [email protected]
> Subject: Re: [Moses-support] Problem in decoding phase
>
> Hi,
>
> the warning messages of the Perl script may be harmless.
>
> To debug your problem, we would need
> * the part of moses.ini that lists the generation model(s)
> * at least one line from the generation model file(s).
>
> -phi
>
> On 12/6/07, Thao Nguyen <[EMAIL PROTECTED]> wrote:
> > Dear Moses-support,
> >
> > I am trying to experiment with Moses using Factored Models but not 
> > successful
> > yet. I have some problems as the following:
> >
> > 1. In the training step, moses.ini file had been created including all 
> > required
> > information. But the program stopped with those lines:
> >
> > (9) create moses.ini @ Wed Dec  5 10:55:00 JST 2007
> > Use of uninitialized value in string eq at
> > /home/thao/bin/moses-scripts/scripts-20070917-0736/training/train-
> > factored-phrase-model.perl line 1440.
> > Use of uninitialized value in string eq at
> > /home/thao/bin/moses-scripts/scripts-20070917-0736/training/train-
> > factored-phrase-model.perl line 1530.
> >
> > So I wonder is there any thing wrong?
> >
> > 2. In the decoding step, the stopping point is:
> >
> > /home/thao/Factored_Model/Corp/model/generation.0-1
> > moses: StaticData.cpp:572: bool StaticData::LoadGenerationTables(): 
> > Assertion
> > `currWeightNum < weight.size()' failed.
> >
> > Could you tell me what problem I had? how can I solve it?
> > Thank you very much.
> >
> > Best regards,
> > Thao.
> >
> > _______________________________________________
> > Moses-support mailing list
> > [email protected]
> > http://mailman.mit.edu/mailman/listinfo/moses-support
> >
> >
>
>
>

_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to