it may be that your corpus has a word the begins with [ and ends with ], eg.
   [word]
this format is used in the hierarchical rule table to denote a non-terminal so you should escape your corpus.

For example, change it to
   [ word ]
or
   (word)


On 14/07/2011 15:03, yuh_1983 wrote:
hello,
I encountered an error when runing moses hierarchical model in the six step of training.
score: score.cpp:434: void outputPhrasePair(std::vector<PhraseAlignment*, 
std::allocator<PhraseAlignment
*> >&, float): Assertion `bestAlignment->alignedToT[ j ].size() == 1' failed.
ERROR: Execution of: 
/home3/moses/scripts/target/scripts-20110527-1618/training/phrase-extract/score 
/home3/moses-En2Ch-tec/_train/model/extract.sorted 
/home3/moses-En2Ch-tec/_train/model/lex.f2e 
/home3/moses-En2Ch-tec/_train/model/rule-table.half.f2e  --Hierarchical
  died with signal 6, without coredump
my arguments:
${mosesScript}/training/train-model.perl \
            --scripts-root-dir "${mosesScript}" \
            --root-dir "${trainDir}"  \
            --corpus "${dataDir}/${trainPrefix}" \
            --f ${trainF} \
            --e ${trainE} \
            --max-phrase-length 7 \
            --hierarchical \
            --glue-grammar \
            --alignment grow-diag-final-and \
            --lm 0:5:"${lm}":0 \
            --first-step 4 \
            --parallel
some lines in extract.sorted :
! " ( [X] ||| " ( [X] ||| 0-0 1-0 2-1 ||| 0.5
! " ( [X] ||| ?? " ( [X] ||| 0-1 1-1 2-2 ||| 0.333333
! " ( [X] ||| ? ?? " ( [X] ||| 0-2 1-2 2-3 ||| 0.25
! " ( [X][X] [X] ||| " ( [X][X] [X] ||| 0-0 1-0 2-1 3-2 ||| 0.61292
! " ( [X][X] [X] ||| " ( [X][X] ? ? [X] ||| 0-0 1-0 2-1 3-2 ||| 0.0666667
some lines in lex.f2e:
?? pre-emptive 0.2222222
??? pre-emptive 0.1111111
?? pre-emptive 0.1111111
??? pre-emptive 0.1111111
?? pre-emptive 0.1111111
2011-07-14


_______________________________________________
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