From 6e9aeb13840875cff7c9c7a66f2565a4cc44c5f1 Mon Sep 17 00:00:00 2001 From: Huang Huang Date: Sat, 27 Aug 2022 11:07:02 +0800 Subject: [PATCH 1/2] [fix] Fix offline mode is not working --- g2pw/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/g2pw/api.py b/g2pw/api.py index 5ef3791..bdb5995 100644 --- a/g2pw/api.py +++ b/g2pw/api.py @@ -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') From 0719cd5e2a478febdcf2c64499d4ab503e78c66e Mon Sep 17 00:00:00 2001 From: GitYCC Date: Thu, 1 Sep 2022 18:09:15 +0800 Subject: [PATCH 2/2] [config] Bump to 0.1.1 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 2b3d40a..d3d7ce7 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setuptools.setup( name='g2pw', - version='0.1.0', + version='0.1.1', license='Apache License 2.0', author='Yi-Chang Chen', author_email='ycc.tw.email@gmail.com',