mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 11:25:40 +03:00
.. | ||
adjust_counts_test.cc | ||
adjust_counts.cc | ||
adjust_counts.hh | ||
CMakeLists.txt | ||
combine_counts.hh | ||
corpus_count_test.cc | ||
corpus_count.cc | ||
corpus_count.hh | ||
debug_print.hh | ||
discount.hh | ||
dump_counts_main.cc | ||
hash_gamma.hh | ||
header_info.hh | ||
initial_probabilities.cc | ||
initial_probabilities.hh | ||
interpolate.cc | ||
interpolate.hh | ||
Jamfile | ||
lmplz_main.cc | ||
output.cc | ||
output.hh | ||
payload.hh | ||
pipeline.cc | ||
pipeline.hh | ||
README.md | ||
TODO |
Dependencies
Boost >= 1.42.0 is required.
For Ubuntu,
sudo apt-get install libboost1.48-all-dev
Alternatively, you can download, compile, and install it yourself:
wget http://sourceforge.net/projects/boost/files/boost/1.52.0/boost_1_52_0.tar.gz/download -O boost_1_52_0.tar.gz
tar -xvzf boost_1_52_0.tar.gz
cd boost_1_52_0
./bootstrap.sh
./b2
sudo ./b2 install
Local install options (in a user-space prefix directory) are also possible. See http://www.boost.org/doc/libs/1_52_0/doc/html/bbv2/installation.html.
Building
bjam
Your distribution might package bjam and boost-build separately from Boost. Both are required.
Usage
Run
$ bin/lmplz
to see command line arguments
Running
bin/lmplz -o 5 <text >text.arpa