From 641ab175dc43cfe3ba17efde421ba14bada080e5 Mon Sep 17 00:00:00 2001 From: HuangHai <10402852@qq.com> Date: Mon, 23 Jun 2025 16:13:07 +0800 Subject: [PATCH] 'commit' --- dsRag/{ => Dict}/custom_dict.txt | 0 dsRag/T2_Txt2Vec.py | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename dsRag/{ => Dict}/custom_dict.txt (100%) diff --git a/dsRag/custom_dict.txt b/dsRag/Dict/custom_dict.txt similarity index 100% rename from dsRag/custom_dict.txt rename to dsRag/Dict/custom_dict.txt diff --git a/dsRag/T2_Txt2Vec.py b/dsRag/T2_Txt2Vec.py index d6c9fb32..a98cfc4c 100644 --- a/dsRag/T2_Txt2Vec.py +++ b/dsRag/T2_Txt2Vec.py @@ -9,7 +9,7 @@ pip install gensim[complete] from Util.EmbeddingUtil import * # 在加载模型后添加自定义词典 -jieba.load_userdict("custom_dict.txt") # 文件中包含: 花呗 +jieba.load_userdict("./Dict/custom_dict.txt") # 文件中包含: 花呗 sentences = ['如何更换花呗绑定银行卡', '花呗更改绑定银行卡']