Try running the command from inside the directory given below 
(sample-models/phrase-model). The system needs to be able to find the file 
named 'in'.


cd ~/mosesdecoder
 wget http://www.statmt.org/moses/download/sample-models.tgz
 tar xzf sample-models.tgz
 cd sample-models/phrase-model

 ~/mosesdecoder/moses-cmd/src/moses -f moses.ini < in > out


(See http://www.statmt.org/moses/?n=Development.GetStarted)


On Aug 11, 2011, at 8:30 AM, 蒋乾 wrote:
> 
> After that I tried to test if the moses had been successfully installed by
> using the following instruction, and then error happened.
>  
> "/home/wyang22/tools/moses/moses-cmd/src/moses -f moses.ini < in > out"
>  
> error information was shown as follows
>  
> [root@Moses phrase-model]# /home/wyang22/tools/moses/moses-cmd/src/moses -f 
> moses.ini < in > out
> Defined parameters (per moses.ini or switch):
>  DPR-file: DPR-file.txt 
>  config: moses.ini 
>  input-factors: 0 
>  lmodel-file: 0 0 3 ../lm/europarl.srilm.gz 
>  mapping: T 0 
>  n-best-list: nbest.txt 100 
>  ttable-file: 0 0 0 1 phrase-table 
>  ttable-limit: 10 
>  weight-DPR: 3 
>  weight-d: 1 
>  weight-l: 1 
>  weight-t: 1 
>  weight-w: 0 
> ERROR:File 1 does not exist
>  
> What is the problem? How can I solve it?
>  
> _______________________________________________
> 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

Reply via email to