Skip to content
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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Guoye/merge embr final #3560

wants to merge 7 commits into from

Conversation

guoli-ye
Copy link

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.

@@ -23,7 +23,7 @@
#include <algorithm> // for find()
#include "simplesenonehmm.h"
#include "Matrix.h"

#include <set>
Copy link
Contributor

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

Copy link
Author

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
Copy link
Contributor

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.

Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants