Hello Hieu,

Thanks for the information you provided in your answer yesterday. I made 
another short test this morning, checked the pathes in 
sample-models/phrase-model/moses.ini file before but found that the two path 
statements are relativ (as for "path=lm/europarl.srilm.gz"). And again the test 
failed with the same error message than yesterday. So, I'm still wondering why 
I can't run the  'das ist ein kleines haus' sample successfully. Do I need to 
edit pathes or whatever in another location than in 
"sample-models/phrase-model/moses.ini"?

This is moses.ini 
#########################
### MOSES CONFIG FILE ###
#########################

# input factors
[input-factors]
0

# mapping steps, either (T) translation or (G) generation
[mapping]
T 0

[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 

[weight]
WordPenalty0= 0
LM= 1
Distortion0= 1
PhraseDictionaryMemory0= 1

[n-best-list]
nbest.txt
100

This is the command line (from within ~/Downloads/sample-models/):
echo 'das ist ein kleines haus' | /opt/moses/bin/moses -f 
phrase-model/moses.ini > ../out

And here we go with the output:
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 run another test replacing the two relative pathes by absolute pathes but 
this resulted in the same output (see above).

Best
Franz

P.S. I could not yet find time to follow your instructions concering the 
pre-made model, but I'll do as soon as I can (this will surely take until next 
week).
  ----- Original Message ----- 
  From: Hieu Hoang 
  To: Barry Haddow ; Franz Bissinger ; [email protected] 
  Cc: Franz Bissinger 
  Sent: Wednesday, June 11, 2014 6:46 PM
  Subject: Re: [Moses-support] A beginner question


  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