some day I'll get a commit right on the first try

This commit is contained in:
mrq 2023-03-16 04:37:49 +00:00
parent 730a04708d
commit 730f56aa87

View File

@ -29,7 +29,7 @@ def remove_extraneous_punctuation(word):
class VoiceBpeTokenizer:
def __init__(self, vocab_file=DEFAULT_VOCAB_FILE, preprocess=None):
def __init__(self, vocab_file, preprocess=None):
if preprocess is None:
self.preprocess = vocab_file[-8:] != "ipa.json"
else: