in the sample from
http://www.statmt.org/moses/download/sample-models.tgz
the phrase table contains only one feature score

while when you train your own phrase table using the Moses training script
you produce a PT with 5 feature scores, becuase this is the default of Moses.

if you want to use such PT, you have to change your configuration file 
accordingly:
- the third field of the "ttable-file" parameter should be 5 (scores))
- specify  5 TM weights

something like the following....

regards,
nicola


# translation tables: source-factors, target-factors, number of scores, file
 [ttable-file]
 0 0 5 phrase-table

 # translation model weights
 [weight-t]
 1
 1
 1
 1
 1


On 11/10/09 11:09 AM, "Kranthi Achanta" <[email protected]> wrote:

Hello All,

            We downloaded the sample phrase table & language model from the 
Moses website: http://www.statmt.org/moses/?n=Moses.Tutorial  and tried passing 
this phrase table to the decoder that we built in windows machine. We have 
given the input sentence 'das ist ein klein haus' to the decoder and it worked 
well giving the output as 'this is a small house'.
Problem: Now, we tried generating a similar phrase table using the above 
attached input files '' and it generated the phrase table as attached ''. We 
see a vast difference between the 2 phrase tables and the probabilities are 
also different from the same phrase table. And when we ran the decoder using 
this phrase table, we got the following Error: 'ERROR:Size of scoreVector != 
number (5!=1) of score components on line 1'.

Thanks & Regards,
Kranthi.A

________________________________

From: [email protected] [mailto:[email protected]] On 
Behalf Of Kranthi Achanta
Sent: Tuesday, November 10, 2009 9:21 AM
To: [email protected]
Subject: [Moses-support] Urgent Help on building phrase table

Hello All,
           I am a beginner trying to use moses for our translation engine and 
initially build a phrase table for French to English language conversion in 
windows machine using cygwin. I could build the decoder exe and phrase table 
for some sample corpus, but when I try executing the decoder for a small French 
sentence using the generated phrase table, I always get 'ERROR:Size of 
scoreVector != number (5!=1) of score components on line 1' which I do not 
understand. I tried building phrase tables atleast 5 times on different corpus 
each time but still I get the same error. Please find the attached error log 
and assist me what went wrong and let me know if you need to know any other 
details further.

Thanks & Regards,
Kranthi.A




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

Reply via email to