From b081e6ca04cdddf4d40e4d0ac5d39a3feee21c91 Mon Sep 17 00:00:00 2001 From: Anthony MOI Date: Sun, 24 Nov 2019 00:35:05 -0500 Subject: [PATCH] Python - Also expose default classes --- bindings/python/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bindings/python/src/lib.rs b/bindings/python/src/lib.rs index 08eec48f..db93d546 100644 --- a/bindings/python/src/lib.rs +++ b/bindings/python/src/lib.rs @@ -19,6 +19,7 @@ fn models(_py: Python, m: &PyModule) -> PyResult<()> { /// PreTokenizers Module #[pymodule] fn pre_tokenizers(_py: Python, m: &PyModule) -> PyResult<()> { + m.add_class::()?; m.add_class::()?; Ok(()) } @@ -26,6 +27,7 @@ fn pre_tokenizers(_py: Python, m: &PyModule) -> PyResult<()> { /// Decoders Module #[pymodule] fn decoders(_py: Python, m: &PyModule) -> PyResult<()> { + m.add_class::()?; m.add_class::()?; Ok(()) }