Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nishchalb committed Apr 17, 2024
1 parent 8f73d42 commit f1fa887
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Nlp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ NlpFstLoader::NlpFstLoader(std::vector<RawNlpRecord> &records, Json::Value norma

// fuse multiple rows that have the same id/label into one entry only
for (auto &row : records) {
mNlpRows.push_back(row);
auto curr_tk = row.token;
auto curr_label = row.best_label;
auto curr_label_id = row.best_label_id;
Expand All @@ -48,6 +47,7 @@ NlpFstLoader::NlpFstLoader(std::vector<RawNlpRecord> &records, Json::Value norma
}
row.wer_tags = real_wer_tags;
std::string speaker = row.speakerId;
mNlpRows.push_back(row);

if (processLabels && curr_label != "") {
if (firstTk || curr_label != last_label) {
Expand Down

0 comments on commit f1fa887

Please sign in to comment.