Skip to content

Instantly share code, notes, and snippets.

@edobashira
edobashira / Makefile
Created August 18, 2014 10:32
farcompose
all: farcompose
CXXFLAGS=-O2 -std=c++11
LDFLAGS=-L/usr/local/lib -L/usr/local/lib/fst
farcompose: farcompose.o
$(CXX) $^ -o $@ $(LDFLAGS) $(LDLIBS) -lfst -lfstfar
clean:
rm -rf *.o farcompose
@edobashira
edobashira / kaldi openfst 1.4 patch
Created May 13, 2014 18:40
Kaldi OpenFst 1.4 patch
Index: src/Makefile
===================================================================
--- src/Makefile (revision 3967)
+++ src/Makefile (working copy)
@@ -92,7 +92,7 @@
# delete or comment out the lines below.
OPENFST_VER = $(shell grep 'PACKAGE_VERSION' ../tools/openfst/Makefile | sed -e 's:.*= ::')
test_dependencies:
- @[ "$(OPENFST_VER)" == '1.2.10' ] || [ "$(OPENFST_VER)" == '1.3.2' ] || [ "$(OPENFST_VER)" == '1.3.4' ] || { echo "You now need openfst-1.2.10. Do: cd ../tools; svn update; ./install.sh; cd ../src; make depend; make"; exit 1; };
+ @[ "$(OPENFST_VER)" == '1.4.0' ] || { echo "You now need openfst-1.4.0. Do: cd ../tools; svn update; ./install.sh; cd ../src; make depend; make"; exit 1; };
@edobashira
edobashira / Makefile
Created April 9, 2014 09:06
Standalone lattice semiring
all: lattice4-arc.so
CXXFLAGS+=-O2 -g -fPIC
#For OSX 10.9 uncomment fhe following
#
#CXXFLAGS+=-stdlib=libstdc++
#LDFLAGS+=-stdlib=libstdc++
lattice4-arc.so: lattice-arc.o
@edobashira
edobashira / Makefile
Created March 26, 2014 09:21
far-to-lattice utility for converting OpenFst FAR files to Kaldi tables.
all:
EXTRA_CXXFLAGS = -Wno-mismatched-tags -Wno-sign-compare \
-L../../tools/openfst-1.3.2/src/extensions/far/.libs \
-lfstfar -lfstfarscript
include ../kaldi.mk
BINFILES = far-to-lattice