Skip to content

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.

@guoli-ye guoli-ye requested a review from vmazalov January 25, 2019 19:12
#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.

2 participants