mirror of
https://github.com/mii443/tokenizers.git
synced 2025-08-23 00:35:35 +00:00
Revert wrong change
This commit is contained in:
@ -236,7 +236,8 @@ impl Tokenizer {
|
||||
}
|
||||
|
||||
/// Train a model and replace our current Model, using the given Trainer
|
||||
pub fn train(&mut self, trainer: &dyn Trainer, files: Vec<String>) -> Result<()> {
|
||||
#[allow(clippy::borrowed_box)]
|
||||
pub fn train(&mut self, trainer: &Box<dyn Trainer>, files: Vec<String>) -> Result<()> {
|
||||
let results = files
|
||||
.par_iter()
|
||||
.map(|file| -> Result<HashMap<String, u32>> {
|
||||
|
Reference in New Issue
Block a user