We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9234c4d commit 2ac31baCopy full SHA for 2ac31ba
bindings/python/src/models.rs
@@ -75,10 +75,6 @@ impl Model for PyModel {
75
self.model.read().unwrap().get_vocab()
76
}
77
78
- fn get_vocab_ahash(&self) -> AHashMap<String, u32> {
79
- self.model.read().unwrap().get_vocab_ahash()
80
- }
81
-
82
fn get_vocab_size(&self) -> usize {
83
self.model.read().unwrap().get_vocab_size()
84
@@ -678,7 +674,7 @@ impl PyWordPiece {
678
674
if let Some(vocab) = vocab {
679
675
match vocab {
680
676
PyVocab::Vocab(vocab) => {
681
- let vocab = vocab.into_iter().collect();
677
+ let vocab: AHashMap<_, _> = vocab.into_iter().collect();
682
builder = builder.vocab(vocab);
683
684
PyVocab::Filename(vocab_filename) => {
0 commit comments