Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurZucker committed Apr 15, 2024
1 parent bd63ce8 commit 8498ecb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bindings/python/src/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ impl PyModel {
///
/// byte_fallback (:obj:`bool`, `optional`):
/// Whether to use spm byte-fallback trick (defaults to False)
///
///
/// check_word_in_vocab (:obj:`bool`, `optional`):
/// Whether or not to match tokens with the vocab before using merges.
#[pyclass(extends=PyModel, module = "tokenizers.models", name = "BPE")]
Expand Down Expand Up @@ -404,7 +404,7 @@ impl PyBPE {
fn get_check_word_in_vocab(self_: PyRef<Self>) -> bool {
getter!(self_, BPE, check_word_in_vocab)
}

#[setter]
fn set_check_word_in_vocab(self_: PyRef<Self>, check_word_in_vocab: bool) {
setter!(self_, BPE, check_word_in_vocab, check_word_in_vocab);
Expand Down

0 comments on commit 8498ecb

Please sign in to comment.