Three other things, Raohael.
On closer look, the "Permission denied" error happens when
train-model.perl tries to execute the extract-parallel.perl script.
Doublecheck all scripts under mosesdecoder-RELEASE-1.0/scripts and make
sure all have execute privileges for the user you're using to run
train-model.perl.
Second, train-model.perl's step 5, extract_phrase_factored(), is famous
for consuming massive hard disk resources as it extracts and collects
the phrases. Users frequently run out of hard disk space on this step.
Is it conceivable that your system is running out of free hard drive
space? During the extraction, a temp file is created under the
"-root-dir train" folder. On failure, it is quickly deleted and
difficult to trace.
Finally, your command line includes relative path references like
"-root-dir train". Depending on your default path when running
train-moses.perl, this relative reference might expand to some place
where you don't have permissions. Make sure you use absolute path
references for all paths on all Moses scripts.
Tom
On 05/05/2013 05:51 PM, arefeh Kazemi wrote:
I modified the owner but it still gets that error:(
From: Tom Hoar <tahoar@...
<http://gmane.org/get-address.php?address=tahoar%2dcB%2fihCqopeG7AKbOTpHwwjx6VEFkrI8ampATvIKMPHk%40public.gmane.org>>
Subject: Re: problem in the training step
<http://news.gmane.org/find-root.php?message_id=%3c5184E9B5.5020308%40precisiontranslationtools.com%3e>
Newsgroups: gmane.comp.nlp.moses.user
<http://news.gmane.org/gmane.comp.nlp.moses.user>
Date: 2013-05-04 10:57:57 GMT (23 hours and 49 minutes ago)
This look more like a Linux issue than Moses. You're running
everything from /opt, which is usually owned by root. You probably
want to use chown and chmod on /opt/too/s/Moses_1 to change ownership
and permissions to the user who runs the commands.
On 05/04/2013 01:23 PM, arefeh Kazemi wrote:
Thank you Raohael,
it gtes the following error:
sh: 1:
/opt/tools/Moses_1/mosesdecoder-RELEASE-1.0/mosesdecoder-RELEASE-1.0/scripts/generic/extract-parallel.perl:
Permission denied
Exit code: 126
ERROR: Phrase extraction failed (missing input files?) at
/opt/tools/Moses_1/mosesdecoder-RELEASE-1.0/mosesdecoder-RELEASE-1.0/scripts/training/train-model.perl
line 1433.
I do the commands under the root and I don't know why it gets
Permission denied.
From: Raphael Payen
<[email protected]>
To: arefeh Kazemi <arefeh_kazemi-/[email protected]>
Sent: Saturday, May 4, 2013 1:25 AM
Subject: Re: [Moses-support] problem in the training step
The >& training.out has redirected the output to a file named training.out
--
Raphaƫl Payen
On Fri, May 3, 2013 at 4:58 PM, arefeh Kazemi
<arefeh_kazemi-/[email protected]
<mailto:arefeh_kazemi-/[email protected]>> wrote:
> Hi everyone
> when I run this command for training the moses, nothing is happen and it
> gets no output and error (it sometime gets some output like [3] 2674
where
> the numbers differs). Do anyone else have this problem too?
>
> nohup nice
>
/opt/tools/Moses_1/mosesdecoder-RELEASE-1.0/mosesdecoder-RELEASE-1.0/scripts/training/train-model.perl
> -root-dir train -corpus /opt/tools/dataset/corpus/fa-en.clean -f fa
-e en
> -alignment grow-diag-final-and -reordering msd-bidirectional-fa -lm
> 0:3:/opt/tools/lm/fa-en.blm.fa:8 -external-bin-dir
>
/opt/tools/Moses_1/mosesdecoder-RELEASE-1.0/mosesdecoder-RELEASE-1.0/tools/
>>& training.out &
>
>
> _______________________________________________
> Moses-support mailing list
> [email protected]
<mailto:[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