termSimilarities method

List<TermSimilarity> termSimilarities(
  1. Iterable<String> terms, {
  2. int k = 2,
})

Returns a ordered list of SimilarityIndex values for the terms, in descending order of SimilarityIndex.similarity.

Parameter k is the k-gram length used to calculate jaccardSimilarity, The default k is 2.

Not case-sensitive.

Implementation

List<TermSimilarity> termSimilarities(Iterable<String> terms, {int k = 2}) =>
    termSimilarityMap(terms, k: k).values.sortBySimilarity();