Skip to content

Commit

Permalink
Documentation improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
kpu committed Jan 19, 2013
1 parent fcf54c4 commit 038949d
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 10 deletions.
2 changes: 1 addition & 1 deletion BUILDING
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ If you have Boost >= 1.36.0 installed:
./bjam install --prefix=/usr #optional

If you only want the query code:
./compile.sh
./compile_query_only.sh

Windows:
The windows directory has visual studio files. Note that you need to compile
Expand Down
49 changes: 49 additions & 0 deletions Jamroot
Original file line number Diff line number Diff line change
@@ -1,3 +1,52 @@
#BUILDING KENLM
#
#DEPENDENCIES
#Remember that some distributions split packages into development and binary
#versions. You need the development versions.
#
#zlib and Boost >= 1.36.0 are required. Don't have Boost? You can compile the
#queries part with ./compile_query_only.sh .
#--with=boost=/path/to/boost uses a Boost install from a custom path.
#
#The following optional packages are autodetected:
#libtcmalloc_minimal from google-perftools
#bzip2
#lzma aka xz
#
#INSTALLATION
#--prefix=/path/to/prefix sets the install prefix [default is source root].
#--bindir=/path/to/prefix/bin sets the bin directory [PREFIX/bin]
#--libdir=/path/to/prefix/lib sets the lib directory [PREFIX/lib]
#--includedir=/path/to/prefix/include installs headers.
# Does not install if missing. No argument defaults to PREFIX/include .
#--install-scripts=/path/to/scripts copies scripts into a directory.
# Does not install if missing. No argument defaults to PREFIX/scripts .
#--git appends the git revision to the prefix directory.
#
#BUILD OPTIONS
# By default, the build is multi-threaded, optimized, and statically linked.
# Pass these to change the build:
#
# threading=single|multi controls threading (default multi)
#
# variant=release|debug|profile builds optimized (default), for debug, or for
# profiling
#
# link=static|shared controls preferred linking (default static)
# --static forces static linking (the default will fall
# back to shared)
#
# debug-symbols=on|off include or exclude (default) debugging
# information also known as -g
# --without-libsegfault does not link with libSegFault
#
# --max-kenlm-order maximum ngram order that kenlm can process (default 6)
#
#CONTROLLING THE BUILD
#-a to build from scratch
#-j$NCPUS to compile in parallel
#--clean to clean

path-constant TOP : . ;
include $(TOP)/jam-files/sanity.jam ;

Expand Down
10 changes: 1 addition & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,7 @@ I do development in master on https://github.com/kpu/kenlm/. Normally, it works
The website http://kheafield.com/code/kenlm/ has more documentation. If you're a decoder developer, please download the latest version from there instead of copying from another decoder.

## Compiling

For estimating and filtering, you need Boost >= 1.36.0 (and preferably newer). Compile with
```bash
./bjam
```
If you don't have boost and only need the query code, compile with
```bash
./compile_query_only.sh
```
See BUILDING.

## Estimation
lmplz estimates unpruned language models with modified Kneser-Ney smoothing. After compiling with bjam, run
Expand Down

0 comments on commit 038949d

Please sign in to comment.