Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, encoder_path: str = './openai/model/encoder_bpe_40000.json',
bpe_path: str = './openai/model/vocab_40000.bpe') -> None:
self.encoder = _OpenAITextEncoder(encoder_path, bpe_path)
super().__init__(len(self.encoder.encoder))