cd ~/mosesdecoder/sample-models
~/mosesdecoder/bin/moses -f phrase-model/moses.ini < phrase-model/in > out
I’m having an issue running this on the command line it gives me a permission denied error, is there anyway around it? I tried adding sudo in front but that didn't help, I'm a novice user trying to run a program on the command line and I tried doing it through the root level access but I am unable to locate this directory that way because it tries to do everything in the root directory.
sudo
is that the shell is runningmoses
as the superuser, but the redirects (<
and>
) are with your own privileges. I would login as the superuser withsudo -i
and thencd ~YOURUSERNAME
(so in my case, that would becd ~zpletan
).