Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
103 commits
Select commit Hold shift + click to select a range
bbdfeaf
raw_python_script: Adding raw nnet training
vimalmanohar Sep 27, 2016
4c060c3
raw_python_script: Raw LSTM config
vimalmanohar Sep 27, 2016
185e031
raw-signal-v2: Adding steps/nnet3/tdnn/make_raw_configs.py
vimalmanohar Sep 29, 2016
851eb24
raw_python_script: Made raw and AM nnets training and configs similar
vimalmanohar Sep 29, 2016
23aa55c
raw_python_script: tdnn make_configs.py with support for raw nnet3
vimalmanohar Sep 29, 2016
d074e56
raw_python_script: Refactoring DNN training
vimalmanohar Sep 29, 2016
14db046
raw_python_script: Minor bug fixes
vimalmanohar Sep 30, 2016
0782aab
raw_python_script: Refactoring RNN and DNN scripts
vimalmanohar Oct 1, 2016
0712a32
Merging from master
vimalmanohar Oct 4, 2016
5b17a4c
raw_python_script: Addressed comments and made changes
vimalmanohar Oct 6, 2016
f73183f
raw_python_script: Missed variable renames
vimalmanohar Oct 6, 2016
167d909
raw_python_script: Changing module imports
vimalmanohar Oct 8, 2016
fe52b18
Merge branch 'master' of github.com:kaldi-asr/kaldi into raw_python_s…
vimalmanohar Oct 18, 2016
8d86b6b
raw_python_script: Making changes based on comments
vimalmanohar Oct 18, 2016
26b5093
raw_python_script: Initial moving of libraries
vimalmanohar Oct 24, 2016
eb879a0
raw_python_script: Partial changes to raw nnet3
vimalmanohar Oct 25, 2016
7ee150c
raw_python_script: Removing rnn_train_lib.py
vimalmanohar Oct 25, 2016
b8c74b4
raw_python_script: Minor changes
vimalmanohar Oct 25, 2016
18e6664
raw_python_script: Minor fixes
vimalmanohar Oct 25, 2016
29650bd
raw_python_script: Removing make_configs changes from this PR
vimalmanohar Oct 25, 2016
40345db
raw_python_script: Some fixes based on simple tests
vimalmanohar Oct 28, 2016
0a2fce9
raw_python_script: Fixing minor typos
vimalmanohar Nov 1, 2016
a447976
raw_python_script: Merging from master
vimalmanohar Nov 1, 2016
eb6da0e
Merge branch 'master' of github.com:kaldi-asr/kaldi into raw_python_s…
vimalmanohar Nov 7, 2016
a91c49c
raw_python_script: Reorganize nnet3 libraries
vimalmanohar Nov 14, 2016
7dd00f4
raw_python_script: First file in PEP8 standards
vimalmanohar Nov 15, 2016
f77a3ce
raw_python_script: Reorganized libraries
vimalmanohar Nov 15, 2016
bd79152
raw_python_script: Fixed errors in standards
vimalmanohar Nov 15, 2016
3c100d3
raw_python_script: Reorganizing scripts
vimalmanohar Nov 17, 2016
f181c68
raw_python: Removing old libraries
vimalmanohar Nov 17, 2016
c8faff1
raw_python_script: Fixing bug with background process handler
vimalmanohar Nov 17, 2016
6d953e9
raw_python_script: Fixing bugs based on testing
vimalmanohar Nov 17, 2016
befd7db
raw_python: Incorporation max-deriv-time
vimalmanohar Nov 17, 2016
c785b44
raw_python_script: Removing linked list
vimalmanohar Nov 19, 2016
750d2e8
raw_python_script: Fixed some minor bugs
vimalmanohar Nov 20, 2016
1c02d5a
changes for GALE mandarin setup
jtrmal Nov 21, 2016
f1e7d97
raw_python_script: Better error messages
vimalmanohar Nov 22, 2016
6a4945f
raw_python_script: Merging from master
vimalmanohar Nov 22, 2016
436a3ea
raw_python_script: Added run_job to redirect stdout stderr
vimalmanohar Nov 23, 2016
53df780
a couple of files forgotten the last time
jtrmal Nov 23, 2016
b69c161
raw_python_script: Fixing run_job
vimalmanohar Nov 23, 2016
e252455
raw_python_script: Bug fix
vimalmanohar Nov 23, 2016
f4ce921
raw_python_script: Removing nnet3_libs which is moved to libs/nnet3
vimalmanohar Nov 23, 2016
daa03ef
Merge branch 'master' of github.com:kaldi-asr/kaldi into raw_python_s…
vimalmanohar Nov 26, 2016
6102c60
raw_python_script: Reorganized steps/nnet3/xconfig_to_configs.py
vimalmanohar Nov 26, 2016
f132550
raw_python_script: Adding steps to syspath
vimalmanohar Nov 26, 2016
6fd32da
Some partial changes (don't compile yet) towards a more efficient LST…
danpovey Nov 21, 2016
5470ad1
cuda kernel for lstm nonlinearity
kangshiyin Nov 21, 2016
e56552b
Adding code for the backprop of LSTM.
danpovey Nov 22, 2016
15bb195
cuda kernel for backprop of lstm
kangshiyin Nov 23, 2016
ce7a324
Finish LstmNonlinearityComponent; tests now succeed.
kangshiyin Nov 24, 2016
482470f
Merge branch 'raw_python_script' of https://github.com/vimalmanohar/k…
danpovey Nov 27, 2016
2673cbc
Merge branch 'lstm-layer' of https://github.com/kangshiyin/kaldi into…
danpovey Nov 27, 2016
ed6880c
Part of the way towards testing the 'new' LSTM layer (first building …
danpovey Nov 27, 2016
0c6c424
raw_python_script: generate_plots
vimalmanohar Nov 27, 2016
0918653
raw_python_script: Fixing name conflicts and moving print statement t…
vimalmanohar Nov 27, 2016
51339f4
Adding and debugging some scripts (in the process of integrating fast…
danpovey Nov 28, 2016
9cf85ef
Fixes to fast LSTM code, regarding self-repair sum.
danpovey Nov 28, 2016
711bf3b
Merge branch 'raw_python_script' of https://github.com/vimalmanohar/k…
danpovey Nov 28, 2016
5590585
Merge remote-tracking branch 'upstream/master' into fast_lstm
danpovey Nov 28, 2016
12924d2
Adding more example scripts. Some python script fixes.
danpovey Nov 29, 2016
933063e
Merge remote-tracking branch 'upstream/master' into fast_lstm
danpovey Nov 29, 2016
a5d6866
raw_python_script: Updating new deriv-truncate
vimalmanohar Nov 29, 2016
e7e0e2d
Merge remote-tracking branch 'vimal/raw_python_script' into fast_lstm
danpovey Nov 29, 2016
32d4167
raw_python_script: Updating to google standards
vimalmanohar Nov 29, 2016
e7648f2
Merge remote-tracking branch 'vimal/raw_python_script' into fast_lstm
danpovey Nov 29, 2016
e8698a9
various minor script and code fixes; add TDNN+LSTM example script (te…
danpovey Nov 29, 2016
fc16bde
added the option trainer.deriv-truncate-margin to train_rnn.py and tr…
freewym Nov 29, 2016
48fd6ab
Merge pull request #3 from freewym/vimal_raw_python_script
vimalmanohar Nov 29, 2016
3a62393
raw_python_script: Minor cosmetic changes
vimalmanohar Nov 29, 2016
ebd8787
Merge remote-tracking branch 'vimal/raw_python_script' into fast_lstm
danpovey Nov 29, 2016
1ad3f41
Merge remote-tracking branch 'upstream/master' into fast_lstm
danpovey Nov 30, 2016
725cd38
Adding results and TDNN+LSTM recipe for chain models in tedlium s5_r2.
danpovey Nov 30, 2016
0e9b40a
Merge remote-tracking branch 'upstream/master' into fast_lstm
danpovey Nov 30, 2016
1cab8bd
changed default value of zeroing-threshold in BackpropTruncationCompo…
freewym Dec 2, 2016
87edd24
Merge branch 'master' into fast_lstm
danpovey Dec 2, 2016
46b744b
Merge pull request #1229 from kaldi-asr/fast_lstm
danpovey Dec 2, 2016
5365330
tdnn_fastlstm
GaofengCheng Dec 3, 2016
e5fa353
Merge pull request #1243 from GaofengCheng/fastlstm_tdnn
danpovey Dec 3, 2016
0f1e21c
Create db dirrectory if it doesn't exists
akegalj Dec 4, 2016
0098ae3
Merge pull request #1245 from akegalj/master
danpovey Dec 4, 2016
d41af22
score path fixed (#1250)
sih4sing5hong5 Dec 6, 2016
eef631b
minor bug fix in XconfigAffineLayer when initializing param-stddev
freewym Dec 6, 2016
8918711
Merge pull request #1251 from freewym/bug_fix
danpovey Dec 6, 2016
80b467c
Add PowerPC64le in Kaldi build system
Nov 28, 2016
f0c7a55
Add ppc64le in platform notes section in README.md
Dec 6, 2016
ed7201c
Merge branch 'gale_recipe_fix' of https://github.com/jtrmal/kaldi int…
naxingyu Dec 7, 2016
e71312d
Fix small bug in steps/cleanup/create_segments_from_ctm.pl [thanks: V…
danpovey Dec 7, 2016
232fee7
Merge pull request #1221 from jrziviani/master
danpovey Dec 7, 2016
740e25e
Remove left-context and right-context from being explicitly printed n…
danpovey Dec 8, 2016
350bbe5
Changes to nnet3 natural-gradient code to make some warnings less sca…
danpovey Dec 8, 2016
cb88616
Modify install_sequitur.sh to correctly state path to env.sh
danpovey Dec 9, 2016
92b14f3
Merge pull request #1259 from danpovey/natural-gradient-fixes
danpovey Dec 11, 2016
9171216
Small fix to rnnlm-rescoring tools, to work without unk-penalty speci…
danpovey Dec 11, 2016
0a5ff7c
change utils/mkgraph.sh so that it ignores the mono,left-biphone and …
Dec 12, 2016
8795c4e
Merge pull request #1260 from LvHang/master
danpovey Dec 12, 2016
63c5a85
gale_mandarin RESULTS updated
naxingyu Dec 12, 2016
057c662
rename gale_mandarin jobs-variables
naxingyu Dec 13, 2016
3179359
Merge pull request #1253 from naxingyu/gale_mandarin_fix
danpovey Dec 13, 2016
65c2cb8
fix typo in mkgraph.sh
tomkocse Dec 13, 2016
e49eaac
Fix a script bug in gale_mandarin
naxingyu Dec 13, 2016
ac76f77
Merge pull request #1262 from tomkocse/mkgraphfix
danpovey Dec 13, 2016
48bbdf5
Merge pull request #1263 from naxingyu/bug-fix-in-gale-script
danpovey Dec 13, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,14 @@ Development pattern for contributors
You can use the [Google's cpplint.py]
(https://raw.githubusercontent.com/google/styleguide/gh-pages/cpplint/cpplint.py)
to verify that your code is free of basic mistakes.

Platform specific notes
-----------------------

PowerPC 64bits little-endian (ppc64le):
- Kaldi is expected to work out of the box in RHEL >= 7 and Ubuntu >= 16.04 with
OpenBLAS, ATLAS, or CUDA.
- CUDA drivers for ppc64le can be found at [https://developer.nvidia.com/cuda-downloads]
(https://developer.nvidia.com/cuda-downloads).
- An [IBM Redbook] (https://www.redbooks.ibm.com/abstracts/redp5169.html) is
available as a guide to install and configure CUDA.
5 changes: 2 additions & 3 deletions egs/ami/s5b/RESULTS_ihm
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@
# local/nnet3/run_blstm.sh --mic ihm
# nnet3 xent BLSTM with data cleaning
# for d in exp/ihm/nnet3_cleaned/lstm_bidirectional_sp/decode_*; do grep Sum $d/*sc*/*ys | utils/best_wer.sh; done
# Note: the results are with ClipGradientComponent, which may be different from with BackpropTruncationComponent
%WER 22.3 | 13098 94494 | 80.9 11.7 7.4 3.2 22.3 55.7 | -0.618 | exp/ihm/nnet3_cleaned/lstm_bidirectional_sp/decode_dev/ascore_10/dev_hires.ctm.filt.sys
%WER 22.5 | 12643 89962 | 80.2 12.7 7.1 2.7 22.5 53.4 | -0.476 | exp/ihm/nnet3_cleaned/lstm_bidirectional_sp/decode_eval/ascore_10/eval_hires.ctm.filt.sys
%WER 22.4 | 13098 94483 | 80.8 11.6 7.6 3.2 22.4 55.4 | -0.620 | exp/ihm/nnet3_cleaned/lstm_bidirectional_sp/decode_dev/ascore_10/dev_hires.ctm.filt.sys
%WER 22.4 | 12643 89977 | 80.3 12.5 7.2 2.7 22.4 53.6 | -0.503 | exp/ihm/nnet3_cleaned/lstm_bidirectional_sp/decode_eval/ascore_10/eval_hires.ctm.filt.sys

############################################

Expand Down
5 changes: 2 additions & 3 deletions egs/ami/s5b/RESULTS_sdm
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,8 @@
# xent BLSTM system; cleaned data and IHM alignments.
# local/nnet3/run_blstm.sh --mic sdm1 --use-ihm-ali true
# for d in exp/sdm1/nnet3_cleaned/lstm_bidirectional_sp/decode_*; do grep Sum $d/*sc*/*ys | utils/best_wer.sh; done
# Note: the results are with ClipGradientComponent, which may be different from with BackpropTruncationComponent
%WER 37.8 | 14633 94518 | 67.1 22.3 10.7 4.9 37.8 64.2 | 0.745 | exp/sdm1/nnet3_cleaned/lstm_bidirectional_sp_ihmali/decode_dev/ascore_11/dev_hires_o4.ctm.filt.sys
%WER 41.4 | 13809 89628 | 62.7 24.1 13.2 4.1 41.4 65.2 | 0.723 | exp/sdm1/nnet3_cleaned/lstm_bidirectional_sp_ihmali/decode_eval/ascore_11/eval_hires_o4.ctm.filt.sys
%WER 37.9 | 15953 94512 | 66.7 22.0 11.3 4.7 37.9 58.9 | 0.734 | exp/sdm1/nnet3_cleaned/lstm_bidirectional_sp_ihmali/decode_dev/ascore_12/dev_hires_o4.ctm.filt.sys
%WER 41.2 | 13271 89635 | 62.9 23.8 13.2 4.2 41.2 67.8 | 0.722 | exp/sdm1/nnet3_cleaned/lstm_bidirectional_sp_ihmali/decode_eval/ascore_11/eval_hires_o4.ctm.filt.sys

# =========================

Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5b/local/chain/multi_condition/run_tdnn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ if [ $stage -le 17 ]; then
# Note: it might appear that this data/lang_chain directory is mismatched, and it is as
# far as the 'topo' is concerned, but this script doesn't read the 'topo' from
# the lang directory.
utils/mkgraph.sh --left-biphone --self-loop-scale 1.0 data/lang_${LM} $dir $graph_dir
utils/mkgraph.sh --self-loop-scale 1.0 data/lang_${LM} $dir $graph_dir
fi

if [ $stage -le 18 ]; then
Expand Down
4 changes: 2 additions & 2 deletions egs/ami/s5b/local/chain/tuning/run_tdnn_1a.sh
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ if [ $stage -le 17 ]; then
# Note: it might appear that this data/lang_chain directory is mismatched, and it is as
# far as the 'topo' is concerned, but this script doesn't read the 'topo' from
# the lang directory.
utils/mkgraph.sh --left-biphone --self-loop-scale 1.0 data/lang_${LM} $dir $graph_dir
utils/mkgraph.sh --self-loop-scale 1.0 data/lang_${LM} $dir $graph_dir
fi

if [ $stage -le 18 ]; then
Expand All @@ -239,4 +239,4 @@ if [ $stage -le 18 ]; then
exit 1
fi
fi
exit 0
exit 0
2 changes: 1 addition & 1 deletion egs/ami/s5b/local/chain/tuning/run_tdnn_1b.sh
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ if [ $stage -le 17 ]; then
# Note: it might appear that this data/lang_chain directory is mismatched, and it is as
# far as the 'topo' is concerned, but this script doesn't read the 'topo' from
# the lang directory.
utils/mkgraph.sh --left-biphone --self-loop-scale 1.0 data/lang_${LM} $dir $graph_dir
utils/mkgraph.sh --self-loop-scale 1.0 data/lang_${LM} $dir $graph_dir
fi

if [ $stage -le 18 ]; then
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5b/local/chain/tuning/run_tdnn_1c.sh
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ if [ $stage -le 17 ]; then
# Note: it might appear that this data/lang_chain directory is mismatched, and it is as
# far as the 'topo' is concerned, but this script doesn't read the 'topo' from
# the lang directory.
utils/mkgraph.sh --left-biphone --self-loop-scale 1.0 data/lang_${LM} $dir $graph_dir
utils/mkgraph.sh --self-loop-scale 1.0 data/lang_${LM} $dir $graph_dir
fi

if [ $stage -le 18 ]; then
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1a.sh
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ if [ $stage -le 17 ]; then
# Note: it might appear that this data/lang_chain directory is mismatched, and it is as
# far as the 'topo' is concerned, but this script doesn't read the 'topo' from
# the lang directory.
utils/mkgraph.sh --left-biphone --self-loop-scale 1.0 data/lang_${LM} $dir $graph_dir
utils/mkgraph.sh --self-loop-scale 1.0 data/lang_${LM} $dir $graph_dir
fi

if [ $stage -le 18 ]; then
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1b.sh
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ if [ $stage -le 17 ]; then
# Note: it might appear that this data/lang_chain directory is mismatched, and it is as
# far as the 'topo' is concerned, but this script doesn't read the 'topo' from
# the lang directory.
utils/mkgraph.sh --left-biphone --self-loop-scale 1.0 data/lang_${LM} $dir $graph_dir
utils/mkgraph.sh --self-loop-scale 1.0 data/lang_${LM} $dir $graph_dir
fi

if [ $stage -le 18 ]; then
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1c.sh
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ if [ $stage -le 17 ]; then
# Note: it might appear that this data/lang_chain directory is mismatched, and it is as
# far as the 'topo' is concerned, but this script doesn't read the 'topo' from
# the lang directory.
utils/mkgraph.sh --left-biphone --self-loop-scale 1.0 data/lang_${LM} $dir $graph_dir
utils/mkgraph.sh --self-loop-scale 1.0 data/lang_${LM} $dir $graph_dir
fi

if [ $stage -le 18 ]; then
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1d.sh
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ if [ $stage -le 17 ]; then
# Note: it might appear that this data/lang_chain directory is mismatched, and it is as
# far as the 'topo' is concerned, but this script doesn't read the 'topo' from
# the lang directory.
utils/mkgraph.sh --left-biphone --self-loop-scale 1.0 data/lang_${LM} $dir $graph_dir
utils/mkgraph.sh --self-loop-scale 1.0 data/lang_${LM} $dir $graph_dir
fi

if [ $stage -le 18 ]; then
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ if [ $stage -le 17 ]; then
# Note: it might appear that this data/lang_chain directory is mismatched, and it is as
# far as the 'topo' is concerned, but this script doesn't read the 'topo' from
# the lang directory.
utils/mkgraph.sh --left-biphone --self-loop-scale 1.0 data/lang_${LM} $dir $graph_dir
utils/mkgraph.sh --self-loop-scale 1.0 data/lang_${LM} $dir $graph_dir
fi

if [ $stage -le 18 ]; then
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1f.sh
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ if [ $stage -le 17 ]; then
# Note: it might appear that this data/lang_chain directory is mismatched, and it is as
# far as the 'topo' is concerned, but this script doesn't read the 'topo' from
# the lang directory.
utils/mkgraph.sh --left-biphone --self-loop-scale 1.0 data/lang_${LM} $dir $graph_dir
utils/mkgraph.sh --self-loop-scale 1.0 data/lang_${LM} $dir $graph_dir
fi

if [ $stage -le 18 ]; then
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1g.sh
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ if [ $stage -le 17 ]; then
# Note: it might appear that this data/lang_chain directory is mismatched, and it is as
# far as the 'topo' is concerned, but this script doesn't read the 'topo' from
# the lang directory.
utils/mkgraph.sh --left-biphone --self-loop-scale 1.0 data/lang_${LM} $dir $graph_dir
utils/mkgraph.sh --self-loop-scale 1.0 data/lang_${LM} $dir $graph_dir
fi

if [ $stage -le 18 ]; then
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1h.sh
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ if [ $stage -le 17 ]; then
# Note: it might appear that this data/lang_chain directory is mismatched, and it is as
# far as the 'topo' is concerned, but this script doesn't read the 'topo' from
# the lang directory.
utils/mkgraph.sh --left-biphone --self-loop-scale 1.0 data/lang_${LM} $dir $graph_dir
utils/mkgraph.sh --self-loop-scale 1.0 data/lang_${LM} $dir $graph_dir
fi

if [ $stage -le 18 ]; then
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1i.sh
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ if [ $stage -le 17 ]; then
# Note: it might appear that this data/lang_chain directory is mismatched, and it is as
# far as the 'topo' is concerned, but this script doesn't read the 'topo' from
# the lang directory.
utils/mkgraph.sh --left-biphone --self-loop-scale 1.0 data/lang_${LM} $dir $graph_dir
utils/mkgraph.sh --self-loop-scale 1.0 data/lang_${LM} $dir $graph_dir
fi

if [ $stage -le 18 ]; then
Expand Down
2 changes: 1 addition & 1 deletion egs/an4/s5/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ fi
# train monophone system
if [ $stage -le 4 ]; then
steps/train_mono.sh --nj $nj --cmd "$train_cmd" data/train data/lang exp/mono
utils/mkgraph.sh --mono data/lang exp/mono exp/mono/graph
utils/mkgraph.sh data/lang exp/mono exp/mono/graph
steps/decode.sh --config conf/decode.config --nj $nj --cmd "$decode_cmd" \
exp/mono/graph data/test exp/mono/decode
fi
Expand Down
2 changes: 1 addition & 1 deletion egs/aurora4/s5/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ done
steps/train_mono.sh --boost-silence 1.25 --nj 10 \
data/train_si84_multi data/lang exp/mono0a_multi || exit 1;
#(
# utils/mkgraph.sh --mono data/lang_test_tgpr exp/mono0a exp/mono0a/graph_tgpr && \
# utils/mkgraph.sh data/lang_test_tgpr exp/mono0a exp/mono0a/graph_tgpr && \
# steps/decode.sh --nj 8 \
# exp/mono0a/graph_tgpr data/test_eval92 exp/mono0a/decode_tgpr_eval92
#) &
Expand Down
2 changes: 1 addition & 1 deletion egs/chime2/s5/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ steps/train_mono.sh --boost-silence 1.25 --nj 10 --cmd "$train_cmd" \



utils/mkgraph.sh --mono data/lang_test_tgpr_5k exp/mono0a exp/mono0a/graph_tgpr_5k
utils/mkgraph.sh data/lang_test_tgpr_5k exp/mono0a exp/mono0a/graph_tgpr_5k
#steps/decode.sh --nj 8 \
# exp/mono0a/graph_tgpr_5k data/test_eval92_5k_clean exp/mono0a/decode_tgpr_eval92_5k_clean
steps/decode.sh --nj 8 --cmd "$train_cmd" \
Expand Down
2 changes: 1 addition & 1 deletion egs/farsdat/s5/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ echo ===========================================================================

steps/train_mono.sh --nj "$train_nj" --cmd "$train_cmd" data/train data/lang exp/mono

utils/mkgraph.sh --mono data/lang_test_bg exp/mono exp/mono/graph
utils/mkgraph.sh data/lang_test_bg exp/mono exp/mono/graph

steps/decode.sh --nj "$decode_nj" --cmd "$decode_cmd" \
exp/mono/graph data/dev exp/mono/decode_dev
Expand Down
51 changes: 51 additions & 0 deletions egs/gale_arabic/s5/local/split_wer_per_corpus.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
#!/bin/bash

# Report WER for reports and conversational
# Copyright 2014 QCRI (author: Ahmed Ali)
# Apache 2.0

if [ $# -ne 1 ]; then
echo "Arguments should be the gale folder, see ../run.sh for example."
exit 1;
fi

[ -f ./path.sh ] && . ./path.sh

#set -o pipefail -e

galeFolder=$(readlink -f $1)
symtab=./data/lang/words.txt

min_lmwt=7
max_lmwt=20

for dir in exp/*/*decode*; do
for type in $(ls -1 local/test_list local/test.* | xargs -n1 basename); do
#echo "Processing: $dir $type"
rm -fr $dir/scoring_$type
mkdir -p $dir/scoring_$type/log
for x in $dir/scoring/*.tra $dir/scoring/test_filt.txt; do
cat $x | grep -f local/$type > $dir/scoring_$type/$(basename $x)
done

utils/run.pl LMWT=$min_lmwt:$max_lmwt $dir/scoring_$type/log/score.LMWT.log \
cat $dir/scoring_${type}/LMWT.tra \| \
utils/int2sym.pl -f 2- $symtab \| sed 's:\<UNK\>::g' \| \
compute-wer --text --mode=present \
ark:$dir/scoring_${type}/test_filt.txt ark,p:- ">&" $dir/wer_${type}_LMWT
done
done

time=$(date +"%Y-%m-%d-%H-%M-%S")
echo "#RESULTS splits generated by $USER at $time"

for type in $(ls -1 local/test_list local/test.* | xargs -n1 basename); do
echo -e "\n# WER $type"
for x in exp/*/*decode*; do
grep WER $x/wer_${type}_* | utils/best_wer.sh;
done | sort -n -k2
done




Loading