diff --git a/vaporetto/src/tag_trainer.rs b/vaporetto/src/tag_trainer.rs index 8e1c69d..54adda4 100644 --- a/vaporetto/src/tag_trainer.rs +++ b/vaporetto/src/tag_trainer.rs @@ -100,7 +100,7 @@ impl<'a> TagTrainer<'a> { } self.examples .entry(token.surface()) - .or_insert_with(Vec::new) + .or_default() .push(TagExample { tags: token.tags(), features,