Thanks, Hieu. I added this to moses.ini but the moses program turned out to
crash with a first input. Here is some dump:
-------------------------------
......
Start loading PhraseTable /users/mt/model1/phrase-table.0-0 : [2.000]
seconds
using binary phrase tables for idx 0
reading bin ttable
size of OFF_T 8
binary phrasefile loaded, default OFF_T: -1
Start loading PhraseTable /users/mt/model6/wordlist.pt : [3.000] seconds
using binary phrase tables for idx 1
reading bin ttable
size of OFF_T 8
binary phrasefile loaded, default OFF_T: -1
Finished loading phrase tables : [4.000] seconds
IO from STDOUT/STDIN
Created input-output object : [4.000] seconds
猫 有 九 命
Sentence: 猫 有 九 命
Translating: 猫 有 九 命


Program received signal SIGSEGV, Segmentation fault.
0x00000000006e3ba8 in main_arena ()
-------------------------------
If I comment the "1 T 1" in mapping section, the program works. At least it
works with the input above. Maybe you know where the issue is. I will try to
debug on it with your help. :-)

Liqi Gao

-----Original Message-----
From: Hieu Hoang [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 12, 2007 8:01 PM
To: 'Liqi Gao'; [email protected]
Subject: RE: [Moses-support] multiple phrase tables

Try adding this to your ini file

[mapping]
0 T 0
1 T 1


Hieu Hoang
www.hoang.co.uk/hieu


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Liqi Gao
Sent: 12 November 2007 10:03
To: [email protected]
Subject: [Moses-support] multiple phrase tables


Hi,
I am trying to use multiple phrase tables in Moses. I added parameters
of the second phrase table in moses.ini according the codes of
StaticData::LoadPhraseTable().
------------------------
[ttable-file]
0 0 5 /users/mt/model1/phrase-table.0-0
0 0 5 /users/mt/model6/wordlist.pt

[ttable-limit]
20
20
0

[weight-t]
0.2
0.2
0.2
0.2
0.2
0.3
0.3
0.3
0.3
0.3

------------------------

However, after moses was successfully restarted, I found the second
phrase table didn't work at all. Here is the proof:
------------------------
SCORES (UNWEIGHTED/WEIGHTED):
  -4.0000       -1.2000    0 distortion score
  -5.0000       5.0000     1 word penalty
  0.0000        0.0000     2 unknown word penalty
  -2.3154       -0.6946    3 Orientation Lexical Reordering Model
  -1.6094       -0.4828    4     "         "
  -1.0217       -0.3065    5     "         "
  -1.6094       -0.4828    6     "         "
  -1.6094       -0.4828    7     "         "
  -1.0217       -0.3065    8     "         "
  -42.1396      -21.0698           9 3-gram LM score, factor-type=0,
file=/users/mt/model1/IR343.blm.mm
  -43.9696      -8.7939   10 Translation score,
file=/users/mt/model1/phrase-table.0-0
  -69.3274      -13.8655          11     "         "
  -12.0997      -2.4199   12     "         "
  -15.0330      -3.0066   13     "         "
  4.9995        0.9999    14     "         "
  0.0000        0.0000    15 Translation score,
file=/users/mt/model6/kingsoft.pt
  0.0000        0.0000    16     "         "
  0.0000        0.0000    17     "         "
  0.0000        0.0000    18     "         "
  0.0000        0.0000    19     "         "
--------------------------

Can anyone help me with this problem? Any suggestion would be
appreciated.

Liqi Gao


_______________________________________________
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