Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
1cff4f9
in ProcessNonemitting, check the number of input epsilons
desh2608 Aug 23, 2018
8889540
only include tokens with <eps> arc in queue
desh2608 Aug 24, 2018
25391a8
Merge branch 'master' of https://github.com/kaldi-asr/kaldi
desh2608 Aug 24, 2018
2f484c4
fixed loop
desh2608 Aug 25, 2018
6125650
minor fix
desh2608 Aug 25, 2018
f46d934
minor fix
desh2608 Aug 25, 2018
aaa799a
changed fst to object
desh2608 Aug 25, 2018
098c2e6
changed fst to object
desh2608 Aug 25, 2018
1f91b7e
changed fst to object
desh2608 Aug 26, 2018
e274fad
minor fix
desh2608 Aug 26, 2018
145b514
added check in other loop
desh2608 Aug 26, 2018
3e89d3c
best_cost outside if
desh2608 Aug 26, 2018
b42e5e1
changed 'key' to 'state'
desh2608 Aug 26, 2018
cda5804
wsj results updated
desh2608 Oct 13, 2018
bbda8b2
added bentham folder init
desh2608 Nov 3, 2018
ef08057
added script for downloading extra data
desh2608 Nov 3, 2018
44e604c
added script for creating train,test,val split
desh2608 Nov 3, 2018
8dcafdb
resolved merge conflicts
desh2608 Nov 9, 2018
34cc4e0
Merge branch 'master' of https://github.com/kaldi-asr/kaldi into bentham
desh2608 Nov 12, 2018
9cc8f28
added Bentham recipe
desh2608 Nov 18, 2018
662b498
Merge branch 'bentham' of https://github.com/desh2608/kaldi into bentham
desh2608 Nov 18, 2018
771561f
removed old modifications
desh2608 Nov 18, 2018
58d05ed
removed old result
desh2608 Nov 18, 2018
c2cecab
created soft links
desh2608 Nov 18, 2018
cc33930
another soft link
desh2608 Nov 18, 2018
e62bc85
modifications done as per comments
desh2608 Nov 22, 2018
137f2d3
removed unused chain models
desh2608 Nov 22, 2018
815f7e1
minor changes
desh2608 Nov 22, 2018
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
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ GSYMS
/src/kaldi.mk.bak

# /egs/
/egs/*/s*/mfcc
/egs/*/s*/plp
/egs/*/s*/exp
/egs/*/s*/data
/egs/*/*/mfcc
/egs/*/*/plp
/egs/*/*/exp
/egs/*/*/data

# /tools/
/tools/pocolm/
Expand Down
5 changes: 5 additions & 0 deletions egs/bentham/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
This directory contains example scripts for handwriting recognition on
the Bentham dataset:
http://www.transcriptorium.eu/~htrcontest/contestICFHR2014/public_html/
In the ICFHR 2014 contest, the best performing system in the unrestricted
track obtained a WER of 8.6%.
13 changes: 13 additions & 0 deletions egs/bentham/v1/cmd.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# you can change cmd.sh depending on what type of queue you are using.
# If you have no queueing system and want to run on a local machine, you
# can change all instances 'queue.pl' to run.pl (but be careful and run
# commands one by one: most recipes will exhaust the memory on your
# machine). queue.pl works with GridEngine (qsub). slurm.pl works
# with slurm. Different queues are configured differently, with different
# queue names and different ways of specifying things like memory;
# to account for these differences you can create and edit the file
# conf/queue.conf to match your queue's configuration. Search for
# conf/queue.conf in http://kaldi-asr.org/doc/queue.html for more information,
# or search for the string 'default_config' in utils/queue.pl or utils/slurm.pl.

export cmd="queue.pl"
1 change: 1 addition & 0 deletions egs/bentham/v1/image
120 changes: 120 additions & 0 deletions egs/bentham/v1/local/chain/compare_wer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
#!/bin/bash

