KGramExtensionOnTermCollection extension
String collection extensions to generate k-gram maps.
Methods
-
toKGramsMap(
[int k = 2]) → Map< String, Set< String> > -
Available on Iterable<
Returns a hashmap of k-grams to terms from the collection of tokens.String> , provided by the KGramExtensionOnTermCollection extension