Skip to content

Commit

Permalink
fix: dummy for returned offsets in decode_with_offsets
Browse files Browse the repository at this point in the history
  • Loading branch information
tomeras91 committed Dec 28, 2023
1 parent ad75215 commit 6996a1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ai21_tokenizer/jurassic_tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def decode(self, token_ids: List[int], **kwargs) -> str:
"""
Transforms token ids into text
"""
res_text, offsets = self.decode_with_offsets(token_ids)
res_text, _ = self.decode_with_offsets(token_ids)
return res_text

def decode_with_offsets(self, token_ids: List[int]) -> Tuple[str, List[Tuple[int, int]]]:
Expand Down

0 comments on commit 6996a1f

Please sign in to comment.