开发者

Relevance percentage between two string

开发者 https://www.devze.com 2022-12-16 08:29 出处:网络
How to get relevance percentage b开发者_如何学编程etween two string in C#?Are you looking for something similar to the the Levenshtein distance, which is the distance between two strings is given by t

How to get relevance percentage b开发者_如何学编程etween two string in C#?


Are you looking for something similar to the the Levenshtein distance, which is the distance between two strings is given by the minimum number of operations needed to transform one string into the other?


There's no simple answer for this, but have a look at Wikipedia's string metrics article. There are lots of different approaches, though the most widely known is probably the Levenshtein distance, which assigns an integer ranking to a pair of strings to quantify the 'distance' between them.


check out the open source package SimMetrics on sourceforge - this should cover every possible need fairly simply.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号