Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[src] Lots of changes: first stab at kaldi10 (non-compatible version of kaldi) #3083

Open
wants to merge 176 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
176 commits
Select commit Hold shift + click to select a range
f5f02d1
[src] Lots of changes: first stab at kaldi10 (non-compatible version …
danpovey Mar 10, 2019
cc1d251
Merge master into kaldi10 (#3105)
desh2608 Mar 14, 2019
f28516a
[src] Add Vector strides, beginning draft of tensor stuff (#3120)
danpovey Mar 15, 2019
b9efc54
Merge with master branch
desh2608 Mar 15, 2019
f93749a
[src] More work on tensor library draft in kaldi10 (#3124)
danpovey Mar 17, 2019
a3eeb7c
merged 'master' into kaldi10 and resolved conflicts
desh2608 Mar 17, 2019
f59489f
Merge pull request #3129 from desh2608/kaldi10_new
danpovey Mar 17, 2019
21a3913
Kaldi10 (#3131)
danpovey Mar 17, 2019
eca0e80
[src] More drafting of tensor related stuff (#3132)
danpovey Mar 18, 2019
63e35b0
[src] completed stride support for kaldi-vector (#3146)
YiwenShaoStephen Mar 20, 2019
c4a326e
Some cleanups in matrix/; more work on tensor draft (#3150)
danpovey Mar 20, 2019
4cab3db
Merged with 'master' (#3156)
desh2608 Mar 21, 2019
910ec50
[src] More tensor draft stuff; add simple test of vector stride
danpovey Mar 22, 2019
9bba411
Merge pull request #3161 from danpovey/kaldi10
danpovey Mar 22, 2019
5fa86ad
Kaldi10 (#3167)
danpovey Mar 26, 2019
7acef2a
Kaldi10: Implement topology (#3169)
hhadian Mar 26, 2019
26edaf6
Kaldi10: Add missing file (from PR #3169) + minor fixes (#3170)
hhadian Mar 26, 2019
5117c63
merged with master
desh2608 Mar 26, 2019
fe57b4a
Merge pull request #3173 from desh2608/kaldi10_merge
danpovey Mar 26, 2019
d6634f7
Implement most of transitins.cc (#3184)
hhadian Mar 29, 2019
20c73b5
[src] Kaldi10 changes: remove vector strides, more tensor progress. (…
danpovey Mar 31, 2019
885249a
[src] Kaldi10, more tensor progress (#3189)
danpovey Mar 31, 2019
e36034e
Implement the rest of transitions.cc + tests (#3198)
hhadian Apr 2, 2019
f8adced
Remove lingering HTK support fully. (#3201)
galv Apr 3, 2019
6d5c87b
Fix compilation of posterior.cc (#3200)
galv Apr 3, 2019
8fa9d18
Kaldi10: more tensor drafting. (#3246)
danpovey Apr 18, 2019
4a6b739
[src] Tensor progress
danpovey Apr 20, 2019
99873c6
[src] Further progress
danpovey Apr 22, 2019
493efff
[src] Lots more progress, still in flux
danpovey Apr 24, 2019
2a85204
[src,egs] Update code related to pdf-class to be 1-based. (#3278)
hhadian Apr 28, 2019
af6a30b
[src] More drafting on tensor code
danpovey Apr 30, 2019
3647d2d
[kaldi10] WIP hmm-utils.cc
galv Apr 16, 2019
f0e32f9
Clean up based on feedback.
galv Apr 17, 2019
a8b5580
hmm-utils.cc: Everything compiles except for AddSelfLoops.
galv Apr 18, 2019
af91c73
hmm-utils.cc compiles, except for a bizarre problem with the copy-ass…
galv Apr 18, 2019
25ebce5
Successfully compile all binaries other than cuda-gpu-available.cc
galv May 2, 2019
c0b6042
[src] Further progress
danpovey May 3, 2019
82ec8b7
Merge pull request #3290 from danpovey/kaldi10
danpovey May 3, 2019
24a85c9
[src] Further progress
danpovey May 4, 2019
d588595
Merge pull request #3292 from danpovey/kaldi10
danpovey May 4, 2019
3b2fee1
[src] further tensor progress
danpovey May 4, 2019
a751cf4
[src] Tensor progress; rename some files
May 5, 2019
670b2d5
[src] Small changes
May 5, 2019
cf95fe4
[src] Add definition
danpovey May 5, 2019
26121fc
Merge pull request #3294 from danpovey/kaldi10
danpovey May 5, 2019
5d5d387
[src] Various progress
danpovey May 12, 2019
f6e9281
[src] Small tensor changes prior to rewrite
danpovey May 17, 2019
931496f
[src] Some major changes in rough draft
danpovey May 24, 2019
3c3d9a9
[src] Lots of tensor changes
danpovey May 31, 2019
3dd5e7e
[src] Refactoring of matrix directory to separate out the cblas wrapp…
danpovey Jun 17, 2019
b254c83
[src] Add more things to cblasext
danpovey Jun 17, 2019
f566e81
[scripts] Fix non-randomness in getting utt2uniq, introduced in #3142…
desh2608 Mar 27, 2019
560594e
[build] Don't build for Tegra sm_XX versions on x86/ppc and vice vers…
luitjens Mar 27, 2019
4264512
[egs] Fixes Re encoding to IAM, uw3 recipes (#3012)
aarora8 Mar 29, 2019
6787282
[src] Efficiency improvement and extra checking for cudamarix, RE def…
luitjens Mar 30, 2019
8a1acde
[egs] Fix small typo in tedlium download script (#3178)
Shujian2015 Mar 30, 2019
5f00d0d
[github] Add GitHub issue templates (#3187)
Mar 31, 2019
6e998a9
[build] Add missing dependency to Makefile (#3191)
danpovey Mar 31, 2019
bf0af1d
[src] Fix bug in pruned lattice rescoring when input lattice has epsi…
hainan-xv Apr 1, 2019
7371a95
[scripts] Fix bug in extend_lang.sh regarding extra_disambig.txt (#3195)
armusc Apr 2, 2019
32496b4
[egs] Update Tedlium s5_r3 example with more up-to-date chain TDNN co…
jyhnnhyj Apr 3, 2019
43ba4f2
[scripts] Fix bug in extend_lang.sh causing validation failure w/ ext…
jty016 Apr 3, 2019
c737d94
[scripts] Bug-fix in make_lexicon_fst.py, which failed when --sil-pro…
armusc Apr 4, 2019
57d63cc
[egs] Fix very small typo in run_tdnn_1b.sh (#3207)
Shujian2015 Apr 4, 2019
9393b66
[build] Tensorflow version update (#3204)
langep Apr 4, 2019
4efc486
[src] Optimizations to CUDA kernels (#3209)
kangshiyin Apr 6, 2019
59523dc
[src] Move curand handle out of CuRand class and into CuDevice. (#3196)
luitjens Apr 7, 2019
da729a5
[build] Make MKL the default BLAS library, add installation scripts (…
Apr 7, 2019
c8ada0c
[build] check for i686 as a valid prefix for Android triplets (#3213)
Dr-Desty-Nova Apr 7, 2019
e1ac00f
[build] Fix configure breakage from #3194 (MKL default)
Apr 9, 2019
c54b5e5
[build] Add missing line continuation '\' in tfrnnlmbin/Makefile (#3218)
teinhonglo Apr 10, 2019
519493f
[src] Fix nnet2 DctComponent test failure (#3225)
huangruizhe Apr 12, 2019
d7685cb
[src] Update CUDA code to avoid synchronization errors on compute ca…
kangshiyin Apr 12, 2019
cbdb930
[src] fix nnet2 DCTCompnent test failure -- removing anther dct_keep_…
huangruizhe Apr 12, 2019
d22530f
[build] Remove references to deprecated MKL libs in gst_plugin (#3229)
Apr 14, 2019
e0cce5b
[scripts] Fix default params in nnet3 segmentation script (#3230)
rezame Apr 14, 2019
cbd1aa3
[src] Correct sanity check in nnet-example-utils.cc (nnet3) (#3232)
KarelVesely84 Apr 16, 2019
a12ee73
Revert "[src] Update CUDA code to avoid synchronization errors on co…
danpovey Apr 16, 2019
b2f9c54
[build] .gitignore autogenerated /tools/python/ (#3241)
mcalahan Apr 17, 2019
3642739
[scripts] Enhance argument checks in nnet3/align_lats.sh (#3243)
Apr 18, 2019
507145f
[egs] invoke 'python2.7' not 'python' when using mmseg (#3244)
naxingyu Apr 18, 2019
db8ed5b
[scripts] Make getting nnet3 model context more robust (#3247)
KarelVesely84 Apr 18, 2019
f8de5a8
[egs] Fix hkust_data_prep.sh w.r.t. iconv mac compatibility issue (#3…
zh794390558 Apr 19, 2019
68ad4e9
[egs] Update RM chain recipe with more recent configuration (#3237)
indra622 Apr 19, 2019
4831a66
[egs] Make voxceleb recipe work with latest version of the dataset (…
sunshines14 Apr 19, 2019
0534e49
[egs] Improve chain example script for Resource Management (RM) (#3252)
indra622 Apr 21, 2019
db2ed32
[src] GPU-related changes for speed and correctness on newer arch's. …
luitjens Apr 22, 2019
479c732
[egs] Update voxceleb v1 preparation scripts (#3255)
jyhnnhyj Apr 23, 2019
8c197b4
[build] Note default=MKL; cosmetic fix (#3257)
nshmyrev Apr 23, 2019
56dc8d9
[egs] Fix to hkust_data_prep.sh w.r.t. how mmseg is checked for (#3240)
zh794390558 Apr 23, 2019
16c9270
[egs] In WSJ run_ivector_common.sh, expose i-vector #jobs config to r…
KarelVesely84 Apr 23, 2019
57205cf
[egs] Add Spanish dimex100 example (#3254)
alx741 Apr 23, 2019
a756df2
[build] Build and configure OpenBLAS; default to it on non-x64 machin…
Apr 25, 2019
121dbbe
[scripts] Fix of a bug in segmentation.pl (#3256)
songyf Apr 25, 2019
a0b6f3f
[src] Fixes to cuda unit tests. (#3268)
luitjens Apr 25, 2019
c415cba
[src] Adding GPU/CUDA lattice batched decoder + binary (#3114)
hugovbraun Apr 26, 2019
4231107
[src] Fix unit-test failure UnitTestCuMatrixSetRandn() (#3274)
DongjiGao Apr 27, 2019
25c7289
[src,build] Removed cusolver for now (not needed yet; caused build p…
huangruizhe Apr 27, 2019
e3abc65
[scripts] Make fix_data_dir.sh remove utterances which have bad durat…
hhadian Apr 30, 2019
7a93e7f
[scripts] Make generate_plots.py python3-compatible (#3280)
May 1, 2019
c9a1257
[scripts] Add --one-based option to split_scp.pl (#3279)
xsawyerx May 1, 2019
aae8be4
[scripts] Allow UTF utterance-ids by removing unnecessary assert (#3283)
rezame May 1, 2019
803e3ee
[src] Keep nnet output in the [-30,30] range required by chain denomi…
danpovey May 2, 2019
b44f708
[scripts] Clean up filehandle usage in split_scp.pl (#3285)
xsawyerx May 2, 2019
7055784
[src] Fix to bug in online-feature.cc that caused crash at end of utt…
danpovey May 2, 2019
1bcea23
[scripts] Use correct compile-time regex syntax in split_scp.pl (#3287)
xsawyerx May 2, 2019
bfbe861
[scripts] Fix a typo in steps/dict/learn_lexicon_bayesian.sh (#3288)
xiaohui-zhang May 2, 2019
61b2347
[egs,scripts] Scripts and an example of BPE-based sub-word decoding (…
DongjiGao May 5, 2019
49bccbb
[scripts] Add trainer option --trainer.optimization.num-jobs-step (#3…
May 7, 2019
8209d18
[egs] Add MGB-5 recipe; https://arabicspeech.org/mgb5 (#3299)
May 8, 2019
5fbc9eb
Revert "[scripts] Clean up filehandle usage in split_scp.pl (#3285)" …
danpovey May 9, 2019
b78d92e
[src] Fix bug in GeneralMatrix::Uncompress() (#3304)
bringtree May 9, 2019
fee2acd
[doc] add an omission in Doxyfile (#3309)
May 10, 2019
de81d0c
[scripts] Fix utils/split_scp.pl breakage (#3308)
May 10, 2019
3453b5a
[egs] Bug-fix to shebang in fisher_callhome_spanish (#3312)
saikiranvalluri May 11, 2019
5ca7f58
[scripts] Fix error messages in run.pl (#3314)
May 11, 2019
e2dc9c3
[egs] New chime-5 recipe (#2893)
vimalmanohar May 12, 2019
e330320
[scripts,egs] Made changes to the augmentation script to make it work…
phanisankar-nidadavolu May 13, 2019
2826b35
[egs] updated local/musan.sh to steps/data/make_musan.sh in speaker i…
phanisankar-nidadavolu May 13, 2019
c695bbc
[src] Fix sample rounding errors in extract-segments (#3321)
May 14, 2019
cfa48eb
[src,scripts]Store frame_shift, utt2{dur,num_frames}, .conf with feat…
May 14, 2019
a1343bd
[build] Initial version of Docker images for (CPU and GPU versions) (…
mdoulaty May 15, 2019
9569384
[scripts] fix typo/bug in make_musan.py (#3327)
wonkyuml May 15, 2019
94aef8d
[scripts] Trust frame_shift and utt2num_frames if found (#3313)
May 16, 2019
9ae4a5c
[scripts] typo fix in augmentation script (#3329)
wonkyuml May 16, 2019
74ebdee
[scripts] handle frame_shit and utt2num_frames in utils/ (#3323)
May 16, 2019
d1c49bf
[scripts] Extend combine_ali_dirs.sh to combine alignment lattices (#…
May 17, 2019
bcfcad7
[src] Fix rare case when segment end rounding overshoots file end in …
alumae May 17, 2019
264372c
[scripts] Change --modify-spk-id default to False; back-compatibility…
phanisankar-nidadavolu May 20, 2019
485c248
[build] Add easier configure option in failure message of configure (…
danpovey May 20, 2019
e3ece34
[scripts,minor] Fix typo in comment (#3338)
Shujian2015 May 22, 2019
d03c16e
[src,egs] Add option for applying SVD on trained models (#3272)
saikiranvalluri May 23, 2019
33a16d8
[src] Add interfaces to nnet-batch-compute that expects device input.…
luitjens May 23, 2019
1e8260b
[build] Update GCC support check for CUDA toolkit 10.1 (#3345)
entn-at May 27, 2019
10bb5de
[egs] Fix to aishell1 v1 download script (#3344)
naxingyu May 27, 2019
d8d3b86
[scripts] Support utf-8 files in some scripts (#3346)
vimalmanohar May 28, 2019
75a69d9
[scripts]: add warning to nnet3/chain/train.py about ineffective opti…
bringtree May 28, 2019
448c876
[src] Misc tensor progress
danpovey Jun 3, 2019
5937fae
[src] small change
danpovey Jun 5, 2019
602ae12
[src] tensor progress
danpovey Jun 10, 2019
32101ba
[src] Change name from kGpuDevice to kCudaDevice
danpovey Jun 10, 2019
33c36bb
[src] More tensor progress
danpovey Jun 14, 2019
b247f30
[src] Progress on standard cuda kernels for tensor directory
danpovey Jun 15, 2019
553f4a8
[src] TEnsor progress.
danpovey Jun 19, 2019
c188496
[src] Merge upstream (may be other merges going on here too.)
danpovey Jun 19, 2019
689a42c
Merge branch 'kaldi10-hmm-utils' of https://github.com/galv/kaldi int…
danpovey Jun 19, 2019
935b151
[src] Minor changes / fixes
danpovey Jun 19, 2019
aa499a3
Merge remote-tracking branch 'origin/kaldi10-temp' into kaldi10
danpovey Jun 19, 2019
1b4dec7
[build] Add missing Makefile
danpovey Jun 19, 2019
c349ef5
[src] Changes to make more things compile
danpovey Jun 20, 2019
ebc6f83
[src] Partial changes to cudafeat, giving up for now
danpovey Jun 20, 2019
5b0c098
[src] Various changes to get it to compile
danpovey Jun 22, 2019
038ea06
[src] Bug-fixes/rewrites to fix test failures in hmm-utils-test
danpovey Jun 22, 2019
42942f5
[src] Various changes to make test pass
danpovey Jun 23, 2019
9dd4f63
[src] One last fix to make tests pass
danpovey Jun 23, 2019
a9c96f6
[src] Changing numbering of pattern preconditions
danpovey Jul 3, 2019
57a8d0e
[scripts,egs] Removing no-longer-existing options like --transition-s…
danpovey Jul 10, 2019
f4b8f53
[src] Various fixes
danpovey Jul 10, 2019
d91a020
[src] Add back lattice-add-trans-probs
danpovey Jul 10, 2019
10400f4
[src,scripts] Various fixes related to kaldi10 topo changes
danpovey Jul 11, 2019
10663ad
[src,scripts] Fixes to kaldi10 branch to make things work
danpovey Jul 14, 2019
252fedf
[build] Add missing SUBDIR to Makefile (#3466)
naxingyu Jul 15, 2019
bf16577
[src] restore cuda-compiled to kaldi10 (#3471)
naxingyu Jul 17, 2019
5a30b71
Add feature transform; remove train transition (#3474)
naxingyu Jul 18, 2019
db6b23d
[src] Fixes RE unusual topologies
danpovey Jul 18, 2019
1cbb691
[src] Fixes RE unusual topologies (#3478)
danpovey Jul 18, 2019
6ba25b5
[src] Fixes RE unusual topologies (#3481)
danpovey Jul 19, 2019
7a53503
[src] Fixes RE unusual topologies (#3480)
danpovey Jul 22, 2019
3a1e523
Kaldi10 feature-changes + attention/transformer scripts (#3562)
danpovey Sep 3, 2019
5514685
Merged with master but have not cleaned up its effects yet.
danpovey Sep 30, 2019
d844498
Properly merge online2bin dir from master (previously accidentally lo…
danpovey Sep 30, 2019
85cbf75
Add link kaldi->src, will eventually move the dir to be named 'kaldi'
danpovey Oct 1, 2019
312e687
Various kaldi10 fixes after merge
danpovey Oct 2, 2019
234d00d
Merge some previous fixes in (CAUTION: there was something about kNoL…
danpovey Oct 2, 2019
4b8bab0
[src] Clarification in comment
danpovey Oct 2, 2019
b322275
Fix some comments
danpovey Dec 11, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
34 changes: 8 additions & 26 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ SHELL := /bin/bash


SUBDIRS = base matrix util feat tree gmm transform \
fstext hmm lm decoder lat kws cudamatrix nnet \
fstext hmm lm decoder lat kws cudamatrix \
bin fstbin gmmbin fgmmbin featbin \
nnetbin latbin sgmm2 sgmm2bin nnet2 nnet3 rnnlm chain nnet3bin nnet2bin kwsbin \
latbin nnet3 rnnlm chain nnet3bin kwsbin \
ivector ivectorbin online2 online2bin lmbin chainbin rnnlmbin

MEMTESTDIRS = base matrix util feat tree gmm transform \
fstext hmm lm decoder lat nnet kws chain \
fstext hmm lm decoder lat kws chain \
bin fstbin gmmbin fgmmbin featbin \
nnetbin latbin sgmm2 nnet2 nnet3 rnnlm nnet2bin nnet3bin sgmm2bin kwsbin \
latbin nnet3 rnnlm nnet3bin kwsbin \
ivector ivectorbin online2 online2bin lmbin

CUDAMEMTESTDIR = cudamatrix
Expand All @@ -23,9 +23,6 @@ SUBDIRS_LIB = $(filter-out %bin, $(SUBDIRS))

KALDI_SONAME ?= libkaldi.so

# Optional subdirectories
EXT_SUBDIRS = online onlinebin # python-kaldi-decoding
EXT_SUBDIRS_LIB = $(filter-out %bin, $(EXT_SUBDIRS))

include kaldi.mk

Expand Down Expand Up @@ -72,19 +69,6 @@ endif
endif
endif

biglibext: $(EXT_SUBDIRS_LIB)
ifeq ($(KALDI_FLAVOR), dynamic)
ifeq ($(shell uname), Darwin)
$(CXX) -dynamiclib -o $(KALDILIBDIR)/libkaldi_ext.dylib -install_name @rpath/libkaldi_ext.dylib -framework Accelerate $(LDFLAGS) $(EXT_SUBDIRS_LIB:=/*.dylib)
else
ifeq ($(shell uname), Linux)
#$(warning The following command will probably fail, in that case add -fPIC to your CXXFLAGS and remake all.)
$(CXX) -shared -o $(KALDILIBDIR)/libkaldi_ext.so -Wl,-soname=libkaldi_ext.so,--whole-archive $(EXT_SUBDIRS_LIB:=/kaldi-*.a) -Wl,--no-whole-archive
else
$(error Dynamic libraries not supported on this platform. Run configure with --static flag. )
endif
endif
endif

kaldi.mk:
@[ -f kaldi.mk ] || { echo "kaldi.mk does not exist; you have to run ./configure"; exit 1; }
Expand Down Expand Up @@ -143,9 +127,9 @@ $(EXT_SUBDIRS) : checkversion kaldi.mk mklibdir ext_depend
### Dependency list ###
# this is necessary for correct parallel compilation
#1)The tools depend on all the libraries
bin fstbin gmmbin fgmmbin sgmm2bin featbin nnetbin nnet2bin nnet3bin chainbin latbin ivectorbin lmbin kwsbin online2bin rnnlmbin: \
bin fstbin gmmbin fgmmbin sgmm2bin featbin nnet3bin chainbin latbin ivectorbin lmbin kwsbin online2bin rnnlmbin: \
base matrix util feat tree gmm transform sgmm2 fstext hmm \
lm decoder lat cudamatrix nnet nnet2 nnet3 ivector chain kws online2 rnnlm
lm decoder lat cudamatrix nnet3 ivector chain kws online2 rnnlm

#2)The libraries have inter-dependencies
base: base/.depend.mk
Expand All @@ -162,15 +146,13 @@ lm: base util matrix fstext
decoder: base util matrix gmm hmm tree transform lat
lat: base util hmm tree matrix
cudamatrix: base util matrix
nnet: base util hmm tree matrix cudamatrix
nnet2: base util matrix lat gmm hmm tree transform cudamatrix
nnet3: base util matrix lat gmm hmm tree transform cudamatrix chain fstext
rnnlm: base util matrix cudamatrix nnet3 lm hmm
chain: lat hmm tree fstext matrix cudamatrix util base
ivector: base util matrix transform tree gmm
#3)Dependencies for optional parts of Kaldi
onlinebin: base matrix util feat tree gmm transform sgmm2 fstext hmm lm decoder lat cudamatrix nnet nnet2 online
onlinebin: base matrix util feat tree gmm transform sgmm2 fstext hmm lm decoder lat cudamatrix online
# python-kaldi-decoding: base matrix util feat tree gmm transform sgmm2 fstext hmm decoder lat online
online: decoder gmm transform feat matrix util base lat hmm tree
online2: decoder gmm transform feat matrix util base lat hmm tree ivector cudamatrix nnet2 nnet3 chain
online2: decoder gmm transform feat matrix util base lat hmm tree ivector cudamatrix nnet3 chain
kws: base util hmm tree matrix lat
2 changes: 1 addition & 1 deletion src/bin/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ BINFILES = align-equal align-equal-compiled acc-tree-stats \
matrix-sum build-pfile-from-ali get-post-on-ali tree-info am-info \
vector-sum matrix-sum-rows est-pca sum-lda-accs sum-mllt-accs \
transform-vec align-text matrix-dim post-to-smat compile-graph \
compare-int-vector
compare-int-vector cuda-gpu-available


OBJFILES =
Expand Down
4 changes: 2 additions & 2 deletions src/bin/acc-lda.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#include "base/kaldi-common.h"
#include "util/common-utils.h"
#include "hmm/transition-model.h"
#include "hmm/transitions.h"
#include "hmm/posterior.h"
#include "transform/lda-estimate.h"

Expand Down Expand Up @@ -57,7 +57,7 @@ int main(int argc, char *argv[]) {
std::string posteriors_rspecifier = po.GetArg(3);
std::string acc_wxfilename = po.GetArg(4);

TransitionModel trans_model;
Transitions trans_model;
{
bool binary_read;
Input ki(model_rxfilename, &binary_read);
Expand Down
4 changes: 2 additions & 2 deletions src/bin/acc-tree-stats.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "util/common-utils.h"
#include "tree/context-dep.h"
#include "tree/build-tree-utils.h"
#include "hmm/transition-model.h"
#include "hmm/transitions.h"
#include "hmm/tree-accu.h"

/** @brief Accumulate tree statistics for decision tree training. The
Expand Down Expand Up @@ -62,7 +62,7 @@ int main(int argc, char *argv[]) {

AccumulateTreeStatsInfo acc_tree_stats_info(opts);

TransitionModel trans_model;
Transitions trans_model;
{
bool binary;
Input ki(model_filename, &binary);
Expand Down
4 changes: 2 additions & 2 deletions src/bin/add-self-loops.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
// See the Apache 2 License for the specific language governing permissions and
// limitations under the License.

#include "hmm/transition-model.h"
#include "hmm/transitions.h"
#include "hmm/hmm-utils.h"
#include "tree/context-dep.h"
#include "util/common-utils.h"
Expand Down Expand Up @@ -88,7 +88,7 @@ int main(int argc, char *argv[]) {
"standard input" : disambig_in_filename);
}

TransitionModel trans_model;
Transitions trans_model;
ReadKaldiObject(model_in_filename, &trans_model);


Expand Down
4 changes: 2 additions & 2 deletions src/bin/ali-to-pdf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/
#include "base/kaldi-common.h"
#include "gmm/am-diag-gmm.h"
#include "hmm/transition-model.h"
#include "hmm/transitions.h"
#include "hmm/hmm-utils.h"
#include "util/common-utils.h"
#include "fst/fstlib.h"
Expand All @@ -48,7 +48,7 @@ int main(int argc, char *argv[]) {
alignments_rspecifier = po.GetArg(2),
pdfs_wspecifier = po.GetArg(3);

TransitionModel trans_model;
Transitions trans_model;
ReadKaldiObject(model_filename, &trans_model);

SequentialInt32VectorReader reader(alignments_rspecifier);
Expand Down
10 changes: 5 additions & 5 deletions src/bin/ali-to-phones.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


#include "base/kaldi-common.h"
#include "hmm/transition-model.h"
#include "hmm/transitions.h"
#include "hmm/hmm-utils.h"
#include "util/common-utils.h"
#include "fst/fstlib.h"
Expand Down Expand Up @@ -68,7 +68,7 @@ int main(int argc, char *argv[]) {
std::string model_filename = po.GetArg(1),
alignments_rspecifier = po.GetArg(2);

TransitionModel trans_model;
Transitions trans_model;
ReadKaldiObject(model_filename, &trans_model);

SequentialInt32VectorReader reader(alignments_rspecifier);
Expand Down Expand Up @@ -98,7 +98,7 @@ int main(int argc, char *argv[]) {
BaseFloat phone_start = 0.0;
for (size_t i = 0; i < split.size(); i++) {
KALDI_ASSERT(!split[i].empty());
int32 phone = trans_model.TransitionIdToPhone(split[i][0]);
int32 phone = trans_model.InfoForTransitionId(split[i][0]).phone;
int32 num_repeats = split[i].size();
ctm_writer.Stream() << key << " 1 " << phone_start << " "
<< (frame_shift * num_repeats) << " " << phone << std::endl;
Expand All @@ -108,7 +108,7 @@ int main(int argc, char *argv[]) {
std::vector<int32> phones;
for (size_t i = 0; i < split.size(); i++) {
KALDI_ASSERT(!split[i].empty());
int32 phone = trans_model.TransitionIdToPhone(split[i][0]);
int32 phone = trans_model.InfoForTransitionId(split[i][0]).phone;
int32 num_repeats = split[i].size();
//KALDI_ASSERT(num_repeats!=0);
if (per_frame)
Expand All @@ -122,7 +122,7 @@ int main(int argc, char *argv[]) {
std::vector<std::pair<int32, int32> > pairs;
for (size_t i = 0; i < split.size(); i++) {
KALDI_ASSERT(split[i].size() > 0);
int32 phone = trans_model.TransitionIdToPhone(split[i][0]);
int32 phone = trans_model.InfoForTransitionId(split[i][0]).phone;
int32 num_repeats = split[i].size();
//KALDI_ASSERT(num_repeats!=0);
pairs.push_back(std::make_pair(phone, num_repeats));
Expand Down
2 changes: 1 addition & 1 deletion src/bin/ali-to-post.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "base/kaldi-common.h"
#include "util/common-utils.h"
#include "gmm/am-diag-gmm.h"
#include "hmm/transition-model.h"
#include "hmm/transitions.h"
#include "hmm/hmm-utils.h"
#include "hmm/posterior.h"

Expand Down
4 changes: 2 additions & 2 deletions src/bin/align-compiled-mapped.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#include "base/kaldi-common.h"
#include "util/common-utils.h"
#include "hmm/transition-model.h"
#include "hmm/transitions.h"
#include "hmm/hmm-utils.h"
#include "fstext/fstext-lib.h"
#include "decoder/decoder-wrappers.h"
Expand Down Expand Up @@ -74,7 +74,7 @@ int main(int argc, char *argv[]) {
std::string alignment_wspecifier = po.GetArg(4);
std::string scores_wspecifier = po.GetOptArg(5);

TransitionModel trans_model;
Transitions trans_model;
ReadKaldiObject(model_in_filename, &trans_model);

SequentialBaseFloatMatrixReader loglikes_reader(feature_rspecifier);
Expand Down
2 changes: 1 addition & 1 deletion src/bin/align-equal-compiled.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "base/kaldi-common.h"
#include "util/common-utils.h"
#include "tree/context-dep.h"
#include "hmm/transition-model.h"
#include "hmm/transitions.h"
#include "fstext/fstext-lib.h"
#include "decoder/training-graph-compiler.h"

Expand Down
4 changes: 2 additions & 2 deletions src/bin/align-equal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "base/kaldi-common.h"
#include "util/common-utils.h"
#include "tree/context-dep.h"
#include "hmm/transition-model.h"
#include "hmm/transitions.h"
#include "fstext/fstext-lib.h"
#include "decoder/training-graph-compiler.h"

Expand Down Expand Up @@ -65,7 +65,7 @@ int main(int argc, char *argv[]) {
ContextDependency ctx_dep;
ReadKaldiObject(tree_in_filename, &ctx_dep);

TransitionModel trans_model;
Transitions trans_model;
ReadKaldiObject(model_in_filename, &trans_model);

// need VectorFst because we will change it by adding subseq symbol.
Expand Down
4 changes: 2 additions & 2 deletions src/bin/align-mapped.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#include "base/kaldi-common.h"
#include "util/common-utils.h"
#include "hmm/transition-model.h"
#include "hmm/transitions.h"
#include "fstext/fstext-lib.h"
#include "decoder/decoder-wrappers.h"
#include "decoder/training-graph-compiler.h"
Expand Down Expand Up @@ -72,7 +72,7 @@ int main(int argc, char *argv[]) {
ContextDependency ctx_dep;
ReadKaldiObject(tree_in_filename, &ctx_dep);

TransitionModel trans_model;
Transitions trans_model;
ReadKaldiObject(model_in_filename, &trans_model);

VectorFst<StdArc> *lex_fst = fst::ReadFstKaldi(lex_in_filename);
Expand Down
4 changes: 2 additions & 2 deletions src/bin/am-info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "base/kaldi-common.h"
#include "util/common-utils.h"
#include "gmm/am-diag-gmm.h"
#include "hmm/transition-model.h"
#include "hmm/transitions.h"

int main(int argc, char *argv[]) {
try {
Expand All @@ -45,7 +45,7 @@ int main(int argc, char *argv[]) {

std::string model_in_filename = po.GetArg(1);

TransitionModel trans_model;
Transitions trans_model;
{
bool binary_read;
Input ki(model_in_filename, &binary_read);
Expand Down
4 changes: 2 additions & 2 deletions src/bin/build-pfile-from-ali.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ using std::vector;

#include "base/kaldi-common.h"
#include "gmm/am-diag-gmm.h"
#include "hmm/transition-model.h"
#include "hmm/transitions.h"
#include "hmm/hmm-utils.h"
#include "util/common-utils.h"

Expand Down Expand Up @@ -64,7 +64,7 @@ int main(int argc, char *argv[]) {
feature_rspecifier = po.GetArg(3),
pfile_wspecifier = po.GetArg(4);

TransitionModel trans_model;
Transitions trans_model;
AmDiagGmm am_gmm;
{
bool binary;
Expand Down
4 changes: 2 additions & 2 deletions src/bin/build-tree-two-level.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#include "base/kaldi-common.h"
#include "util/common-utils.h"
#include "hmm/hmm-topology.h"
#include "hmm/topology.h"
#include "tree/context-dep.h"
#include "tree/build-tree.h"
#include "tree/build-tree-utils.h"
Expand Down Expand Up @@ -112,7 +112,7 @@ int main(int argc, char *argv[]) {
ReadRootsFile(ki.Stream(), &phone_sets, &is_shared_root, &is_split_root);
}

HmmTopology topo;
Topology topo;
ReadKaldiObject(topo_filename, &topo);

BuildTreeStatsType stats;
Expand Down
4 changes: 2 additions & 2 deletions src/bin/build-tree.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#include "base/kaldi-common.h"
#include "util/common-utils.h"
#include "hmm/hmm-topology.h"
#include "hmm/topology.h"
#include "tree/context-dep.h"
#include "tree/build-tree.h"
#include "tree/build-tree-utils.h"
Expand Down Expand Up @@ -91,7 +91,7 @@ int main(int argc, char *argv[]) {
ReadRootsFile(ki.Stream(), &phone_sets, &is_shared_root, &is_split_root);
}

HmmTopology topo;
Topology topo;
ReadKaldiObject(topo_filename, &topo);

BuildTreeStatsType stats;
Expand Down
4 changes: 2 additions & 2 deletions src/bin/compile-graph.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "base/kaldi-common.h"
#include "util/common-utils.h"
#include "tree/context-dep.h"
#include "hmm/transition-model.h"
#include "hmm/transitions.h"
#include "hmm/hmm-utils.h"
#include "fstext/fstext-lib.h"
#include "fstext/push-special.h"
Expand Down Expand Up @@ -81,7 +81,7 @@ int main(int argc, char *argv[]) {
ContextDependency ctx_dep; // the tree.
ReadKaldiObject(tree_rxfilename, &ctx_dep);

TransitionModel trans_model;
Transitions trans_model;
ReadKaldiObject(model_rxfilename, &trans_model);

VectorFst<StdArc> *lex_fst = fst::ReadFstKaldi(lex_rxfilename),
Expand Down
6 changes: 3 additions & 3 deletions src/bin/compile-questions.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@

#include "base/kaldi-common.h"
#include "util/common-utils.h"
#include "hmm/hmm-topology.h"
#include "hmm/topology.h"
#include "tree/build-tree-questions.h"


namespace kaldi {
int32 ProcessTopo(const HmmTopology &topo, const std::vector<std::vector<int32> > &questions) {
int32 ProcessTopo(const Topology &topo, const std::vector<std::vector<int32> > &questions) {
std::vector<int32> seen_phones; // ids of phones seen in questions.
for (size_t i = 0; i < questions.size(); i++)
for (size_t j= 0; j < questions[i].size(); j++) seen_phones.push_back(questions[i][j]);
Expand Down Expand Up @@ -93,7 +93,7 @@ int main(int argc, char *argv[]) {
questions_rxfilename = po.GetArg(2),
questions_out_filename = po.GetArg(3);

HmmTopology topo; // just needed for checking, and to get the
Topology topo; // just needed for checking, and to get the
// largest number of pdf-classes for any phone.
ReadKaldiObject(topo_filename, &topo);

Expand Down
Loading