-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Guoye/merge embr final #3560
base: master
Are you sure you want to change the base?
Guoye/merge embr final #3560
Conversation
… consistent with GPUMatrix.h
@@ -23,7 +23,7 @@ | |||
#include <algorithm> // for find() | |||
#include "simplesenonehmm.h" | |||
#include "Matrix.h" | |||
|
|||
#include <set> |
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.
Do we need them sorted? Otherwise we can use unordered_set
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.
change to unordered set
{ | ||
// for sorting purpose | ||
// make sure the map is stored with keys in descending order | ||
std::map<double, std::vector<PrevTokenInfo>, std::greater <double>> mp_score_token_infos; // for sorting the tokens in map |
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.
why not ordered_map? -- similarly in other places.
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.
the map is for ordering purpose
Add the EMBR code for sequence training: EMBR is WER based sequence training method, it has been used for all MS ASR production model with very good gains.