# this script is used for comparing decoding results between systems.
# e.g. local/chain/compare_wer.sh exp/chain/cnn{1a,1b}

# Copyright 2017 Chun Chieh Chang
# 2017 Ashish Arora

if [ $# == 0 ]; then
echo "Usage: $0: <dir1> [<dir2> ... ]"
echo "e.g.: $0 exp/chain/cnn{1a,1b}"
exit 1
fi
. ./path.sh

echo "# $0 $*"
used_epochs=false

echo -n "# System "
for x in $*; do printf "% 10s" " $(basename $x)"; done
echo

echo -n "# WER "
for x in $*; do
wer=$(cat $x/decode_test/scoring_kaldi/best_wer | awk '{print $2}')
printf "% 10s" $wer
done
echo

echo -n "# WER (rescored) "
for x in $*; do
wer="--"
[ -d $x/decode_test_rescored ] && wer=$(cat $x/decode_test_rescored/scoring_kaldi/best_wer | awk '{print $2}')
printf "% 10s" $wer
done
echo

echo -n "# CER "
for x in $*; do
cer=$(cat $x/decode_test/scoring_kaldi/best_cer | awk '{print $2}')
printf "% 10s" $cer
done
echo

echo -n "# CER (rescored) "
for x in $*; do
cer="--"
[ -d $x/decode_test_rescored ] && cer=$(cat $x/decode_test_rescored/scoring_kaldi/best_cer | awk '{print $2}')
printf "% 10s" $cer
done
echo

echo -n "# WER val "
for x in $*; do
wer=$(cat $x/decode_val/scoring_kaldi/best_wer | awk '{print $2}')
printf "% 10s" $wer
done
echo

echo -n "# WER (rescored) val "
for x in $*; do
wer="--"
[ -d $x/decode_val_rescored ] && wer=$(cat $x/decode_val_rescored/scoring_kaldi/best_wer | awk '{print $2}')
printf "% 10s" $wer
done
echo

echo -n "# CER val "
for x in $*; do
cer=$(cat $x/decode_val/scoring_kaldi/best_cer | awk '{print $2}')
printf "% 10s" $cer
done
echo

echo -n "# CER (rescored) val "
for x in $*; do
cer="--"
[ -d $x/decode_val_rescored ] && cer=$(cat $x/decode_val_rescored/scoring_kaldi/best_cer | awk '{print $2}')
printf "% 10s" $cer
done
echo

if $used_epochs; then
exit 0; # the diagnostics aren't comparable between regular and discriminatively trained systems.
fi

echo -n "# Final train prob "
for x in $*; do
prob=$(grep Overall $x/log/compute_prob_train.final.log | grep -v xent | awk '{printf("%.4f", $8)}')
printf "% 10s" $prob
done
echo

echo -n "# Final valid prob "
for x in $*; do
prob=$(grep Overall $x/log/compute_prob_valid.final.log | grep -v xent | awk '{printf("%.4f", $8)}')
printf "% 10s" $prob
done
echo

echo -n "# Final train prob (xent) "
for x in $*; do
prob=$(grep Overall $x/log/compute_prob_train.final.log | grep -w xent | awk '{printf("%.4f", $8)}')
printf "% 10s" $prob
done
echo

echo -n "# Final valid prob (xent) "
for x in $*; do
prob=$(grep Overall $x/log/compute_prob_valid.final.log | grep -w xent | awk '{printf("%.4f", $8)}')
printf "% 10s" $prob
done
echo

echo -n "# Parameters "
for x in $*; do
params=$(nnet3-info $x/final.mdl 2>/dev/null | grep num-parameters | cut -d' ' -f2 | awk '{printf "%0.2fM\n",$1/1000000}')
printf "% 10s" $params
done
echo
1 change: 1 addition & 0 deletions egs/bentham/v1/local/chain/run_cnn_e2eali.sh
1 change: 1 addition & 0 deletions egs/bentham/v1/local/chain/run_e2e_cnn.sh
Loading