TermSimilarityCollectionExtension extension
Extension methods on collection of SimilarityIndex.
Methods
-
limit(
[int? limit = 10]) → List< TermSimilarity> -
Returns the first
limit
instances of the collection. -
sortBySimilarity(
[bool descending = true]) → List< TermSimilarity> - Sorts the collection of SimilarityIndex instances in descending order of SimilarityIndex.similarity.