Hi Panos

Your ini file is hard to read when you paste it in, as all the lines get run 
together. The error message indicates that you probably have the wrong number 
of reordering/distortion scores. Note the following from the documentations:

"
The weights sections of the configuration file must have the correct numbers of 
weights for each of the models, and there must be a word penalty and linear 
distortion weight for each translation system. The lexicalised reordering 
weights (if any) must be specified in the [weight-lr] stanza, with the 
distortion penalty in the [weight-d] stanza. 
"

best regards - Barry

On Thursday 07 Jul 2011 10:14:54 Panagiotis Kanavos wrote:
> Hi all,
> I'm trying to use the multiple translations feature for bidirectional
>  translation. I have carefully modified my moses.ini, but I always get the
>  error: "ERROR:Mismatch between number of distortion scores and number of
>  translation systems". This is my .ini:
> ############################ MOSES CONFIG FILE ############################
> # D - decoding path, R - reordering model, L - language
>  model[translation-systems]eg D 0 R 0 L 0ge D 1 R 1 L 1 # input
>  factors[input-factors]0
> # mapping steps[mapping]0 T 01 T 1
> # 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]1 0 0 5
>  /home/USER01/PHRTABLES/phrase-tableeg1 0 0 5
>  /home/USER01/PHRTABLES/phrase-tablege # no generation models, no
>  generation-file section
> # language models: type(srilm/irstlm), factors, order, file[lmodel-file]8 0
>  5 /home/USER01/LMS/KENLM_eg.binary8 0 5 /home/USER01/LMS/KENLM_ge.binary
> 
> # 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/USER01/REORDERTABLES/reordering-table0-0
>  wbe-msd-bidirectional-fe-allff 6
>  /home/USER01/REORDERTABLES/reordering-tableElEn# distortion (reordering)
>  weight[weight-d]0.30.30.30.30.30.30.30.30.30.30.30.30.30.3 # language
>  model weights[weight-l]0.50000.5000# translation model
>  weights[weight-t]0.200.200.200.200.200.200.200.200.200.20 # no generation
>  models, no weight-generation section
> # word penalty[weight-w]-1-1
> [distortion-limit]6
> #############################################
> Many thanks in advance.
> Panos Kanavos
> 
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to