(self, text: str)
| 51 | self.chars_per_token = chars_per_token |
| 52 | |
| 53 | def encode(self, text: str) -> List[int]: |
| 54 | # Return pseudo list of estimated token count |
| 55 | estimated_count = int(len(text) / self.chars_per_token) |
| 56 | return list(range(estimated_count)) |
| 57 | |
| 58 | def decode(self, tokens: List[int]) -> str: |
| 59 | # Cannot truly decode, return empty string |