Skip to content

Commit

Permalink
Add add_bos, add_eos to SentencePieceTokenizer.get_config()
Browse files Browse the repository at this point in the history
  • Loading branch information
briango28 committed Sep 6, 2024
1 parent 32ee45f commit b57396c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions keras_nlp/src/tokenizers/sentence_piece_tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@ def get_config(self):
{
"proto": None, # Save vocabulary via an asset!
"sequence_length": self.sequence_length,
"add_bos": self.add_bos,
"add_eos": self.add_eos,
}
)
return config
Expand Down

0 comments on commit b57396c

Please sign in to comment.