mirror of
https://github.com/mii443/tokenizers.git
synced 2025-12-06 04:38:23 +00:00
Remove Container from PostProcessors, replace with Arc.
* prefix the Python types in Rust with Py. * remove unsound Container wrappers, replace with Arc.
This commit is contained in:
committed by
Anthony MOI
parent
0f81997351
commit
11e86a16c5
@@ -82,10 +82,10 @@ fn decoders(_py: Python, m: &PyModule) -> PyResult<()> {
|
||||
/// Processors Module
|
||||
#[pymodule]
|
||||
fn processors(_py: Python, m: &PyModule) -> PyResult<()> {
|
||||
m.add_class::<processors::PostProcessor>()?;
|
||||
m.add_class::<processors::BertProcessing>()?;
|
||||
m.add_class::<processors::RobertaProcessing>()?;
|
||||
m.add_class::<processors::ByteLevel>()?;
|
||||
m.add_class::<processors::PyPostProcessor>()?;
|
||||
m.add_class::<processors::PyBertProcessing>()?;
|
||||
m.add_class::<processors::PyRobertaProcessing>()?;
|
||||
m.add_class::<processors::PyByteLevel>()?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user