main
HuangHai 1 month ago
parent 0335b8c17a
commit 6fe77e7400

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 76 KiB

@ -8,6 +8,8 @@ pip install gensim[complete]
'''
from Util.EmbeddingUtil import *
# 在加载模型后添加自定义词典
jieba.load_userdict("custom_dict.txt") # 文件中包含: 花呗
sentences = ['如何更换花呗绑定银行卡', '花呗更改绑定银行卡']

@ -0,0 +1,4 @@
// ... existing code ...
# 在加载模型后添加自定义词典
jieba.load_userdict("custom_dict.txt") # 文件中包含: 花呗 n
// ... existing code ...
Loading…
Cancel
Save