TWiki
>
GRM Web
>
NGramLibrary
>
NGramDownload
>
NGramReadMe
(revision 6) (raw view)
Edit
Attach
---+ !OpenGrm NGram README ---+++ !OpenGrm NGram - Release 1.2 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 [[http://www.openfst.org][OpenFst]] library to create, access and manipulate n-gram models. ---++++ REQUIREMENTS: This version is known to work under Linux using g++ (≥ 4.6) and !MacOS X using !XCode 5. Expected to work wherever adequate [[http://www.opengroup.org/onlinepubs/9699919799][POSIX]] (=dlopen=, =ssize_t=, =basename=), [[http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1256.pdf][c99]] (=snprintf=, =strtoll=, =<stdint.h>=), and [[http://www.stroustrup.com/C++11FAQ.html][C++11]] (=<ordered_set>=, =<ordered_map>=, =<forward_list>=) support are available. T It assumes you have installed !OpenFst ([[http://www.openfst.org][www.openfst.org]]) 1.4.0 or higher and have configured it with it with the =--enable-far= flag. ---++++ INSTALLATION: Follow the generic GNU build system instructions in [[NGramDistInstall][./INSTALL]]. We recommend configuring with =--enable-static=no= for faster compiles. Configuring with =--enable-bin=no= gives very fast compiles, but excludes the command line utilities. Compiling with =-Wall -Wno-sign-compare= under g++ should give no warnings from this library. ---++++USAGE: Assuming you've installed under the default =/usr/local=, the GRM binaries are found on =/usr/local/bin=. Headers will be in =/usr/local/include/ngram=, and libraries in =/usr/local/lib=. To use in your own programs you will need to include <ngram/ngram.h>. Compile with '-I /usr/local/include' and link against =/usr/local/lib/libfst.so=, =/usr/local/lib/fst/libfstfar.so= and =/usr/local/lib/libngram.so=. Set your =LD_LIBRARY_PATH= (or equivalent) to contain =/usr/local/lib=. The linking is, by default, dynamic so that the Fst and Arc type DSO extensions can be used correctly if desired. ---++++DOCUMENTATION: See [[http://www.opengrm.org][www.opengrm.org]] for general documentation. See [[News/NGramNews][./NEWS]] for updates since the last release.
Edit
|
Attach
|
Watch
|
P
rint version
|
H
istory
:
r9
<
r8
<
r7
<
r6
<
r5
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r6 - 2014-04-29
-
MichaelRiley
GRM
Log In
or
Register
GRM Web
Create New Topic
Index
Search
Changes
Notifications
Statistics
Preferences
Webs
Contrib
FST
Forum
GRM
Kernel
Main
Sandbox
TWiki
Main
Copyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback