Skip to content

Commit

Permalink
Refactor translation.cpp to remove commented code and improve detoken…
Browse files Browse the repository at this point in the history
…ization logic
  • Loading branch information
royshil committed Oct 14, 2024
1 parent f6639e9 commit fe8875b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/translation/translation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@ int translate(struct translation_context &translation_ctx, const std::string &te

// detokenize
const std::string result_ = translation_ctx.detokenizer(translation_tokens);
result = remove_start_punctuation(result_);
// result = remove_start_punctuation(result_);
result = result_;
} catch (std::exception &e) {
obs_log(LOG_ERROR, "Error: %s", e.what());
return OBS_POLYGLOT_TRANSLATION_FAIL;
Expand Down

0 comments on commit fe8875b

Please sign in to comment.