Skip to content

Commit

Permalink
Disable denormalizer flags (#13)
Browse files Browse the repository at this point in the history
Co-authored-by: Rohit Jain <[email protected]>
  • Loading branch information
rjai and Rohit Jain authored Aug 27, 2021
1 parent 28f9eb8 commit 3921b9a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sentencepiece_trainer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ util::Status SentencePieceTrainer::MergeSpecsFromArgs(
std::istringstream(value) >> std::boolalpha >> encode_unicode_case;
normalizer_spec->set_encode_case(encode_unicode_case);
denormalizer_spec->set_decode_case(encode_unicode_case);
denormalizer_spec->set_add_dummy_prefix(false);
denormalizer_spec->set_remove_extra_whitespaces(false);
denormalizer_spec->set_escape_whitespaces(false);
continue;
}

Expand Down

0 comments on commit 3921b9a

Please sign in to comment.