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

请问词语相似度采用的算法是什么 #25

Open
swjtxhZhou opened this issue Dec 28, 2020 · 3 comments
Open

请问词语相似度采用的算法是什么 #25

swjtxhZhou opened this issue Dec 28, 2020 · 3 comments

Comments

@swjtxhZhou
Copy link

请问汉语语义法相似度和字面编辑法相似度分别采用的是什么算法进行计算的

@shibing624
Copy link
Owner

词语相似度,
汉语语义法相似度算法:基于知网义原计算词之间的相似度,具体实现参考代码:https://github.com/shibing624/similarity/blob/master/src/main/java/org/xm/similarity/word/hownet/sememe/SememeSimilarity.java
字面编辑法相似度:基于拼音的编辑距离计算,拼音用编辑距离表示相似程度,参考实现:https://github.com/shibing624/similarity/blob/master/src/main/java/org/xm/similarity/word/pinyin/PinyinSimilarity.java。

@alant77
Copy link

alant77 commented Sep 7, 2021

您好,请问CharBasedSimilarity(字面相似度)是采用的什么算法?是基于某个数学公式吗?

@shibing624
Copy link
Owner

编辑距离。

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

No branches or pull requests

3 participants