KGramExtensionOnTermCollection extension

String collection extensions to generate k-gram maps.

on

Methods

toKGramsMap([int k = 2]) Map<String, Set<String>>

Available on Iterable<String>, provided by the KGramExtensionOnTermCollection extension

Returns a hashmap of k-grams to terms from the collection of tokens.