Skip to content

Commit

Permalink
apply #2
Browse files Browse the repository at this point in the history
  • Loading branch information
svirpioj committed Oct 11, 2023
1 parent 65956f5 commit 7902129
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tokenizer.cpp
Expand Up @@ -652,7 +652,7 @@ Tokenizer::protected_tokenize(std::string& text) {
// suppress break if it is an non-breaking prefix
if (sentence_break_p) {
re2::StringPiece pfx(words[ii].substr(0,len-1));
std::string pfxs(pfx.as_string());
std::string pfxs(pfx);
if (nbpre_gen_set.find(pfxs) != nbpre_gen_set.end()) {
// general non-breaking prefix
sentence_break_p = false;
Expand Down

0 comments on commit 7902129

Please sign in to comment.