Add newline between classes
This commit is contained in:
parent
1f16e5f234
commit
e876aec189
1 changed files with 1 additions and 0 deletions
|
@ -414,6 +414,7 @@ class SentencePieceVocab:
|
|||
def __repr__(self) -> str:
|
||||
return f"<SentencePieceVocab with {self.vocab_size_base} base tokens and {len(self.added_tokens_list)} added tokens>"
|
||||
|
||||
|
||||
class HFVocab:
|
||||
def __init__(self, fname_tokenizer: Path, fname_added_tokens: Path | None) -> None:
|
||||
self.tokenizer = AutoTokenizer.from_pretrained(str(fname_tokenizer))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue