the version is correct. It's just that the paths in the moses.ini files are absolute paths, taken from the server it was originally ran on.

To use the pre-made model, the following steps need to be taken:

1. the tuned moses ini file should be download from the directory

tuning/moses.tuned.ini.*

2. download the model files referenced in the ini file.

3. binarize the model files according to documentation on the Moses website

http://www.statmt.org/moses/

4. Change the ini file to use the binary model files, instead of the initial text models

5. Download the corresponding recaser from

recaser

6.Tokenize and lower case your input, translate with the decoder, then recase and detokenize your output.


On 11/06/14 16:55, Barry Haddow wrote:
Hi Franz

It looks like you are using an old version of Moses with a new config
file format, which is why it is failing. There are rpms and debs for
v2.1 on the Moses website
(http://www.statmt.org/moses/?n=Moses.Packages) which will work with the
sample models,

cheers - Barry

On 11/06/14 15:33, Franz Bissinger wrote:
Hello Everybody,

Before starting with my questions let me please introduce myself. My
name is Franz Bissinger. I'm running a small localization company in
Germany, Munich area. I'm familiar with all kinds of technical things
related to the IT, but my major responsibility is to run my company
and to do my daily localization work rather than to play with Linux
and tools such as Moses. On the other side as it is usual in small
companies I'm the guy dealing with all questions around hardware and
software.

At the moment I'm trying to make my fist experiences with MT and
especially with Moses. For doing so I configured an Ubuntu 12.04
server (8 Cores, 10 GB RAM), installed VirtualBox, downloaded the
moses vm "debian 64-bit.ova" and imported it successfully to my server
from where I run it in headless mode. I'm able to access the VM via a
Remote Desktop Connection from my Windows 7 machine as well through
ssh as via PUTTY. That's the background.

Today I tried for the first time to run the small sample found under
"Phrase-based Tutorial" here
http://www.statmt.org/moses/?n=Moses.Tutorial. Unfortunately, so far
all my attempts to run moses with the sample 'das ist ein kleines
haus' fails. This is my command line:

echo 'das ist ein kleines haus' | /opt/moses/bin/moses -f
phrase-model/moses.ini > ../out

And this is what I'm getting out:

Defined parameters (per moses.ini or switch):
         config: phrase-model/moses.ini
         feature: KENLM name=LM factor=0 order=3 num-features=1
path=lm/europarl.srilm.gz Distortion WordPenalty UnknownWordPenalty
PhraseDictionaryMemory input-factor=0 output-factor=0
path=phrase-model/phrase-table num-features=1 table-limit=10
         input-factors: 0
         mapping: T 0
         n-best-list: nbest.txt 100
         weight: WordPenalty0= 0 LM= 1 Distortion0= 1
PhraseDictionaryMemory0= 1
ERROR:Unknown parameter feature
ERROR:Unknown parameter weight
ERROR:No phrase translation table (ttable-file)

I do not really have an idea, what's wrong, Maybe the sample uses an
version 1 moses.ini file. If that is true what would be the right
command line if I'd use one of the europarl models (de-en) I
downloaded from http://www.statmt.org/moses/RELEASE-2.1/models/
instead of the sample model?

I'm sorry to bother you with this kind of newbie questions, but
unfortunately I'm not able to find any other helpful information.

Thanks a lot for your help in advance.

Best

Franz


_______________________________________________
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