the ini file looks correct. you might want to give the 2nd phrase table a
limit too, eg.
    [ttable-limit] 
    20
    20

the bug was fixed, get the updates via svn:
    svn update
and recompile
 
Hieu Hoang
www.hoang.co.uk/hieu
 

  _____  

From: marco turchi [mailto:[EMAIL PROTECTED] 
Sent: 03 January 2008 19:52
To: Hieu Hoang
Subject: Re: [Moses-support] multiple phrase tables, segmentation fault


Hi Hieu, 
I have the same problem.
I want to use 2 phrase tables generated by 2 different dataset, and I'd like
that Moses will use both the phrase tables... I have set the moses.ini in
the following way:
# mapping steps 
[mapping]
0 T 0
1 T 1

# translation tables: source-factors, target-factors, number of scores, file
[ttable-file]
0 0 5
/exports/gpfs/enxmt/AssociationProject/GermanCorpus/PhraseTable/phrase-table
.0-0 
0 0 3
/exports/gpfs/enxmt/AssociationProject/GermanCorpus/AssPhraseTable/From15ToI
nf/phrase-table.0-0

# no generation models, no generation-file section

# language models: type(srilm/irstlm), factors, order, file 
[lmodel-file]
0 0 3
/exports/gpfs/enxmt/AssociationProject/GermanCorpus/LM/srilmEurparl.en.lm


# limit on how many phrase translations e for each phrase f are loaded
# 0 = all elements loaded
[ttable-limit] 
20
0
0
Is it correct? are correct the ttable-limit values?
Then I guess that I'm in the same situation that has generated the bug
because I get "segmentation fault"... is it?
Has it been fixed? What Shall I update  in Moses? 

Thanks a lot
Marco

 


On Nov 13, 2007 4:32 PM, Hieu Hoang <[EMAIL PROTECTED]> wrote:


Ok guys. Error in to of the copy constructors. Should be fixed now,
sorry for the trouble


Hieu Hoang
www.hoang.co.uk/hieu  <http://www.hoang.co.uk/hieu> 


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] ] On Behalf Of Preslav Nakov
Sent: 13 November 2007 15:41
To: [email protected]
Subject: Re: [Moses-support] multiple phrase tables, segmentation fault


Just for the record. I get exactly the same error. 

Preslav

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> ]
On Behalf Of Lene Offersgaard
Sent: Tuesday, November 13, 2007 3:00 AM
To: [email protected]
Subject: [Moses-support] multiple phrase tables, segmentation fault 

Hi,

I try to use moses with two phrase tables.

When running: moses-cmd/src/moses -config mpt/moses.ini < mpt/JVa.da I
get a segmentation fault. Output and moses.ini included below

What do I do wrong? 
I'm running Linux 2.6.22.5-49.fc6
Both phrase tables can be used alone without problems.

Thanks in advance for a hint,
Lene Offersgaard

Output :
===========
Defined parameters (per moses.ini or switch):
       config: mpt/moses.ini
       distortion-limit: 1
       input-factors: 0
       lmodel-file: 1 0 5 mpt/j3uen.lm5.gz
       mapping: 0 T 0 1 T 1
       ttable-file: 0 0 5 /proj/SMT/MOSESi/mpt/phrase- table3.0-0 0 0 5
/proj/SMT/MOSESi/mpt/phrase-table4.0-0
       ttable-limit: 20 20 0
       weight-d: 0.3
       weight-l: 0.5000
       weight-t: 0.3 0.3 0.3 0.3 0.3 0.15 0.15 0.15 0.15 0.15
       weight-w: -1 
Loading lexical distortion models...
have 0 models
Start loading LanguageModel mpt/j3uen.lm5.gz : [0.000] seconds ...
Finished loading LanguageModels : [56.000] seconds Start loading
PhraseTable /proj/SMT/MOSESi/mpt/phrase- table3.0-0 :
[56.000] seconds
Start loading PhraseTable /proj/SMT/MOSESi/mpt/phrase-table4.0-0 :
[75.000] seconds
Finished loading phrase tables : [93.000] seconds
IO from STDOUT/STDIN
Created input-output object : [ 93.000] seconds
Translating: vi er nødt til at vise konsekevens .

Lagersegmentfejl  (In english: Segmentation fault)

 From moses.ini:
===========
[input-factors]
0

[mapping]
0 T 0
1 T 1 

[ttable-file]
0 0 5 /proj/SMT/MOSESi/mpt/phrase-table3.0-0
0 0 5 /proj/SMT/MOSESi/mpt/phrase-table4.0-0
...
[weight-t]
0.3
0.3
0.3
0.3
0.3
0.15
0.15
0.15
0.15
0.15
=========== 

_______________________________________________
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


_______________________________________________
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



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

Reply via email to