Spaces:
Running
Running
from typing import Protocol, runtime_checkable | |
class EsmTokenizerBase(Protocol): | |
def encode(self, *args, **kwargs): | |
... | |
def decode(self, *args, **kwargs): | |
... | |
def mask_token(self) -> str: | |
... | |
def mask_token_id(self) -> int: | |
... | |
def bos_token(self) -> str: | |
... | |
def bos_token_id(self) -> int: | |
... | |
def eos_token(self) -> str: | |
... | |
def eos_token_id(self) -> int: | |
... | |
def pad_token(self) -> str: | |
... | |
def pad_token_id(self) -> int: | |
... | |