Hi,
It seems that you are running Moses on Windows with the cygwin. I think the
error comes from the path. You wanted to give the absolute path, but the path
may be not right. Try:
export SCRIPTS_ROOTDIR=/home/user/moses/scripts
$ train-model.perl --scripts-root-dir $SCRIPTS_ROOTDIR --corpus
/home/user/work/corpora/txt --f stand --e dia --lm
0:3:/home/user/work/corpora/modele.lm:0
Hope it can works
------------------------------------------------------------------------------------------------------------------------------------
Name: Liang Tian (田亮)
Lab: Natural Language Processing& Portuguese Chinese Machine Translation
Laboratory
(澳门大学中葡机器翻译实验室NLP2CT)
Email: [email protected]
Phone: (853)62059782
(+86)18676421801
------------------------------------------------------------------------------------------------------------------------------------
________________________________
发件人: Sara Hamza <[email protected]>
收件人: Forum <[email protected]>
发送日期: 2012年4月10日, 星期二, 上午 6:51
主题: [Moses-support] Issues with train-model.perl
Hello everybody I am a new member and a beginner in the field so would please
excuse my ignorance:
when I try to run the following command :
$ train-model.perl --f stand --e dia --corpus
cygdrive/C/cygwin/home/user/work/corpora/txt -lm
0:3:/home/user/work/corpora/modele.lm:0
I got this Error message :
Using SCRIPTS_ROOTDIR: /cygdrive/C/cygwin/home/user/moses/scripts
Using single-thread GIZA
(1) preparing corpus @ Mon Apr 9 23:10:56 2012
Executing: mkdir -p ./corpus
(1.0) selecting factors @ Mon Apr 9 23:10:56 2012
(1.1) running mkcls @ Mon Apr 9 23:10:56 2012
/home/user/bin/mkcls -c50 -n2
-pcygdrive/C/cygwin/home/user/work/corpora/txt.stand
-V./corpus/stand.vcb.classes opt
Executing: /home/user/bin/mkcls -c50 -n2
-pcygdrive/C/cygwin/home/user/work/corpora/txt.stand
-V./corpus/stand.vcb.classes opt
ERROR: can not open file cygdrive/C/cygwin/home/user/work/corpora/txt.stand.
Error: Could not read the file
'cygdrive/C/cygwin/home/user/work/corpora/txt.stand'.
mkcls - a program for making word classes: Usage:
mkcls [-nnum] [-ptrain] [-Vfile] opt
-V output classes (Default: no file)
-n number of optimization runs (Default: 1); larger number => better results
-p filename of training corpus (Default: 'train')
Example:
mkcls -c80 -n10 -pin -Vout opt
(generates 80 classes for the corpus 'in' and writes the classes in 'out')
Literature:
Franz Josef Och: ▒Maximum-Likelihood-Sch▒tzung von Wortkategorien mit Verfahren
der kombinatorischen Optimierung▒ Studienarbeit, Universit▒t Erlangen-N▒rnberg,
Germany,1995.
Exit code: 1
(1.1) running mkcls @ Mon Apr 9 23:10:57 2012
/home/user/bin/mkcls -c50 -n2
-pcygdrive/C/cygwin/home/user/work/corpora/txt.dia -V./corpus/dia.vcb.classes
opt
Executing: /home/user/bin/mkcls -c50 -n2
-pcygdrive/C/cygwin/home/user/work/corpora/txt.dia -V./corpus/dia.vcb.classes
opt
ERROR: can not open file cygdrive/C/cygwin/home/user/work/corpora/txt.dia.
Error: Could not read the file
'cygdrive/C/cygwin/home/user/work/corpora/txt.dia'.
mkcls - a program for making word classes: Usage:
mkcls [-nnum] [-ptrain] [-Vfile] opt
-V output classes (Default: no file)
-n number of optimization runs (Default: 1); larger number => better results
-p filename of training corpus (Default: 'train')
Example:
mkcls -c80 -n10 -pin -Vout opt
(generates 80 classes for the corpus 'in' and writes the classes in 'out')
Literature:
Franz Josef Och: ▒Maximum-Likelihood-Sch▒tzung von Wortkategorien mit Verfahren
der kombinatorischen Optimierung▒ Studienarbeit, Universit▒t Erlangen-N▒rnberg,
Germany,1995.
Exit code: 1
(1.2) creating vcb file ./corpus/stand.vcb @ Mon Apr 9 23:10:57 2012
ERROR: Can't read cygdrive/C/cygwin/home/user/work/corpora/txt.stand at
/cygdrive/C/cygwin/home/user/moses/scripts/training/train-model.perl line 671.
Seems like the process can't read or maybe find the files txt.dia and txt.stand
Although they are there
Did anybody face this problem before ???
_______________________________________________
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