jaccardSimilarity method Null safety

double jaccardSimilarity(
  1. Term other,
  2. [int k = 3]
)

Returns the Jaccard Similarity Index between this term and other using a k-gram length of k.

Implementation

double jaccardSimilarity(Term other, [int k = 3]) =>
    _jaccardSimilarity(kGrams(k), other, k);