-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Beam search algorithm implementation for TDT models #10903
Merged
Merged
Changes from 118 commits
Commits
Show all changes
126 commits
Select commit
Hold shift + click to select a range
0f0958b
initial commit
adb08dd
add: default beam search implementation
30d0599
fix: changed to removing duplicate hypothesis in separate function
796bbc7
fix: changed to cartesian product in choosing best hyp
47bbffa
fix: minor fixes in comments
1b64767
add: maes decoding strategy
7551e32
add: durations filtering in maes, lm fusion in progress
417eb2d
fix: refactored, added comments, command line args, finalized
4b83af3
fix: removed prints
51ab336
add: docs
f88dcca
Merge branch 'main' into beam_search
lilithgrigoryan 1115529
Apply isort and black reformatting
lilithgrigoryan d5cad08
fix: minor fix
2d8b455
fix: rm beam_size=1 exception, rm duplicates check, fix error handling
90e452c
fix: error handling
3c1dd89
merge
98f4d53
Apply isort and black reformatting
lilithgrigoryan 20dfd07
fix: removed evaluations file
1495f0d
Merge branch 'beam_search' of https://github.com/lilithgrigoryan/NeMo…
0d472cf
rn: blank scoring
71f0607
clean up
2f1f495
rm: blank scoring and duration beam size
e748171
Apply isort and black reformatting
lilithgrigoryan b75ff04
fix: removed durations_beam_size from default beam search
5cfbd2d
merge
6b6fa1f
add: logaddexp
3e95406
rm: prefix search
9a386e2
rn: nested loop over extensions
9d8aeeb
fix: bug with caching
08aecb7
rm: topk on durations
d1ce7e9
add: restored prefix search
ad96664
Apply isort and black reformatting
lilithgrigoryan 19f0fbc
clean up
707a327
Merge branch 'beam_search' of https://github.com/lilithgrigoryan/NeMo…
bbfe224
fix: fixed comments
6a288c8
refactored duplicate merging
73b55b4
changes batch scoring
a752bbe
refactored rnnt batch scoring
7afccf3
alsd first working
2b1aa91
refactored
3592451
clean up
5d48a3f
remove stacking operations
c11d09f
fixes im base class
1540047
Merge branch 'main' of https://github.com/NVIDIA/NeMo into lgrigoryan…
271e2a6
clean up
51074bf
Apply isort and black reformatting
lilithgrigoryan 05380d0
remove potentially uninitialized local variable
98ebb9f
Merge branch 'lgrigoryan/rm-redundant-calculations' of https://github…
08955c7
merge
4a06795
Merge branch 'main' of https://github.com/NVIDIA/NeMo into lgrigoryan…
61044bc
default beam search minor fixes
f1504b2
add test, fix maes timesteps
3d4d913
rm file
64e8cfd
cleanuo
9a6c940
rm file
4632a56
clean up
a34c0b4
Apply isort and black reformatting
lilithgrigoryan 7ce4b2a
clean up
a8ee1f4
merge
b6dd217
fix comments
0de50f1
merge main
406e1ab
add ngram lm test
0076b9c
Apply isort and black reformatting
lilithgrigoryan 49c208e
fix maes_num_steps=1
49ca284
fix kenlm model path
77f5b88
fix kenlm model full path
7c063a9
Merge branch 'main' of https://github.com/NVIDIA/NeMo into lgrigoryan…
0726de1
merge
8684cff
Apply isort and black reformatting
lilithgrigoryan e12e124
made requested changes
7a61367
Merge branch 'lgrigoryan/tdt_beam_search' of https://github.com/NVIDI…
629b053
merge after isort
3f8e1c9
add prints to test
560d505
Apply isort and black reformatting
lilithgrigoryan 19dfab1
add Kenlm to asr requirements
64bb51b
Merge branch 'lgrigoryan/tdt_beam_search' of https://github.com/NVIDI…
2c62bdf
remove prints in tests
0f40f28
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] c7da895
add kenlm to test requirements
35317d9
Merge branch 'lgrigoryan/tdt_beam_search' of https://github.com/NVIDI…
61ab404
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 7f031e2
rm kenlm from link, add package-name
39018d2
merge
269dc87
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] f23bdce
rm second kenlm installation
ea47d23
rm kenlm from dependencies make test optional
52a89f2
Apply isort and black reformatting
lilithgrigoryan 7f9c1dd
Merge branch 'main' of https://github.com/NVIDIA/NeMo into lgrigoryan…
cb87610
Merge branch 'lgrigoryan/tdt_beam_search' of https://github.com/NVIDI…
9038849
fix in test
b7111f4
fix in test
c900892
Apply isort and black reformatting
lilithgrigoryan 3cb46ef
fix comments
ccf7933
Apply isort and black reformatting
lilithgrigoryan 20c3d4c
add comments
0d6a027
add comments
97584c1
splitted docstrings
80bf636
Merge branch 'lgrigoryan/tdt_beam_search' of https://github.com/NVIDI…
fe2d5b9
Apply isort and black reformatting
lilithgrigoryan 2fbf375
add comments
3bd4f99
splitted docstrings
d592af9
Merge branch 'lgrigoryan/tdt_beam_search' of https://github.com/NVIDI…
b1df71e
Apply isort and black reformatting
lilithgrigoryan 24cacc4
add comments
bb42ab5
Merge branch 'lgrigoryan/tdt_beam_search' of https://github.com/NVIDI…
70bb42b
Apply isort and black reformatting
lilithgrigoryan a1d348c
Merge branch 'main' of https://github.com/NVIDIA/NeMo into lgrigoryan…
fb720df
Merge branch 'main' into lgrigoryan/tdt_beam_search
lilithgrigoryan 028ea39
fixes to python3 type annotations
712ec52
Merge branch 'lgrigoryan/tdt_beam_search' of https://github.com/NVIDI…
6379324
Merge branch 'main' of https://github.com/NVIDIA/NeMo into lgrigoryan…
3b58359
Apply isort and black reformatting
lilithgrigoryan b9d4459
Merge branch 'main' of https://github.com/NVIDIA/NeMo into lgrigoryan…
008d507
Merge branch 'lgrigoryan/tdt_beam_search' of https://github.com/NVIDI…
cf402c3
merging
6fa3a7b
merging
0d544b5
fix in return type
f1d8932
Apply isort and black reformatting
lilithgrigoryan 74542a8
fix test
0070039
Merge branch 'lgrigoryan/tdt_beam_search' of https://github.com/NVIDI…
677b88d
Apply isort and black reformatting
lilithgrigoryan 0669d3d
Merge branch 'main' of https://github.com/NVIDIA/NeMo into lgrigoryan…
2169fd0
Merge branch 'lgrigoryan/tdt_beam_search' of https://github.com/NVIDI…
28dce00
rm time_idx
ef99181
Merge branch 'main' of https://github.com/NVIDIA/NeMo into lgrigoryan…
c61f01b
fix comments to python3 style
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding these classes!