Hello,
Kindly find train-model.perl attached.
I only added this line
my $_EXTERNAL_BINDIR = '/home/rbehnam/mosesdecoder/external-bin-dir';
at line 149 to try to solve the error during running EMS with
transliteration option.

I appreciate your understanding.
Thanks in advance.

Best Regards,
*Rofael Emil Fayez Behnam*
Bachelor of Science in Computer and Systems Engineering,
Faculty of Engineering,
Alexandria University,
Egypt.

On 17 May 2017 at 10:55, Hieu Hoang <[email protected]> wrote:

> what is the exact command you run to get the error? Can you please send me
> the file
>   /home/rbehnam/mosesdecoder/scripts/training/train-model.perl
>
> * Looking for MT/NLP opportunities *
> Hieu Hoang
> http://moses-smt.org/
>
>
> On 17 May 2017 at 08:45, Rofael Behnam <[email protected]> wrote:
>
>> Hello,
>> I have downloaded it from https://github.com/moses-smt/mosesdecoder
>> This month. I only use Moses, I didn't change anything in code.
>>
>> I appreciate your understanding.
>> Thanks in advance.
>>
>> Best Regards,
>> *Rofael Emil Fayez Behnam*
>> Bachelor of Science in Computer and Systems Engineering,
>> Faculty of Engineering,
>> Alexandria University,
>> Egypt.
>>
>> On 17 May 2017 at 00:59, Hieu Hoang <[email protected]> wrote:
>>
>>> approximately when and where did you download the Moses code from? Or
>>> have you changed the code?
>>>
>>> Line 149 in your script doesn't seem to correspond to line 149 in the
>>> script on github
>>>
>>>
>>> * Looking for MT/NLP opportunities *
>>> Hieu Hoang
>>> http://moses-smt.org/
>>>
>>>
>>> On 16 May 2017 at 14:05, Rofael Behnam <[email protected]> wrote:
>>>
>>>> Hello,
>>>> Hope all is good.
>>>> I got that error
>>>> Error
>>>> *****
>>>> "my" variable $_EXTERNAL_BINDIR masks earlier declaration in same scope
>>>> at /home/rbehnam/mosesdecoder/scripts/training/train-model.perl line
>>>> 149.
>>>> Using SCRIPTS_ROOTDIR: /home/rbehnam/mosesdecoder/scripts
>>>> Using multi-thread GIZA
>>>> using gzip
>>>> Use of uninitialized value $GIZA in -x at 
>>>> /home/rbehnam/mosesdecoder/scripts/training/train-model.perl
>>>> line 491.
>>>> ERROR: Cannot find mkcls, GIZA++/mgiza, & snt2cooc.out/snt2cooc in
>>>> /home/rbehnam/mosesdecoder/external-bin-dir.
>>>> You MUST specify the parameter -external-bin-dir at
>>>> /home/rbehnam/mosesdecoder/scripts/training/train-model.perl line 491.
>>>> *****************************
>>>> The files:  mkcls, GIZA++, & snt2cooc.out, are in external-bin-dir and
>>>> EMS works well but on adding transliteration option, this error occurs,
>>>> although train-model.perl is also called with EMS without Transliteration
>>>> option.
>>>>
>>>> Please, help me use transliteration option with EMS.
>>>> Thanks in advance.
>>>>
>>>> Best Regards,
>>>> *Rofael Emil Fayez Behnam*
>>>> Bachelor of Science in Computer and Systems Engineering,
>>>> Faculty of Engineering,
>>>> Alexandria University,
>>>> Egypt.
>>>>
>>>> _______________________________________________
>>>> Moses-support mailing list
>>>> [email protected]
>>>> http://mailman.mit.edu/mailman/listinfo/moses-support
>>>>
>>>>
>>>
>>
>

Attachment: train-model.perl
Description: Binary data

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

Reply via email to