TermSimilarityCollectionExtension extension

Extension methods on collection of SimilarityIndex.

on

Methods

limit([int? limit = 10]) List<TermSimilarity>

Available on Iterable<TermSimilarity>, provided by the TermSimilarityCollectionExtension extension

Returns the first limit instances of the collection.
sortBySimilarity([bool descending = true]) List<TermSimilarity>

Available on Iterable<TermSimilarity>, provided by the TermSimilarityCollectionExtension extension

Sorts the collection of SimilarityIndex instances in descending order of SimilarityIndex.similarity.