In Moses the -hierarchical option is used for all syntax-based models, not just 
hierarchical phrase-based models.  It's fine to give both options.  If you give 
the -ghkm option then the GHKM extractor will be used instead of the 
Hiero-style rule extractor.

It's hard to tell why your system is slow without knowing more about it.  How 
much data is your model trained on?  4GB is only enough RAM for a small model, 
so the most likely problem is that moses is consuming all of your RAM and then 
swapping to disk.  

Phil

> On 7 Apr 2016, at 15:12, Ayah ElMaghraby <[email protected]> wrote:
> 
> Yes It didn’t work well. 
> Does giving –hierarchichal & -ghkm together during training make the rule 
> table huge !? But in the train-model.perl it looked fine.
> Will this extract too many grammar rules perhaps making my rule table huge? 
> How do they work together ?
> Or I shouldn’t be using them together ? Or its normal?
> It’s the first time for me to use ghkm extraction in moses I am still trying 
> it out. 
> I have string-to-tree system translating  from Arabic to English.
>  
> From: Philip Williams [mailto:[email protected] 
> <mailto:[email protected]>] 
> Sent: Thursday, April 07, 2016 11:03 AM
> To: Ayah ElMaghraby
> Cc: [email protected] <mailto:[email protected]>
> Subject: Re: [Moses-support] GHKM translation is slow
>  
> Hi Ayah,
>  
> the on-disk rule table works well for phrase-based and hierarchical 
> phrase-based models, but not for GHKM models.  Have you tried using the 
> in-memory rule table?
>  
> Phil
>  
>> On 6 Apr 2016, at 19:02, Ayah ElMaghraby <[email protected] 
>> <mailto:[email protected]>> wrote:
>>  
>> Hello 
>> I am trying to created a SMT using ghkm extraction but it is very slow 
>> during translation it translated 53 sentences in 24 hrs using Ubuntu-64bit 
>> 14.04 & 4GB Ram 
>> I changed rule table to be on disk using executable createOnDiskPt.
>> Is there any thing I can do to speed it up a little bit.
>> I am currently using these options 
>> --target-syntax -glue-grammar -max-phrase-length 5 -ghkm 
>> --score-options="--GoodTuring" -external-bin-dir 
>> ~/mosesdecoder/tools/mgizapp -mgiza -mgiza-cpus 2 -snt2cooc snt2cooc.pl 
>> -parallel -sort-batch-size 253 -sort-compress gzip --giza-option 
>> m1=5,m2=2,mh=0,m3=3,m4=3
>>  
>>  
>> Regards,
>> Ayah ElMaghraby
>>  
>> _______________________________________________
>> Moses-support mailing list
>> [email protected] <mailto:[email protected]>
>> http://mailman.mit.edu/mailman/listinfo/moses-support 
>> <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