Add Lowercase Normalizer

This commit is contained in:
Anthony MOI
2020-01-07 19:40:19 -05:00
parent 099bb8e596
commit 5bc1e2ee05
5 changed files with 31 additions and 0 deletions

View File

@ -121,3 +121,15 @@ impl Sequence {
})
}
}
#[pyclass]
pub struct Lowercase {}
#[pymethods]
impl Lowercase {
#[staticmethod]
fn new() -> PyResult<Normalizer> {
Ok(Normalizer {
normalizer: Container::Owned(Box::new(tk::normalizers::utils::Lowercase)),
})
}
}