Go back to the default of adding special tokens in validation.

This commit is contained in:
Nicolas Patry 2024-01-24 12:31:12 +00:00
parent b1ffd253a9
commit bfe062ee99

View File

@ -365,7 +365,7 @@ fn prepare_input(
) -> Result<(tokenizers::Encoding, String), ValidationError> {
// Get the number of tokens in the input
let mut encoding = tokenizer
.encode(inputs.clone(), false)
.encode(inputs.clone(), true)
.map_err(|err| ValidationError::Tokenizer(err.to_string()))?;
// Optionally truncate