Yoann. B
Yoann. B

Reputation: 11143

Relevance percentage between two string

How to get relevance percentage between two string in C#?

Upvotes: 2

Views: 1803

Answers (3)

Sam Chapman
Sam Chapman

Reputation: 1

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

Upvotes: 0

Will Vousden
Will Vousden

Reputation: 33388

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.

Upvotes: 0

Kane
Kane

Reputation: 16812

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?

Upvotes: 7

Related Questions