mirror of https://github.com/Mai-with-u/MaiBot.git
fix: 修复 汉字频率字典 加载问题
parent
079b184a74
commit
f03d251b66
|
|
@ -47,7 +47,7 @@ class ChineseTypoGenerator:
|
||||||
"""
|
"""
|
||||||
加载或创建汉字频率字典
|
加载或创建汉字频率字典
|
||||||
"""
|
"""
|
||||||
cache_file = Path("char_frequency.json")
|
cache_file = Path("depends-data/char_frequency.json")
|
||||||
|
|
||||||
# 如果缓存文件存在,直接加载
|
# 如果缓存文件存在,直接加载
|
||||||
if cache_file.exists():
|
if cache_file.exists():
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue