Code Guide

Downloading and installing the workshop software on Ubuntu Hardy

Quick Start

  • The main function: moses-cmd/src/Main.cpp
  • Initialize the decoder
    • moses/src/Parameter.cpp specifies parameters
    • moses/src/StaticData.cpp contains globals, loads tables
  • Process a sentence
    • Manager.cpp implements the decoding algorithm
    • TranslationOptionCollection.cpp contains translation options
    • Hypothesis.cpp represents partial translation
    • HypothesisStack.cpp contain viable hypotheses, implements pruning
  • Output results: moses-cmd/src/Main.cpp
    • moses-cmd/src/IOStream::OutputBestHypo print best translation
    • n-best lists generated in Manager.cpp, output in IOStream.cpp
Page last modified on May 12, 2008, at 04:37 PM