OpenGrm NGram README
OpenGrm NGram - Release 1.3
The OpenGrm NGram library is used for making and modifying n-gram language models encoded as weighted finite-state transducers (FSTs).
It makes use of functionality in the OpenFst
library to create, access and manipulate n-gram models.
This version is known to work under Linux using
g++ (≥ 4.6) and MacOS X using XCode 5. Expected to work wherever adequate POSIX
), and C++11
) support are available.
It assumes you have installed OpenFst (www.openfst.org
) 1.5.2 or higher and have configured it with it with the
Follow the generic GNU build system instructions in ./INSTALL
. We recommend configuring with
for faster compiles.
gives very fast compiles, but excludes the command line utilities.
under g++ should give no warnings from this library.
NOTE: In some versions of MacOS X we have noticed a problem with
whereby it fails to find
. If this occurs, try configuring as follows:
CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib ./configure
Assuming you've installed under the default
, the GRM binaries are found on
. Headers will be in
, and libraries in
To use in your own programs you will need to include <ngram/ngram.h>. Compile with '-I /usr/local/include' and link against
. Set your
(or equivalent) to contain
The linking is, by default, dynamic so that the Fst and Arc type DSO extensions can be used correctly if desired.
for general documentation.
for updates since the last release.