Skip to content

Commit

Permalink
Update tokenizers/src/tokenizer/added_vocabulary.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Luc Georges <[email protected]>
  • Loading branch information
ArthurZucker and McPatate authored Jul 12, 2024
1 parent d6123a6 commit 0594b51
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tokenizers/src/tokenizer/added_vocabulary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ impl AddedVocabulary {
.or_else(|| model.id_to_token(id))
}

//
pub fn simple_id_to_token(&self, id: u32) -> Option<String> {
self.added_tokens_map_r.get(&id).map(|t| t.content.clone())
}
Expand Down

0 comments on commit 0594b51

Please sign in to comment.