Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurZucker committed Nov 13, 2023
1 parent 3ec7b54 commit 34355e5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tokenizers/src/pre_tokenizers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,13 @@ mod tests {
)
.unwrap();

let mut expected_pre_tokenizer = Metaspace::new('▁', true);
assert_eq!(
pre_tokenizer,
PreTokenizerWrapper::Metaspace(expected_pre_tokenizer)
PreTokenizerWrapper::Metaspace(Metaspace::new_with_prepend_scheme(
'▁',
true,
metaspace::PrependScheme::First
))
);

let pre_tokenizer: PreTokenizerWrapper = serde_json::from_str(
Expand Down

0 comments on commit 34355e5

Please sign in to comment.