From 429ded8f0c0338a8ead953955471932b5756bfa5 Mon Sep 17 00:00:00 2001 From: Benoit Favre <benoit.favre@lif.univ-mrs.fr> Date: Fri, 27 Feb 2015 10:49:19 +0100 Subject: [PATCH] adaptation to archlinux vm --- main.py | 2 +- slu.py | 2 +- slu/src/Makefile | 2 +- start.sh | 6 +++++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index bee5ccb..666b1de 100644 --- a/main.py +++ b/main.py @@ -6,7 +6,7 @@ import glob, re # set to location of libgstkaldionline2.so directory = os.path.dirname(__file__) or '.' -os.environ['GST_PLUGIN_PATH'] = directory + '/asr/' +os.environ['GST_PLUGIN_PATH'] = directory + '/asr/gst' os.environ['GTK_THEME'] = 'light' print 'gst plugin path =', os.environ['GST_PLUGIN_PATH'] diff --git a/slu.py b/slu.py index 1d31c14..13dbb9c 100644 --- a/slu.py +++ b/slu.py @@ -7,7 +7,7 @@ _semaphore = None class SLU: #/src.new/rocio_slu -word "$prefix"_dico_word.txt -action "$prefix"_dico_action.txt -fstmodel "$prefix".fst -fstclean "$prefix"_clean_tail.fst - def __init__(self, word_lexicon, action_lexicon, model_fst, cleaner_fst, library='slu/src.new/librocio_slu.so'): + def __init__(self, word_lexicon, action_lexicon, model_fst, cleaner_fst, library='slu/src/librocio_slu.so'): global _backend, _semaphore if _backend == None: _backend = cdll.LoadLibrary(library) diff --git a/slu/src/Makefile b/slu/src/Makefile index c18a021..62a7ee4 100644 --- a/slu/src/Makefile +++ b/slu/src/Makefile @@ -3,7 +3,7 @@ CC=g++ -CPPFLAGS+= -I. -lfst -I/storage/raid1/homedirs/frederic.bechet/tools/openfst-1.3.3/src/include -L/storage/raid1/homedirs/frederic.bechet/tools/openfst-1.3.3/src/lib/.libs -ldl -std=c++0x -g -Wall +CPPFLAGS+= -I. -lfst -I$(HOME)/kaldi-rocio.git/tools/openfst/include -L$(HOME)/kaldi-rocio.git/tools/openfst/lib/ -ldl -std=c++0x -g -Wall all: rocio_slu process_xml_for_slu diff --git a/start.sh b/start.sh index 421654c..51f8cd0 100755 --- a/start.sh +++ b/start.sh @@ -1 +1,5 @@ -LD_LIBRARY_PATH=/home/favre/work/kaldi/dictate/aur-atlas-lapack/pkg/atlas-lapack/usr/lib/ python2 main.py +#export OPENBLAS_NUM_THREADS=1 +#export OMP_NUM_THREADS=1 +#LD_LIBRARY_PATH=$HOME/kaldi-rocio.git/src/lib/:$HOME/kaldi-rocio.git/tools/openfst/lib/ python2 main.py +dir=`dirname $0` +LD_LIBRARY_PATH=$dir/asr/libs:$dir/asr/libs/fst:$dir/asr/libs/atlas python2 main.py -- GitLab