+ Reply to Thread
Results 1 to 2 of 2

Thread: Moses in Ubuntu 11.04

 
  1. #1
    Contributing User
    Join Date
    May 2011
    Posts
    166
    Rep Power
    103

    Default Moses in Ubuntu 11.04

    Hello there

    There is a pretty good step-by-step guide for installing Moses in Unix: Moses Installation and Training Run-Through

    However there are lots of packages that need to be installed in Ubuntu before these instructions can be followed. Since it took me a while to find out which ones were the missing packages (I only had error messages at compile time), maybe someone finds this useful.

    Code:
    pabloa:~/Development$ sudo apt-get install automake libtool zlib1g-dev libssl-dev csh tcl8.5 tcl8.5-dev libelf-dev
    I've also had to make links to the tcl header files (a straightforward modification of the Makefile didn't work for me):

    Code:
    pabloa:~/Development$ for x in /usr/include/tcl8.5/tcl*.h; do ln -s $x; done
    Cheers.
    P.

  2. #2
    Contributing User
    Join Date
    May 2011
    Posts
    166
    Rep Power
    103

    Default Re: Moses in Ubuntu 11.04

    Another tip that could be useful: in the guide there are some problems with relative versus absolute paths, particularly in the parameters passed on to the different scripts. For example, in the tuning section the command to be run is this:
    Code:
    nohup nice tools/moses-scripts/scripts-YYYYMMDD-HHMM/training/mert-moses.pl work/tuning/nc-dev2007.lowercased.100.fr work/tuning/nc-dev2007.lowercased.100.en
    tools/moses/moses-cmd/src/moses work/model/moses.ini --working-dir work/tuning/mert --rootdir /home/jschroe1/demo/tools/moses-scripts/scripts-YYYYMMDD-HHMM/
     --decoder-flags "-v 0" >& work/tuning/mert.out &
    If that looks scary it's a sign of good mental health. I've started by doing a symlink for the scripts-YYYYMMDD-HHMM directory called simply scripts so it looks a bit tidier. But in any case,
    to finally make the script work I had to add an explicit indication for the mert directory in that already overcrowded command line.

    Code:
    --mertdir /home/pabloa/tools/moses/mert
    Cheers.
    P.
    Last edited by pabloa; 06-28-2011 at 10:59 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •