similarity

public static double similarity(String s1, String s2)(source)

Calculates the similarity (a number within 0 and 1) between two strings.

Return

the similarity

Author

Ruben Deisenroth

Parameters

s1

the first string used for the calculation of the similarity

s2

the second string used for the calculation of the similarity