mirror of
https://github.com/hasktorch/tokenizers.git
synced 2024-10-05 17:37:44 +03:00
Allow invalid_reference_casting
This commit is contained in:
parent
f6e9f98995
commit
23944f1146
@ -414,6 +414,7 @@ impl BpeTrainer {
|
||||
word_counts: &HashMap<String, u32>,
|
||||
model: &mut BPE,
|
||||
) -> Result<Vec<AddedToken>> {
|
||||
#![allow(invalid_reference_casting)]
|
||||
let mut word_to_id: HashMap<String, u32> = HashMap::with_capacity(self.vocab_size);
|
||||
let mut id_to_word: Vec<String> = Vec::with_capacity(self.vocab_size);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user