Skip to content

Commit

Permalink
Bug fix in returning word scores.
Browse files Browse the repository at this point in the history
  • Loading branch information
ugermann committed May 15, 2020
1 parent 603256a commit c0bd70c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/service/api/rapidjson_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Value hyp2json(const marian::Result& nbestlist_item,

if (opts.withWordScores) {
Value ws(kArrayType);
std::vector<float> wscores = hyp->getScoreBreakdown();
std::vector<float> wscores = hyp->tracebackWordScores();
if (service.isRight2LeftDecoder())
std::reverse(wscores.begin(), wscores.end());
ws.Reserve(wscores.size(),alloc);
Expand Down

0 comments on commit c0bd70c

Please sign in to comment.