mosesdecoder/lm/builder
2015-05-20 17:36:48 +01:00
..
adjust_counts_test.cc KenLM 7408730be415db9b650560a8b2bd3e4e3af49ec9. 2015-05-19 15:27:30 -04:00
adjust_counts.cc KenLM 7408730be415db9b650560a8b2bd3e4e3af49ec9. 2015-05-19 15:27:30 -04:00
adjust_counts.hh Remove trailing whitespace in C++ files. 2015-04-30 12:05:11 +07:00
combine_counts.hh KenLM 7408730be415db9b650560a8b2bd3e4e3af49ec9. 2015-05-19 15:27:30 -04:00
corpus_count_test.cc KenLM 7408730be415db9b650560a8b2bd3e4e3af49ec9. 2015-05-19 15:27:30 -04:00
corpus_count.cc KenLM 7408730be415db9b650560a8b2bd3e4e3af49ec9. 2015-05-19 15:27:30 -04:00
corpus_count.hh Remove trailing whitespace in C++ files. 2015-04-30 12:05:11 +07:00
discount.hh KenLM 5a7efd8fe1db88ee0a9f7e9479b24ac3ca348221 with Hieu's patch to exception.hh 2014-06-02 10:29:40 -07:00
dump_counts_main.cc KenLM 8386117fdc026b8532adac85c5f921388754d569 2014-07-18 22:24:28 +08:00
hash_gamma.hh KenLM 5a7efd8fe1db88ee0a9f7e9479b24ac3ca348221 with Hieu's patch to exception.hh 2014-06-02 10:29:40 -07:00
header_info.hh KenLM a6d57501dcac95a31719a8628f6cbd288f6741e2 including Marcin's fixed pruning 2015-01-22 11:42:46 -05:00
initial_probabilities.cc KenLM 7408730be415db9b650560a8b2bd3e4e3af49ec9. 2015-05-19 15:27:30 -04:00
initial_probabilities.hh KenLM 7408730be415db9b650560a8b2bd3e4e3af49ec9. 2015-05-19 15:27:30 -04:00
interpolate.cc Added missing header for std::cerr. 2015-05-20 17:36:48 +01:00
interpolate.hh KenLM 7408730be415db9b650560a8b2bd3e4e3af49ec9. 2015-05-19 15:27:30 -04:00
Jamfile KenLM 7408730be415db9b650560a8b2bd3e4e3af49ec9. 2015-05-19 15:27:30 -04:00
joint_order.hh KenLM 7408730be415db9b650560a8b2bd3e4e3af49ec9. 2015-05-19 15:27:30 -04:00
lmplz_main.cc KenLM 7408730be415db9b650560a8b2bd3e4e3af49ec9. 2015-05-19 15:27:30 -04:00
output.cc KenLM 7408730be415db9b650560a8b2bd3e4e3af49ec9. 2015-05-19 15:27:30 -04:00
output.hh KenLM 7408730be415db9b650560a8b2bd3e4e3af49ec9. 2015-05-19 15:27:30 -04:00
payload.hh KenLM 7408730be415db9b650560a8b2bd3e4e3af49ec9. 2015-05-19 15:27:30 -04:00
pipeline.cc KenLM 7408730be415db9b650560a8b2bd3e4e3af49ec9. 2015-05-19 15:27:30 -04:00
pipeline.hh KenLM 7408730be415db9b650560a8b2bd3e4e3af49ec9. 2015-05-19 15:27:30 -04:00
print.cc KenLM 7408730be415db9b650560a8b2bd3e4e3af49ec9. 2015-05-19 15:27:30 -04:00
print.hh KenLM 7408730be415db9b650560a8b2bd3e4e3af49ec9. 2015-05-19 15:27:30 -04:00
README.md KenLM df5be22 lmplz for estimation 2013-01-18 15:59:51 +00:00
special.hh KenLM 7408730be415db9b650560a8b2bd3e4e3af49ec9. 2015-05-19 15:27:30 -04:00
TODO KenLM df5be22 lmplz for estimation 2013-01-18 15:59:51 +00:00

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