Skip to content

Commit

Permalink
refactor: remove kwargs from decode_with_offsets since it's not used
Browse files Browse the repository at this point in the history
  • Loading branch information
tomeras91 committed Dec 28, 2023
1 parent ecc2c36 commit 8ccb7d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ai21_tokenizer/jurassic_tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,10 @@ def decode(self, token_ids: List[int], **kwargs) -> str:
"""
Transforms token ids into text
"""
res_text, offsets = self.decode_with_offsets(token_ids, **kwargs)
res_text, offsets = self.decode_with_offsets(token_ids)
return res_text

def decode_with_offsets(self, token_ids: List[int], **kwargs) -> Tuple[str, List[Tuple[int, int]]]:
def decode_with_offsets(self, token_ids: List[int]) -> Tuple[str, List[Tuple[int, int]]]:
"""
Transforms token ids into text, and returns the offsets of each token as well
"""
Expand Down

0 comments on commit 8ccb7d5

Please sign in to comment.