forked from edobashira/openfstwin-1.4.1
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
50 lines (39 loc) · 2.07 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
OpenFst - Release 1.4
OpenFst is a library for constructing, combining, optimizing, and
searching weighted finite-state transducers (FSTs).
REQUIREMENTS:
This version is known to work under Linux and MacOS using g++ (>= 4.6).
Expected to work wherever adequate POSIX (dlopen, ssize_t,
basename), c99 (snprintf, strtoll, <stdint.h>), and C++11 (<unordered_set>,
<unordered_map>, <forward_list>) support are available.
INSTALLATION:
Follow the generic GNU build system instructions in ./INSTALL. We
recommend configuring with --enable-static=no for faster
compiles.
Optional features:
--enable-bin Build fst::script and command-line binaries (def: yes)
--enable-compact-fsts Enable all CompactFst classes (def: no)
--enable-const-fsts Enable all ConstFst classes (def: no)
--enable-far Enable FAR (FST Archive) extension (def: no)
--enable-linear-fsts Enable Linear{Tagger,Classifier} Fst extensions (def: no)
--enable-lookahead-fsts Enable LookAheadFst classes (def: no)
--enable-ngram-fsts Enable NGramFst classes (def: no)
--enable-pdt Experimental push-down transducer extensions (def: no
)
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 FST
binaries are found on /usr/local/bin.
To use in your own program, include <fst/fstlib.h> and compile
with '-I /usr/local/include'. The compiler must support C++11
(for g++ add the flag "-std=c++0x"). Link against /usr/local/lib/libfst.so
and -ldl. 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. Any extensions will
be found under /usr/local/include/fst/extensions and /usr/local/lib/fst.
DOCUMENTATION:
See www.openfst.org for general documentation.
See ./NEWS for updates since the last release.