Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add-legacy-tests #1597

Merged
merged 14 commits into from
Aug 6, 2024
Prev Previous commit
Next Next commit
fix commit
ArthurZucker committed Aug 6, 2024
commit 002bb4661824a5dea1cd2de65e7a522e91b7fb9c
2 changes: 1 addition & 1 deletion tokenizers/src/pre_tokenizers/mod.rs
Original file line number Diff line number Diff line change
@@ -159,7 +159,7 @@ mod tests {

let json = r#"{"type":"Metaspace", "replacement":"▁" }"#;
let reconstructed = serde_json::from_str::<PreTokenizerWrapper>(json);
assert_eq!(reconstructed, PreTokenizerWrapper::Metaspace(Metaspace::default()));
assert_eq!(reconstructed.unwrap(), PreTokenizerWrapper::Metaspace(Metaspace::default()));

let json = r#"{"type":"Metaspace", "add_prefix_space":true }"#;
let reconstructed = serde_json::from_str::<PreTokenizerWrapper>(json);