JakeOh commited on
Commit
caecfa6
·
verified ·
1 Parent(s): aa989e3

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. char_tokenizer.py +3 -0
char_tokenizer.py CHANGED
@@ -15,6 +15,9 @@ class CharTokenizer(PreTrainedTokenizer):
15
  Compatible with HuggingFace transformers.
16
  """
17
 
 
 
 
18
  def __init__(
19
  self,
20
  vocab_file: Optional[str] = None,
 
15
  Compatible with HuggingFace transformers.
16
  """
17
 
18
+ # Required for HuggingFace from_pretrained to locate and load vocab file
19
+ vocab_files_names = {"vocab_file": "vocab.json"}
20
+
21
  def __init__(
22
  self,
23
  vocab_file: Optional[str] = None,