Skip to content

Commit

Permalink
[fix] Fix offline mode is not working
Browse files Browse the repository at this point in the history
  • Loading branch information
mozillazg authored Aug 27, 2022
1 parent d36bad6 commit 6e9aeb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion g2pw/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def __init__(self, model_dir='G2PWModel/', style='bopomofo', model_source=None,
self.model_source = model_source if model_source else self.config.model_source
self.turnoff_tqdm = turnoff_tqdm

self.tokenizer = BertTokenizer.from_pretrained(self.config.model_source)
self.tokenizer = BertTokenizer.from_pretrained(self.model_source)

polyphonic_chars_path = os.path.join(model_dir, 'POLYPHONIC_CHARS.txt')
monophonic_chars_path = os.path.join(model_dir, 'MONOPHONIC_CHARS.txt')
Expand Down

0 comments on commit 6e9aeb1

Please sign in to comment.