Skip to content

Commit

Permalink
Hotfix with empty string view from EOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerin Philip committed Apr 1, 2021
1 parent a315dc0 commit 0239a5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/translator/response.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ Response::Response(AnnotatedText &&source, Histories &&histories,

std::string decoded;
std::vector<string_view> targetMappings;
targetVocab->decodeWithByteRanges(words, decoded, targetMappings);
targetVocab->decodeWithByteRanges(words, decoded, targetMappings,
/*ignoreEOS=*/false);

if (first) {
first = false;
Expand Down

0 comments on commit 0239a5b

Please sign in to comment.