Skip to content

Commit

Permalink
Remove unneeded type cast in LanguageModel::ExtractFeaturesFromPath
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed Jan 19, 2023
1 parent 4142b32 commit 85cab7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wordrec/language_model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1375,7 +1375,7 @@ void LanguageModel::ExtractFeaturesFromPath(const ViterbiStateEntry &vse, float
// features[PTRAIN_NUM_BAD_FONT] = vse.consistency_info.inconsistent_font;

// Classifier-related features.
features[PTRAIN_RATING_PER_CHAR] = vse.ratings_sum / static_cast<float>(vse.outline_length);
features[PTRAIN_RATING_PER_CHAR] = vse.ratings_sum / vse.outline_length;
}

WERD_CHOICE *LanguageModel::ConstructWord(ViterbiStateEntry *vse, WERD_RES *word_res,
Expand Down

0 comments on commit 85cab7f

Please sign in to comment.