How moses-smt/mosesdecoder works
Project type and purpose
• This is “Moses,” a large open-source toolkit for statistical machine translation (SMT). It provides:
• A core phrase-based and syntax-based translation decoder (moses/ and moses2/ directories)
• Tools for phrase-table extraction (OnDiskPt/, phrase-extract/, probingpt/)
• Hyperparameter tuning (mert/)
• Language model integration (lm/ and util/, taken from KenLM)
• A server component for remote translation (moses/server/, moses2/server/)
• Many helper scripts (scripts/), examples and regression tests (regression-testing/).
File structure
• Top-level executables & libraries
• moses-cmd/ and moses/ (core C++ decoder, search, feature functions, I/O wrappers)
• moses2/ (next-gen codebase)
• mert/ (parameter tuning framework)
• lm/ & util/ (language model building & querying, borrowed from KenLM)
• phrase-extract/, probingpt/, OnDiskPt/ (vocabulary and phrase‐table construction & on‐disk querying)
• server/ and xmlrpc-c config (remote API server)
• Build and configuration
• Jamroot, Jamfile, .travis.yml, azure-pipelines.yml (Boost.Build)
• CMakeLists.txt in some submodules
• Contrib/ and scripts/
• Optional tools, pipelines and examples in Python, Perl, shell, plus Docker files.
Insights from README
• Build with Boost.Build (“bjam”) and dependencies: Boost, CMPh, xmlrpc-c
• Highlights two external codebases: bjam-files (Boost) and util+lm (KenLM)
• Points to documentation, mailing list, CI pipelines.