匹配单词和计算百分比的最佳方法是什么? [英] What is the best way to match word and calculate percentage?
本文介绍了匹配单词和计算百分比的最佳方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我陷入了这样一种情况,我必须将这些单词与不包含任何模式的字符串匹配并计算匹配百分比。
Ex:,
搜索词 | 字符串匹配 |
---|---|
1)我有很多工作。 | 1)现在没有工作可以完成。 |
2)我在一个这样的地方工作,很难找到一个人一个星期。 | 2)我正在工作。 |
请告诉我一些方法......!
I am stuck in a such scenario where I have to match the words with a string that doesn't contains any pattern and calculate matching percentage.
For Ex:,
Search term | String to match |
---|---|
1) I have lots of work. | 1) There is no work to complete now days. |
2) I am working at a such a place where it is hard to find single person for a week. | 2) I am working. |
Please show me some way...!
推荐答案
多年前我问了类似的问题:文本相似度算法 [ ^ ]。
请阅读。
Years ago i have asked similar question: Text similarity algorithm[^].
Please, read it.
这篇关于匹配单词和计算百分比的最佳方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文