Hi Panos

This is the problem 

> secondsERROR:Size of scoreVector != number (4!=5) of score components on
> line 1

Your phrase table has 4 scores for each entry, whilst your moses.ini specifies 
5 scores. One of them is incorrect,

best regards - Barry

On Wednesday 06 July 2011 13:13, Panagiotis Kanavos wrote:
> Hi Barry,
> Thanks for your reply. When I use the text files instead of the binaries,
> the error is different. Sorry for not noticing this. Anyway, here is my
> moses.ini: ############################ MOSES CONFIG FILE
> ############################ # input factors[input-factors]0
> # mapping steps[mapping]0 T 0
> # translation tables: table type (hierarchical(0), textual (0), binary
> (1)), source-factors, target-factors, number of scores, file# OLD FORMAT is
> still handled for back-compatibility# OLD FORMAT translation tables:
> source-factors, target-factors, number of scores, file# OLD FORMAT a binary
> table type (1) is assumed[ttable-file]0 0 0 5
> /home/panos/USERS/USER01/CORPORA//model/phrase-table.gz # no generation
> models, no generation-file section
> # language models: type(srilm/irstlm), factors, order, file[lmodel-file]0 0
> 5 /home/panos/USERS/USER01/LMS/EL.lm
>
> # limit on how many phrase translations e for each phrase f are loaded# 0 =
> all elements loaded[ttable-limit]20 # distortion (reordering)
> files[distortion-file]0-0 wbe-msd-bidirectional-fe-allff 6
> /home/panos/USERS/USER01/CORPORA//model/reordering-table.wbe-msd-bidirectio
>nal-fe.gz # distortion (reordering) weight[weight-d]0.30.30.30.30.30.30.3
> # language model weights[weight-l]0.5000
>
> # translation model weights[weight-t]0.200.200.200.200.20
> # no generation models, no weight-generation section
> # word penalty[weight-w]-1
> [distortion-limit]6
> ###############################################
> This is the output with the error message when I run Moses (with the
> text-based phrase-table and LM):
> ###############################################Defined parameters (per
> moses.ini or switch):        config: moses.ini        distortion-file: 0-0
> wbe-msd-bidirectional-fe-allff 6
> /home/panos/USERS/USER01/CORPORA//model/reordering-table.wbe-msd-bidirectio
>nal-fe.gz        distortion-limit: 6        input-factors: 0       
> lmodel-file: 0 0 5 /home/panos/USERS/USER01/LMS/EL.lm        mapping: 0 T 0
>        ttable-file: 0 0 0 5
> /home/panos/USERS/USER01/CORPORA//model/phrase-table.gz       
> ttable-limit: 20        weight-d: 0.3 0.3 0.3 0.3 0.3 0.3 0.3       
> weight-l: 0.5000        weight-t: 0.20 0.20 0.20 0.20 0.20        weight-w:
> -1Loading lexical distortion models...have 1 modelsCreating lexical
> reordering...weights: 0.300 0.300 0.300 0.300 0.300 0.300Loading table into
> memory...done.Start loading LanguageModel
> /home/panos/USERS/USER01/LMS/EL.lm : [56.000] secondsFinished loading
> LanguageModels : [57.000] secondsStart loading PhraseTable
> /home/panos/USERS/USER01/CORPORA//model/phrase-table.gz : [57.000]
> secondsfilePath:
> /home/panos/USERS/USER01/CORPORA//model/phrase-table.gzFinished loading
> phrase tables : [57.000] secondsStart loading phrase table from
> /home/panos/USERS/USER01/CORPORA//model/phrase-table.gz : [57.000]
> secondsERROR:Size of scoreVector != number (4!=5) of score components on
> line 1 #########################################################
> And these are the first 10 lines of the phrase-table.gz:
> ########################################################! " -so please give
> this ||| συγκεκριμένου ||| 0.00625 1.89112e-20 1 0.0007141 ||| ||| 160 1! "
> ; ||| ! " ; ||| 1 0.033953 1 0.0280742 ||| ||| 1 1! " < < endl ; ||| ! " <
> < endl ; ||| 1 0.0166462 1 0.014811 ||| ||| 1 1! " < < endl ||| ! " < <
> endl ||| 1 0.243301 1 0.27497 ||| ||| 1 1! " < < ||| ! " < < ||| 1 0.243301
> 1 0.412454 ||| ||| 1 1! " < ||| ! " < ||| 1 0.347476 1 0.463652 ||| ||| 1
> 1! " appears again . ||| εμφανίζεται ξανά ||| 0.0666667 1.09136e-09 1
> 0.0429594 ||| ||| 15 1! " appears again ||| εμφανίζεται ξανά ||| 0.0666667
> 1.50199e-07 1 0.0429594 ||| ||| 15 1! " appears ||| εμφανίζεται |||
> 0.000447628 3.6967e-07 1 0.19628 ||| ||| 2234 1! " for a procedure or find
> ||| για μια διαδικασία ή να βρει ||| 0.333333 1.49572e-08 1 6.26573e-05 |||
> ||| 3 1 ##########################################################
> Thank you.
> Panos Kanavos
>
> > From: [email protected]> To: [email protected]
> > Subject: Re: [Moses-support] errors during decoding
> > Date: Wed, 6 Jul 2011 12:46:54 +0100
> > CC: [email protected]
> >
> > Hi Panos
> >
> > Could you post your ini file and moses output to the list? There may be
> > an error in the ini file,
> >
> > best regards - Barry
> >
> > On Wednesday 06 July 2011 12:20, Panagiotis Kanavos wrote:
> > > Hi all,
> > > I'm trying a new installation of Moses in an Ubuntu 10.04 Server
> > > machine. I have installed these components: Moses from svn, giza++
> > > version 1:1.0.5 and srilm version 1.5.11 (Eric Nichols' packages for
> > > Ubuntu Lucid). The error I get when I try to run Moses is
> > > this:-------------------------moses: TargetPhrase.cpp:153: void
> > > Moses::TargetPhrase::SetScore(const Moses::ScoreProducer*, const
> > > Moses::Scores&, const std::vector<float, std::allocator<float> >&,
> > > float, const Moses::LMList&): Assertion `weightT.size() ==
> > > scoreVector.size()' failed.------------------------- After googling I
> > > read that this is probably due to the new moses.ini format, but my .ini
> > > is correct. I also tried to use a binarized version of the phrase table
> > > and the language model (modifying accordingly the .ini file), but the
> > > error remains. Moses was compiled and linked successfully to srilm,
> > > boost, xmlrpc-c. Is it possible that I need to manually compile and
> > > install newer versions of giza++ and srilm instead of using the Ubuntu
> > > packages? Many thanks in advance.
> > > Panos Kanavos
> >
> > --
> > The University of Edinburgh is a charitable body, registered in
> > Scotland, with registration number SC005336.

-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.


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

Reply via email to