Refactor: change execution location of pyopenjtalk.initialize()

Considering library design, this function with many side effects should not be executed in a library.
This commit is contained in:
tsukumi
2024-03-09 00:26:51 +00:00
parent 8feef04cef
commit c594f7ea7a
5 changed files with 8 additions and 18 deletions

View File

@@ -80,10 +80,6 @@ def update_dict(
コンパイル済み辞書ファイルのパス
"""
# pyopenjtalk_worker を初期化
## 一度 worker を起動すれば、明示的に終了するかプロセス終了まで同一の worker に接続される
pyopenjtalk.initialize()
random_string = uuid4()
tmp_csv_path = compiled_dict_path.with_suffix(
f".dict_csv-{random_string}.tmp"