-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Add a BPE-based recipe for IAM #2600
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
|
I notice there no separate "rescored" line in the new results. Was the LM
on the BPE system small enough to create a graph directly? Would there
have been a benefit in using a higher-order LM, in that case, to rescore
with?
…On Tue, Aug 7, 2018 at 11:30 AM, Hossein Hadian ***@***.***> wrote:
Add a BPE version of the IAM recipe.
Since there were quite a lot of changes in the scripts, I created a v2
recipe (which only has e2e and e2e+chain training). I think there are
useful scripts in the v1 recipe so it might be worth to keep it (maybe
for a while).
Here is the comparison of the same model with/without BPE:
# local/chain/compare_wer.sh v1/exp/chain/cnn_e2eali_1b v2/exp/chain/cnn_e2eali_1b
# System non-BPE BPE
# WER 12.40 10.33
# WER (rescored) -- 10.10
# CER 5.59 5.00
# CER (rescored) -- 4.88
# Final train prob -0.0322 -0.0428
# Final valid prob -0.0563 -0.0666
# Final train prob (xent) -0.6891 -0.9210
# Final valid prob (xent) -0.8309 -1.0264
# Parameters 3.95M 3.98M
Also added (in v2) a new chain script (fewer but bigger layers + smaller
l2 + dropout + more epochs) which improves 1b a bit:
# local/chain/compare_wer.sh exp/chain/cnn_e2eali_1b exp/chain/cnn_e2eali_1c
# System cnn_e2eali_1b cnn_e2eali_1c
# WER 10.33 10.05
# WER (rescored) 10.10 9.75
# CER 5.00 4.76
# CER (rescored) 4.88 4.68
# Final train prob -0.0428 -0.0317
# Final valid prob -0.0666 -0.0630
# Final train prob (xent) -0.9210 -0.5413
# Final valid prob (xent) -1.0264 -0.7096
# Parameters 3.98M 5.12M
------------------------------
You can view, comment on, or merge this pull request online at:
#2600
Commit Summary
- Add a BPE-based recipe for IAM
- small fix
File Changes
- *A* egs/iam/v2/cmd.sh
<https://github.com/kaldi-asr/kaldi/pull/2600/files#diff-0> (13)
- *A* egs/iam/v2/image
<https://github.com/kaldi-asr/kaldi/pull/2600/files#diff-1> (1)
- *A* egs/iam/v2/local/chain/compare_wer.sh
<https://github.com/kaldi-asr/kaldi/pull/2600/files#diff-2> (90)
- *A* egs/iam/v2/local/chain/run_cnn_e2eali.sh
<https://github.com/kaldi-asr/kaldi/pull/2600/files#diff-3> (1)
- *A* egs/iam/v2/local/chain/run_e2e_cnn.sh
<https://github.com/kaldi-asr/kaldi/pull/2600/files#diff-4> (170)
- *A* egs/iam/v2/local/chain/tuning/run_cnn_e2eali_1a.sh
<https://github.com/kaldi-asr/kaldi/pull/2600/files#diff-5> (245)
- *A* egs/iam/v2/local/chain/tuning/run_cnn_e2eali_1b.sh
<https://github.com/kaldi-asr/kaldi/pull/2600/files#diff-6> (251)
- *A* egs/iam/v2/local/chain/tuning/run_cnn_e2eali_1c.sh
<https://github.com/kaldi-asr/kaldi/pull/2600/files#diff-7> (253)
- *A* egs/iam/v2/local/check_tools.sh
<https://github.com/kaldi-asr/kaldi/pull/2600/files#diff-8> (43)
- *A* egs/iam/v2/local/make_features.py
<https://github.com/kaldi-asr/kaldi/pull/2600/files#diff-9> (127)
- *A* egs/iam/v2/local/prepare_data.sh
<https://github.com/kaldi-asr/kaldi/pull/2600/files#diff-10> (170)
- *A* egs/iam/v2/local/prepare_dict.sh
<https://github.com/kaldi-asr/kaldi/pull/2600/files#diff-11> (50)
- *A* egs/iam/v2/local/prepend_words.py
<https://github.com/kaldi-asr/kaldi/pull/2600/files#diff-12> (13)
- *A* egs/iam/v2/local/process_data.py
<https://github.com/kaldi-asr/kaldi/pull/2600/files#diff-13> (82)
- *A* egs/iam/v2/local/remove_test_utterances_from_lob.py
<https://github.com/kaldi-asr/kaldi/pull/2600/files#diff-14> (117)
- *A* egs/iam/v2/local/remove_wellington_annotations.py
<https://github.com/kaldi-asr/kaldi/pull/2600/files#diff-15> (32)
- *A* egs/iam/v2/local/score.sh
<https://github.com/kaldi-asr/kaldi/pull/2600/files#diff-16> (155)
- *A* egs/iam/v2/local/srilm_train.sh
<https://github.com/kaldi-asr/kaldi/pull/2600/files#diff-17> (49)
- *A* egs/iam/v2/local/train_lm.sh
<https://github.com/kaldi-asr/kaldi/pull/2600/files#diff-18> (156)
- *A* egs/iam/v2/local/wer_output_filter
<https://github.com/kaldi-asr/kaldi/pull/2600/files#diff-19> (31)
- *A* egs/iam/v2/path.sh
<https://github.com/kaldi-asr/kaldi/pull/2600/files#diff-20> (9)
- *A* egs/iam/v2/run_end2end.sh
<https://github.com/kaldi-asr/kaldi/pull/2600/files#diff-21> (104)
- *A* egs/iam/v2/steps
<https://github.com/kaldi-asr/kaldi/pull/2600/files#diff-22> (1)
- *A* egs/iam/v2/utils
<https://github.com/kaldi-asr/kaldi/pull/2600/files#diff-23> (1)
Patch Links:
- https://github.com/kaldi-asr/kaldi/pull/2600.patch
- https://github.com/kaldi-asr/kaldi/pull/2600.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2600>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADJVu5yM8m4leEX0U74CeIzG4i-gicomks5uOdzjgaJpZM4Vyqv9>
.
|
Contributor
Author
|
Do you mean for non-BPE? because there are actually "rescored" lines in the results for the BPE models. The graph for the BPE system was very big so I used a highly-pruned 6-gram LM (created using pocolm) to create the graph and decode, and then rescore with an unpruned 6-gram pocoLM. I also tried rescoring with an 8-gram LM (created using SRILM) but it was not helpful. |
Contributor
|
oh, I see.
…On Tue, Aug 7, 2018 at 11:41 AM, Hossein Hadian ***@***.***> wrote:
Do you mean for non-BPE? because there are actually "rescored" lines in
the results for the BPE models.
The graph for the BPE system was very big so I used a highly-pruned 6-gram
LM (created using pocolm) to create the graph and decode, and then rescore
with an unpruned 6-gram pocoLM. I also tried rescoring with an 8-gram LM
(created using SRILM) but it was not helpful.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2600 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ADJVu2wmH8mrA-BYn1XLTfrU1-Ui7XNpks5uOd9SgaJpZM4Vyqv9>
.
|
dpriver
pushed a commit
to dpriver/kaldi
that referenced
this pull request
Sep 13, 2018
Skaiste
pushed a commit
to Skaiste/idlak
that referenced
this pull request
Sep 26, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add a BPE version of the IAM recipe.
Since there were quite a lot of changes in the scripts, I created a
v2recipe (which only has e2e and e2e+chain training). I think there are useful scripts in thev1recipe so it might be worth to keep it (maybe for a while).Here is the comparison of the same model with/without BPE:
Also added (in v2) a new chain script (fewer but bigger layers + smaller l2 + dropout + more epochs) which improves 1b a bit: