BertNormalizer has same behavior than original implem

This commit is contained in:
Anthony MOI
2020-07-06 13:32:19 -04:00
parent b91deeaa3d
commit 7a95ffc4fa
6 changed files with 13 additions and 11 deletions

View File

@ -51,7 +51,7 @@ impl BertNormalizer {
fn new(kwargs: Option<&PyDict>) -> PyResult<(Self, Normalizer)> {
let mut clean_text = true;
let mut handle_chinese_chars = true;
let mut strip_accents = true;
let mut strip_accents = None;
let mut lowercase = true;
if let Some(kwargs) = kwargs {