You can't use LexicalReordering with hierarchical model

On 09/10/2015 22:40, surya wrote:
> Hi,
>
> I have trained a parallel corpus using hierarchical model providing my
> own set of alignments with the command:
>
> ~/moses/mosesdecoder-master/scripts/training/train-model.perl
> -hierarchical -glue-grammar -max-phrase-length 5 -root-dir train -corpus
> ~/moses/surya/en-fa -f en -e fa -alignment alignment-x -reordering
> msd-bidirectional-fe -lm
> 0:3:/home/vishwajit/moses/corpus/lm/farsi.blm.en -external-bin-dir
> ~/moses/mosesdecoder-master/tools/  --first-step 4 >& training.out &
>
>
> When, I am trying to decode using chart-decoder with the following
> command (without tuning)
>
> ~/moses/mosesdecoder-master/bin/moses_chart -f ~/train/model/moses.ini
> -max-chart-span 1000 < ~/train/model/en-fa.en
>
> I am getting the following error:
>
> "Translating: <s> this finding led to more explorations . </s>  |||
> [0,0]=X (1) [0,1]=X (1) [0,2]=X (1) [0,3]=X (1) [0,4]=X (1) [0,5]=X (1)
> [0,6]=X (1) [0,7]=X (1) [0,8]=X (1) [1,1]=X (1) [1,2]=X (1) [1,3]=X (1)
> [1,4]=X (1) [1,5]=X (1) [1,6]=X (1) [1,7]=X (1) [1,8]=X (1) [2,2]=X (1)
> [2,3]=X (1) [2,4]=X (1) [2,5]=X (1) [2,6]=X (1) [2,7]=X (1) [2,8]=X (1)
> [3,3]=X (1) [3,4]=X (1) [3,5]=X (1) [3,6]=X (1) [3,7]=X (1) [3,8]=X (1)
> [4,4]=X (1) [4,5]=X (1) [4,6]=X (1) [4,7]=X (1) [4,8]=X (1) [5,5]=X (1)
> [5,6]=X (1) [5,7]=X (1) [5,8]=X (1) [6,6]=X (1) [6,7]=X (1) [6,8]=X (1)
> [7,7]=X (1) [7,8]=X (1) [8,8]=X (1)
>
> Check 0 failed in moses/LexicalReordering.h:51
> Aborted (core dumped)"
>
> I have trained the system using English as both target and the source
> language. The target side(English) is pre-ordered form for Farsi
> language.
>
> Can someone help me with the issue.
>
> Also I am not getting the expected output while training the
> hierarchical model using the "--extract-options". I used the following
> command:
>
> ~/moses/mosesdecoder-master/scripts/training/train-model.perl
> -hierarchical -glue-grammar -max-phrase-length 8
> --extract-options="--DisallowNonTermConsecSource" -root-dir train
> -corpus ~/moses/surya/en-fa -f en -e fa -alignment alignment-x
> -reordering msd-bidirectional-fe -lm
> 0:3:/home/vishwajit/moses/corpus/lm/farsi.blm.en --first-step 4 >&
> training.out &
>
>
> Thanks,
> Surya Kant Agarwal
> IIT Bombay
> _______________________________________________
> Moses-support mailing list
> [email protected]
> http://mailman.mit.edu/mailman/listinfo/moses-support
>

-- 
Hieu Hoang
http://www.hoang.co.uk/hieu

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

Reply via email to