比较2个字符串相似性得分

from Similarity scores based on string comparison in R (edit distance) - Stack Overflow

RecordLinkage::levenshteinSim
# or
mylevsim = function (str1, str2) 
{
    return(1 - (levenshteinDist(str1, str2)/max(nchar(str1), 
        nchar(str2))))
}

你可能感兴趣的:(比较2个字符串相似性得分)