Skip to content

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

Description

@NLear

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=```

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions