Coder Social home page Coder Social logo

mosesmake's Introduction

Moses Make

Author: Eric Nichols [email protected], Tohoku University, Japan

Moses Make is a set of makefiles and utilities for automatic setup of Moses SMT systems. Moses Make will tokenize and annotate data with POS, lemma form, and morphology factors. Currently, Moses Make supports English, Italian, Japanese, and Spanish, but it can easily be extended to support any language with a POS tagger and morphological analyzer.

INSTALLATION

Via apt-get

Run the following commands as root setting $distro to your Ubuntu distribution name:

$ echo "# Ubuntu NLP
deb http://cl.naist.jp/~eric-n/ubuntu-nlp $distro nlp
deb-src http://cl.naist.jp/~eric-n/ubuntu-nlp $distro nlp" >> /etc/apt/sources.list
$ apt-get update
$ apt-get install mosesmake

Via git

$ git clone 'https://github.com/underspecified/[email protected]:underspecified/moses-make.git' /path/to/mosesmake

Via zip file

$ wget 'http://cl.naist.jp/~eric-n/hg/mosesmake/archive/tip.tar.gz' -O /path/to/mosesmake.tgz
$ cd /path/to/ && tar -zxvf mosesmake.tgz

DEPENDENCIES

  • make: a program for automatically generating files from dependencies
  • moses: a factored, phrase-based beam-search decoder for MT
  • srilm: a toolkit for building and applying language models
  • giza++: a C++ implementation of IBM word alignment models 1-5
  • treetagger: a language-independent part-of-speech tagger. Download and install English (optionally Italian and Spanish) tagging models.
  • morph: an English morphological analyzer/generator used for lemma factors
  • mecab: a Japanese part-of-speech tagger used for tokenization and POS factors
  • mecab-ipadic: part-of-speech dictionary for parsing with mecab

SHELL ENVIRONMENT SETUP

Add the following to your .bashrc. Skip this step if you installed via apt-get.

# Makefile-based automation of Moses SMT system construction
MHOME=/path/to/mosesmake
if [ -f $MHOME/setup.sh ]; then
	. $MHOME/setup.sh
fi

TESTING MOSES MAKE

Run the following commands to create a Japanese-English toy system.

$ cd /path/to/mosesmake
$ cd test/systems/test2007/ja-en/factorless/
$ cat Makefile.vars	
$ make corpus lm model recaser tuning evaluation

Moses make will format the corpus, create a language model, train a translation model, train a recaser, conduct MERT optimization on the translation model, and evaluate the MT system.

Any of these steps can be ran in isolation. Moses Make will automatically figure out what order the steps need to be performed in.

New systems can be made by copying Makefile and Makefile.vars from an example system and editing the settings and data sources accordingly.

mosesmake's People

Contributors

underspecified avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.