Skip to content

Commit

Permalink
Merge pull request #143 from jsenellart/master
Browse files Browse the repository at this point in the history
invalid test causing all pieces to be identified as non valid
  • Loading branch information
taku910 authored Jul 27, 2018
2 parents fd96572 + fbcaba9 commit a0ba0b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/trainer_interface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ bool TrainerInterface::IsValidSentencePiece(
}
// Do not allow a piece to include multiple Unicode scripts
// when split_by_unicode_script() is true (default = true).
if (prev_script != -1 && prev_script != s &&
if (prev_script != static_cast<unicode_script::ScriptType>(-1) && prev_script != s &&
trainer_spec_.split_by_unicode_script()) {
return false;
}
Expand Down

0 comments on commit a0ba0b9

Please sign in to comment.