KGramExtensionOnTermCollection extension

String collection extensions to generate k-gram maps.

on

Methods

toKGramsMap([int k = 2]) Map<String, Set<String>>
Returns a hashmap of k-grams to terms from the collection of tokens.