Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

literal_text_semantic_search_demo.py知网HownetSimilarity字面匹配搜索找不到hownet.txt #35

Open
NLear opened this issue May 30, 2024 · 1 comment
Labels
question Further information is requested

Comments

@NLear
Copy link

NLear commented May 30, 2024

Question

您好,我在使用HownetSimilarity中遇到了问题,请求帮助,十分感谢。

文件examples/literal_text_semantic_search_demo.py

sim_and_search(HownetSimilarity())

运行报错,
default_hownet_path = os.path.join(pwd_path, 'data/hownet.txt')

找不到data/hownet.txt文件,可否增加文件或提供下载链接。

HowNet.txt核心数据文件(HowNet.txt)格式不正确,无法使用

W_C=贷 #中文词
G_C=verb [9MustObj] [dai4] #中文词词性
S_C=PlusFeeling|正面情感 #情感倾向
E_C=定斩不~,严惩不~  #中文词例句
W_E=forgive #英文词 
G_E=verb [7 forgiveverb-0vt,sobj,ofnpa22    ]  #英文词词性
S_E=PlusFeeling|正面情感 #情感倾向
E_E=    #英文词例句
DEF={forgive|原谅} # 基于义原的定义
RMK=```
@NLear NLear added the question Further information is requested label May 30, 2024
@shibing624
Copy link
Owner

pip install similarities

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants