Hi again,
let me insist... even though the files do exist, and you can run the
command at prompt without errors, you need to specify an absolute path for
the script so that it works properly. Now, that being said, that may or
may not solve your problem, but it is a potential source of problems. It
is not a matter of the path existing or not, it is a matter of it being an
absolute path (i.e. a path that starts with the '/' character, specified
starting at the root of the file system). Try specifying the
SCRIPTS_ROOTDIR variable with an absolute path and, if it still yields the
same error, let us know. For specifying the SCRIPTS_ROOTDIR with an
absolute path you may as well run the following command:
first check that the folder exists with:
ls ./moses-scripts/scripts-20110910-1816/
Then try running the mert command again with the following line
(adapted from yours):
nohup nice ./moses-scripts/scripts-20110910-1816/training/mert-moses.pl
Corpus/MreferenceTest/fr-e-test.276-1.txt
Corpus/MreferenceTest/en-e-test.276-1.txt ./moses/moses-cmd/src/moses
prj/test/model/moses.ini --working-dir prj/test/tuning/mert --rootdir
$(readlink -f ./moses-scripts/scripts-20110910-1816/) --decoder-flags "-v
0" >& prj/test/tuning/mert.out
(notice the $(readlink -f <dir>) around the rootdir directory)
As a side note, it is generally not a good practice to tune the system on
the actual test set (I am guessing you are doing this because of the file
names).
Try this and, if it does not work, then we might need to have more info in
order to solve the problem.
Good luck,
Germán
On Sun, 11 Sep 2011, Neda NoorMohammadi wrote:
Hello,
Thanks for your answer.
But these are not my problems,
1. I execute Moses in no random directory,
2. The path are true,
3. also the codes which gives "can not execute ..." ( a call function in mert
script),
will be executed separately in command prompt with no error in the same path.
Meanwhile, I have a folder that I have put all of the MT tools there, such as:
moses,
GIZA++, moses-scripts, ...
I run all these tools in MtTools branch. The code is:
nohup nice ./moses-scripts/scripts-20110910-1816/training/mert-moses.pl
Corpus/MreferenceTest/fr-e-test.276-1.txt
Corpus/MreferenceTest/en-e-test.276-1.txt
./moses/moses-cmd/src/moses prj/test/model/moses.ini --working-dir
prj/test/tuning/mert
--rootdir ./moses-scripts/scripts-20110910-1816/ --decoder-flags "-v 0" >&
prj/test/tuning/mert.out
I have previously tuned systems in this manner with same configuration without
error! I
uninstalled the previous moses and installed a new moses that this problem came
up.
What is your suggestion?
Thanks a lot
Neda
On Sat, Sep 10, 2011 at 7:24 PM, Germán Sanchis Trilles <[email protected]>
wrote:
Hi Neda,
I would need a bit more information in order to know with for sure what
the
problem is. However, my guess is that you are using the mert-moses.pl
script in some random directory, but the path to the moses scripts is not
an absolute path. This is:
./moses-scripts/scripts-20110910-1816//training/filter-model-given-input.pl
the "./" part means that the system is looking for the
filter-model-given-input.pl script starting in the current directory, which is
probably not what you want. I guess that the $SCRIPTS_ROOTDIR variable is set so
as to point to "./moses-scripts/scripts-20110910-1816/", which is a relative
path. Most probably, what you want is an absolute path, something like
"/home/neda/moses-scripts/scripts-20110910-1816/" (or whatever the path to the
moses-scripts/scripts-20110910-1816/ folder is).
Hope that helps!
Cheers!
Germán
On Sat, 10 Sep 2011, Neda NoorMohammadi wrote:
Hello all,
When I am trying to tune a model with mert-moses.pl script, I got
this error:
Can't exec
"./moses-scripts/scripts-20110910-1816//training/filter-model-given-input.pl":
No such file or directory at
./moses-scripts/scripts-20110910-1816/training/mert-moses.pl line
1035.
Failed to execute:
./moses-scripts/scripts-20110910-1816//training/filter-model-given-input.pl
./filtered
/media/Data__/neda/SMT/MTtools/prj/test/model/moses.ini
/media/Data__/neda/SMT/MTtools/Corpus/MreferenceTest/fr-e-test.276-1.txt
No such file or directory
This is the first time I encounter such an error.
what is the problem? It would be really great if you could help me.
Neda Noormohammadi
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support