Comments (8)
You don't read the code correctly.
The line you are mentioning is just a fallback in case ngram-count is not
on the path.
Having srilm available on path is the safest solution.
y.
On Mon, Aug 31, 2015 at 9:36 PM, Xingyu Na [email protected] wrote:
In many egs scripts, srilm binary examiner is using relative path, such as:
egs/babel/s5c/local/train_lms_srilm.sh: sdir=pwd
/../../../tools/srilm/bin/i686-m64
egs/swbd/s5c/local/swbd1_train_lms.sh: sdir=pwd
/../../../tools/srilm/bin/i686-m64In our environment, users of Kaldi are encouraged to use a share
KALDI_ROOT, instead of building their own version if they don't intend to
change src code. Such scripts cause errors. So should it be an absolute
path? aka:
egs/babel/s5c/local/train_lms_srilm.sh:
sdir=$KALDI_ROOT/tools/srilm/bin/i686-m64
egs/swbd/s5c/local/swbd1_train_lms.sh:
sdir=$KALDI_ROOT/tools/srilm/bin/i686-m64It should work in most settings.
—
Reply to this email directly or view it on GitHub
#110.
from kaldi.
I think his point is, if not on the path, should we be using KALDI_ROOT or
../../..?
I don't think we have a convention or a requirement that KALDI_ROOT should
be exported to shell scripts and available there.
We could consider introducing such a convention.
Meanwhile, it might be possible to modify the script to first use
KALDI_ROOT if defined, and otherwise use ../../... E.g.
[ -z $KALDI_ROOT ] && KALDI_ROOT=../../..
sdir=$KALDI_ROOT/tools/srilm/bin/i686-m64
or whatever. I would consider such a pull request. Of course if Yenda
sees a problem with it I'd take that into account.
Dan
On Mon, Aug 31, 2015 at 9:40 PM, jtrmal [email protected] wrote:
You don't read the code correctly.
The line you are mentioning is just a fallback in case ngram-count is not
on the path.
Having srilm available on path is the safest solution.
y.On Mon, Aug 31, 2015 at 9:36 PM, Xingyu Na [email protected]
wrote:In many egs scripts, srilm binary examiner is using relative path, such
as:
egs/babel/s5c/local/train_lms_srilm.sh: sdir=pwd
/../../../tools/srilm/bin/i686-m64
egs/swbd/s5c/local/swbd1_train_lms.sh: sdir=pwd
/../../../tools/srilm/bin/i686-m64In our environment, users of Kaldi are encouraged to use a share
KALDI_ROOT, instead of building their own version if they don't intend to
change src code. Such scripts cause errors. So should it be an absolute
path? aka:
egs/babel/s5c/local/train_lms_srilm.sh:
sdir=$KALDI_ROOT/tools/srilm/bin/i686-m64
egs/swbd/s5c/local/swbd1_train_lms.sh:
sdir=$KALDI_ROOT/tools/srilm/bin/i686-m64It should work in most settings.
—
Reply to this email directly or view it on GitHub
#110.—
Reply to this email directly or view it on GitHub
#110 (comment).
from kaldi.
I understand that.
But even if 'ngram-count' is not on the path, why does it assume that it
is installed in the users own Kaldi environment?
X.
On 09/01/2015 09:40 AM, jtrmal wrote:
You don't read the code correctly.
The line you are mentioning is just a fallback in case ngram-count is not
on the path.
Having srilm available on path is the safest solution.
y.On Mon, Aug 31, 2015 at 9:36 PM, Xingyu Na [email protected]
wrote:In many egs scripts, srilm binary examiner is using relative path,
such as:
egs/babel/s5c/local/train_lms_srilm.sh: sdir=pwd
/../../../tools/srilm/bin/i686-m64
egs/swbd/s5c/local/swbd1_train_lms.sh: sdir=pwd
/../../../tools/srilm/bin/i686-m64In our environment, users of Kaldi are encouraged to use a share
KALDI_ROOT, instead of building their own version if they don't
intend to
change src code. Such scripts cause errors. So should it be an absolute
path? aka:
egs/babel/s5c/local/train_lms_srilm.sh:
sdir=$KALDI_ROOT/tools/srilm/bin/i686-m64
egs/swbd/s5c/local/swbd1_train_lms.sh:
sdir=$KALDI_ROOT/tools/srilm/bin/i686-m64It should work in most settings.
—
Reply to this email directly or view it on GitHub
#110.—
Reply to this email directly or view it on GitHub
#110 (comment).
from kaldi.
It doesn't assume it, it simply tries it as the first guess, since there is
no-where else to look.
Dan
On Mon, Aug 31, 2015 at 9:46 PM, Xingyu Na [email protected] wrote:
I understand that.
But even if 'ngram-count' is not on the path, why does it assume that it
is installed in the users own Kaldi environment?X.
On 09/01/2015 09:40 AM, jtrmal wrote:
You don't read the code correctly.
The line you are mentioning is just a fallback in case ngram-count is not
on the path.
Having srilm available on path is the safest solution.
y.On Mon, Aug 31, 2015 at 9:36 PM, Xingyu Na [email protected]
wrote:In many egs scripts, srilm binary examiner is using relative path,
such as:
egs/babel/s5c/local/train_lms_srilm.sh: sdir=pwd
/../../../tools/srilm/bin/i686-m64
egs/swbd/s5c/local/swbd1_train_lms.sh: sdir=pwd
/../../../tools/srilm/bin/i686-m64In our environment, users of Kaldi are encouraged to use a share
KALDI_ROOT, instead of building their own version if they don't
intend to
change src code. Such scripts cause errors. So should it be an absolute
path? aka:
egs/babel/s5c/local/train_lms_srilm.sh:
sdir=$KALDI_ROOT/tools/srilm/bin/i686-m64
egs/swbd/s5c/local/swbd1_train_lms.sh:
sdir=$KALDI_ROOT/tools/srilm/bin/i686-m64It should work in most settings.
—
Reply to this email directly or view it on GitHub
#110.—
Reply to this email directly or view it on GitHub
#110 (comment).—
Reply to this email directly or view it on GitHub
#110 (comment).
from kaldi.
I see... Your suggestion sounds plausible.
X.
On 09/01/2015 09:49 AM, Daniel Povey wrote:
It doesn't assume it, it simply tries it as the first guess, since
there is
no-where else to look.
DanOn Mon, Aug 31, 2015 at 9:46 PM, Xingyu Na [email protected]
wrote:I understand that.
But even if 'ngram-count' is not on the path, why does it assume that it
is installed in the users own Kaldi environment?X.
On 09/01/2015 09:40 AM, jtrmal wrote:
You don't read the code correctly.
The line you are mentioning is just a fallback in case ngram-count
is not
on the path.
Having srilm available on path is the safest solution.
y.On Mon, Aug 31, 2015 at 9:36 PM, Xingyu Na [email protected]
wrote:In many egs scripts, srilm binary examiner is using relative path,
such as:
egs/babel/s5c/local/train_lms_srilm.sh: sdir=pwd
/../../../tools/srilm/bin/i686-m64
egs/swbd/s5c/local/swbd1_train_lms.sh: sdir=pwd
/../../../tools/srilm/bin/i686-m64In our environment, users of Kaldi are encouraged to use a share
KALDI_ROOT, instead of building their own version if they don't
intend to
change src code. Such scripts cause errors. So should it be an
absolute
path? aka:
egs/babel/s5c/local/train_lms_srilm.sh:
sdir=$KALDI_ROOT/tools/srilm/bin/i686-m64
egs/swbd/s5c/local/swbd1_train_lms.sh:
sdir=$KALDI_ROOT/tools/srilm/bin/i686-m64It should work in most settings.
—
Reply to this email directly or view it on GitHub
#110.—
Reply to this email directly or view it on GitHub—
Reply to this email directly or view it on GitHub
#110 (comment).—
Reply to this email directly or view it on GitHub
#110 (comment).
from kaldi.
Frankly, I'd support the opposite modification -- have it on the path or
the will die (with possibly some helpful message) :)
We have now the "autoconfiguration" mechanism in the tools so I think there
is no reason for scripts to assume much else than just test for the
existence -- most of these scripts were written before the had the
autoconfig via $KALDI_ROOT/tools/env.sh but I'm not sure if it matters now.
y.
On Mon, Aug 31, 2015 at 9:46 PM, Daniel Povey [email protected]
wrote:
I think his point is, if not on the path, should we be using KALDI_ROOT or
../../..?
I don't think we have a convention or a requirement that KALDI_ROOT should
be exported to shell scripts and available there.
We could consider introducing such a convention.
Meanwhile, it might be possible to modify the script to first use
KALDI_ROOT if defined, and otherwise use ../../... E.g.[ -z $KALDI_ROOT ] && KALDI_ROOT=../../..
sdir=$KALDI_ROOT/tools/srilm/bin/i686-m64or whatever. I would consider such a pull request. Of course if Yenda
sees a problem with it I'd take that into account.
DanOn Mon, Aug 31, 2015 at 9:40 PM, jtrmal [email protected] wrote:
You don't read the code correctly.
The line you are mentioning is just a fallback in case ngram-count is not
on the path.
Having srilm available on path is the safest solution.
y.On Mon, Aug 31, 2015 at 9:36 PM, Xingyu Na [email protected]
wrote:In many egs scripts, srilm binary examiner is using relative path, such
as:
egs/babel/s5c/local/train_lms_srilm.sh: sdir=pwd
/../../../tools/srilm/bin/i686-m64
egs/swbd/s5c/local/swbd1_train_lms.sh: sdir=pwd
/../../../tools/srilm/bin/i686-m64In our environment, users of Kaldi are encouraged to use a share
KALDI_ROOT, instead of building their own version if they don't intend
to
change src code. Such scripts cause errors. So should it be an absolute
path? aka:
egs/babel/s5c/local/train_lms_srilm.sh:
sdir=$KALDI_ROOT/tools/srilm/bin/i686-m64
egs/swbd/s5c/local/swbd1_train_lms.sh:
sdir=$KALDI_ROOT/tools/srilm/bin/i686-m64It should work in most settings.
—
Reply to this email directly or view it on GitHub
#110.—
Reply to this email directly or view it on GitHub
#110 (comment).—
Reply to this email directly or view it on GitHub
#110 (comment).
from kaldi.
I would be OK with just dying.
Dan
On Mon, Aug 31, 2015 at 9:52 PM, jtrmal [email protected] wrote:
Frankly, I'd support the opposite modification -- have it on the path or
the will die (with possibly some helpful message) :)
We have now the "autoconfiguration" mechanism in the tools so I think there
is no reason for scripts to assume much else than just test for the
existence -- most of these scripts were written before the had the
autoconfig via $KALDI_ROOT/tools/env.sh but I'm not sure if it matters now.
y.On Mon, Aug 31, 2015 at 9:46 PM, Daniel Povey [email protected]
wrote:I think his point is, if not on the path, should we be using KALDI_ROOT
or
../../..?
I don't think we have a convention or a requirement that KALDI_ROOT
should
be exported to shell scripts and available there.
We could consider introducing such a convention.
Meanwhile, it might be possible to modify the script to first use
KALDI_ROOT if defined, and otherwise use ../../... E.g.[ -z $KALDI_ROOT ] && KALDI_ROOT=../../..
sdir=$KALDI_ROOT/tools/srilm/bin/i686-m64or whatever. I would consider such a pull request. Of course if Yenda
sees a problem with it I'd take that into account.
DanOn Mon, Aug 31, 2015 at 9:40 PM, jtrmal [email protected]
wrote:You don't read the code correctly.
The line you are mentioning is just a fallback in case ngram-count is
not
on the path.
Having srilm available on path is the safest solution.
y.On Mon, Aug 31, 2015 at 9:36 PM, Xingyu Na [email protected]
wrote:In many egs scripts, srilm binary examiner is using relative path,
such
as:
egs/babel/s5c/local/train_lms_srilm.sh: sdir=pwd
/../../../tools/srilm/bin/i686-m64
egs/swbd/s5c/local/swbd1_train_lms.sh: sdir=pwd
/../../../tools/srilm/bin/i686-m64In our environment, users of Kaldi are encouraged to use a share
KALDI_ROOT, instead of building their own version if they don't
intend
to
change src code. Such scripts cause errors. So should it be an
absolute
path? aka:
egs/babel/s5c/local/train_lms_srilm.sh:
sdir=$KALDI_ROOT/tools/srilm/bin/i686-m64
egs/swbd/s5c/local/swbd1_train_lms.sh:
sdir=$KALDI_ROOT/tools/srilm/bin/i686-m64It should work in most settings.
—
Reply to this email directly or view it on GitHub
#110.—
Reply to this email directly or view it on GitHub
<#110 (comment)
.—
Reply to this email directly or view it on GitHub
#110 (comment).—
Reply to this email directly or view it on GitHub
#110 (comment).
from kaldi.
This issue seems not of anyone's concern but me... Closing it now.
from kaldi.
Related Issues (20)
- Intel MKL installation Fail HOT 1
- The error causes when using the command `./install_mkl.sh` to install mkl tools HOT 1
- When the following situations occur, the memory will increase HOT 3
- Request for prebuilt Android APK demonstrating capabilities HOT 2
- Is that OK to use Openfst 1.8.1 in Kaldi's latest version? HOT 3
- Chain alignments used for training HOT 1
- Error when build docker GPU image ubuntu22.04-cuda12.2.0
- ReadDecodeGraph():onlinebin-util.cc:52) Error reading FST (after reading header).
- kaldi uses the C++17 feature while compiling in the C++14 mode
- Please tag the repository with the version
- AMI download manifest and license, files do not exist HOT 2
- Error while building docker image: install_mkl.sh
- Seeking Guidance on Custom Urdu ASR Training Data and Vocabulary Expansion
- KaldiFatalError
- NO_PUBKEY on intell error HOT 1
- The `Resize` function doesn't change `stride_` if resize_type == kSetZero and `rows == MatrixBase<Real>::num_rows_ && cols == MatrixBase<Real>::num_cols_`.
- Integrate ZLUDA for AMD CUDA HOT 1
- issue with install_klm.sh HOT 2
- utils/validate_data_dir.sh: Error: in data/train_shorter, recording-ids extracted from wav.scp and reco2dur file
- ./install_mkl.sh error: HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kaldi.