(&self, tokens: &[i64], skip_special_tokens: bool)
| 39 | } |
| 40 | |
| 41 | pub fn decode(&self, tokens: &[i64], skip_special_tokens: bool) -> String { |
| 42 | let clean_spaces = false; |
| 43 | self.spm.decode(tokens, skip_special_tokens, clean_spaces) |
| 44 | } |
| 45 | |
| 46 | pub fn vocab_size(&self, include_special_tokens: bool) -> usize { |
| 47 | let vocab = self.spm.vocab(); |
nothing calls this directly
no outgoing calls
no test coverage detected