Hello,
I want to use the alex_asr (https://github.com/UFAL-DSG/alex-asr) for deploying my kaldi model. By installing it, I get the following error message:
******************Message *************************
g++ -msse -msse2 -Wall -pthread -DKALDI_DOUBLEPRECISION=0 -DHAVE_POSIX_MEMALIGN -Wno-sign-compare -Wno-unused-local-typedefs -Winit-self -DHAVE_EXECINFO_H=1 -rdynamic -DHAVE_CXXABI_H -DHAVE_ATLAS -g -Ilibs/kaldi/tools/openfst//include -Ilibs/kaldi/src -Ilibs/kaldi/tools/ATLAS/include -Ilibs/kaldi/tools/CLAPACK -Wno-sign-compare -I. -fPIC -c -o src/decoder.o src/decoder.cc
In file included from ./src/decoder_config.h:15:0,
from ./src/decoder.h:8,
from src/decoder.cc:1:
./src/utils.h:63:48: error: ‘vector’ has not been declared
vector alpha,
^~~~~~
./src/utils.h:63:54: error: expected ‘,’ or ‘...’ before ‘<’ token
vector alpha,
^
src/decoder.cc: In member function ‘bool alex_asr::Decoder::GetBestPath(std::vector, kaldi::BaseFloat)’:
src/decoder.cc:190:50: error: ‘vector’ does not name a type; did you mean ‘perror’?
static_cast<vector *>(0),
^~~~~~
perror
src/decoder.cc:190:56: error: expected ‘>’ before ‘<’ token
static_cast<vector *>(0),
^
src/decoder.cc:190:56: error: expected ‘(’ before ‘<’ token
src/decoder.cc:190:56: error: expected primary-expression before ‘<’ token
src/decoder.cc:190:62: error: expected primary-expression before ‘>’ token
static_cast<vector *>(0),
^
src/decoder.cc:190:65: error: expected primary-expression before ‘>’ token
static_cast<vector *>(0),
^
src/decoder.cc: In member function ‘int32 alex_asr::Decoder::TrailingSilenceLength()’:
src/decoder.cc:241:58: error: no matching function for call to ‘TrailingSilenceLength(kaldi::TransitionModel&, std::cxx11::string&, kaldi::LatticeFasterOnlineDecoder&)’
*decoder);
^
In file included from ./src/decoder_config.h:12:0,
from ./src/decoder.h:8,
from src/decoder.cc:1:
libs/kaldi/src/online2/online-endpoint.h:192:7: note: candidate: template<class FST, class DEC> int32 kaldi::TrailingSilenceLength(const kaldi::TransitionModel&, const string&, const DEC&)
int32 TrailingSilenceLength(const TransitionModel &tmodel,
^~~~~~~~~~~~~~~~~~~~~
libs/kaldi/src/online2/online-endpoint.h:192:7: note: template argument deduction/substitution failed:
src/decoder.cc:241:58: note: couldn't deduce template parameter ‘FST’
*decoder);
^
: recipe for target 'src/decoder.o' failed
make: *** [src/decoder.o] Error 1
error: [Errno 2] No such file or directory: 'setup.py.add_libs'
I need your help please.
Thanks in advance
Hello,
I want to use the alex_asr (https://github.com/UFAL-DSG/alex-asr) for deploying my kaldi model. By installing it, I get the following error message:
******************Message *************************
g++ -msse -msse2 -Wall -pthread -DKALDI_DOUBLEPRECISION=0 -DHAVE_POSIX_MEMALIGN -Wno-sign-compare -Wno-unused-local-typedefs -Winit-self -DHAVE_EXECINFO_H=1 -rdynamic -DHAVE_CXXABI_H -DHAVE_ATLAS -g -Ilibs/kaldi/tools/openfst//include -Ilibs/kaldi/src -Ilibs/kaldi/tools/ATLAS/include -Ilibs/kaldi/tools/CLAPACK -Wno-sign-compare -I. -fPIC -c -o src/decoder.o src/decoder.cc
In file included from ./src/decoder_config.h:15:0,
from ./src/decoder.h:8,
from src/decoder.cc:1:
./src/utils.h:63:48: error: ‘vector’ has not been declared
vector alpha,
^~~~~~
./src/utils.h:63:54: error: expected ‘,’ or ‘...’ before ‘<’ token
vector alpha,
^
src/decoder.cc: In member function ‘bool alex_asr::Decoder::GetBestPath(std::vector, kaldi::BaseFloat)’:
src/decoder.cc:190:50: error: ‘vector’ does not name a type; did you mean ‘perror’?
static_cast<vector *>(0),
^~~~~~
perror
src/decoder.cc:190:56: error: expected ‘>’ before ‘<’ token
static_cast<vector *>(0),
^
src/decoder.cc:190:56: error: expected ‘(’ before ‘<’ token
src/decoder.cc:190:56: error: expected primary-expression before ‘<’ token
src/decoder.cc:190:62: error: expected primary-expression before ‘>’ token
static_cast<vector *>(0),
^
src/decoder.cc:190:65: error: expected primary-expression before ‘>’ token
static_cast<vector *>(0),
^
src/decoder.cc: In member function ‘int32 alex_asr::Decoder::TrailingSilenceLength()’:
src/decoder.cc:241:58: error: no matching function for call to ‘TrailingSilenceLength(kaldi::TransitionModel&, std::cxx11::string&, kaldi::LatticeFasterOnlineDecoder&)’
*decoder);
^
In file included from ./src/decoder_config.h:12:0,
from ./src/decoder.h:8,
from src/decoder.cc:1:
libs/kaldi/src/online2/online-endpoint.h:192:7: note: candidate: template<class FST, class DEC> int32 kaldi::TrailingSilenceLength(const kaldi::TransitionModel&, const string&, const DEC&)
int32 TrailingSilenceLength(const TransitionModel &tmodel,
^~~~~~~~~~~~~~~~~~~~~
libs/kaldi/src/online2/online-endpoint.h:192:7: note: template argument deduction/substitution failed:
src/decoder.cc:241:58: note: couldn't deduce template parameter ‘FST’
*decoder);
^
: recipe for target 'src/decoder.o' failed
make: *** [src/decoder.o] Error 1
error: [Errno 2] No such file or directory: 'setup.py.add_libs'
I need your help please.
Thanks in advance