Skip to content

Commit

Permalink
syling
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurZucker committed Nov 14, 2023
1 parent 562227b commit 4e714db
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bindings/python/src/pre_tokenizers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use tk::pre_tokenizers::bert::BertPreTokenizer;
use tk::pre_tokenizers::byte_level::ByteLevel;
use tk::pre_tokenizers::delimiter::CharDelimiterSplit;
use tk::pre_tokenizers::digits::Digits;
use tk::pre_tokenizers::metaspace::{Metaspace};
use tk::pre_tokenizers::metaspace::Metaspace;
use tk::pre_tokenizers::punctuation::Punctuation;
use tk::pre_tokenizers::split::Split;
use tk::pre_tokenizers::unicode_scripts::UnicodeScripts;
Expand Down Expand Up @@ -511,7 +511,9 @@ impl PyMetaspace {

// Extract values from _kwargs if present
let prepend_scheme: Option<String> = _kwargs.and_then(|kwargs| {
kwargs.get_item("prepend_scheme").and_then(|prepend_scheme| prepend_scheme.extract().ok())
kwargs
.get_item("prepend_scheme")
.and_then(|prepend_scheme| prepend_scheme.extract().ok())
});
// Perform an action if prepend_scheme is present
if let Some(prepend_scheme_value) = prepend_scheme {
Expand Down

0 comments on commit 4e714db

Please sign in to comment.