Moses-support Digest, Vol 92, Issue 29

Send Moses-support mailing list submissions to
moses-support@mit.edu

To subscribe or unsubscribe via the World Wide Web, visit
http://mailman.mit.edu/mailman/listinfo/moses-support
or, via email, send a message with subject or body 'help' to
moses-support-request@mit.edu

You can reach the person managing the list at
moses-support-owner@mit.edu

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Moses-support digest..."


Today's Topics:

1. Re: A beginner question (Franz Bissinger)


----------------------------------------------------------------------

Message: 1
Date: Thu, 12 Jun 2014 15:48:29 +0200
From: "Franz Bissinger" <franz@negation.info>
Subject: Re: [Moses-support] A beginner question
To: "moses-support" <moses-support@mit.edu>
Message-ID: <DE121A0EB1C84C2EB946B488E4266343@Henna>
Content-Type: text/plain; charset="utf-8"

I downloaded debian 64-bit.ova from http://www.statmt.org/moses/RELEASE-2.1/vm/.

Yes, I'll download and compile it by myself as soon as I find time and let you know. This may take a while.

Thanks a lot and have a great weekend
Franz

----- Original Message -----
From: Hieu Hoang
To: Franz Bissinger
Cc: moses-support
Sent: Thursday, June 12, 2014 1:41 PM
Subject: Re: [Moses-support] A beginner question


odd, maybe barry's right, you have an older version of moses.


Where did you get the executable from? I'm sure the ones that came with the virtual machines are up to date but i'll double check later on today.


Maybe you should compile moses yourself or download from here
http://www.statmt.org/moses/RELEASE-2.1/binaries/




On 12 June 2014 12:21, Franz Bissinger <franz@negation.info> wrote:

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 ; moses-support@mit.edu
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
Moses-support@mit.edu
http://mailman.mit.edu/mailman/listinfo/moses-support



_______________________________________________
Moses-support mailing list
Moses-support@mit.edu
http://mailman.mit.edu/mailman/listinfo/moses-support





--
Hieu Hoang
Research Associate
University of Edinburgh
http://www.hoang.co.uk/hieu

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/mailman/private/moses-support/attachments/20140612/10e6e7ef/attachment-0001.htm

------------------------------

_______________________________________________
Moses-support mailing list
Moses-support@mit.edu
http://mailman.mit.edu/mailman/listinfo/moses-support


End of Moses-support Digest, Vol 92, Issue 29
*********************************************

0 Response to "Moses-support Digest, Vol 92, Issue 29"

Post a Comment