NGramListExtensions<T> extension

Extension methods for creating n-grams from token lists.

on

Methods

createAllNGramCounts({int minN = 1, int maxN = 4}) → MatchCounter<NGram<T>>

Available on List<T>, provided by the NGramListExtensions extension

Creates a MatchCounter over all n-grams of sizes minN..maxN.
createAllNGrams({int minN = 1, int maxN = 4}) List<NGram<T>>

Available on List<T>, provided by the NGramListExtensions extension

Creates all n-grams of sizes minN..maxN (inclusive).
createNGramCounts(int n) → MatchCounter<NGram<T>>

Available on List<T>, provided by the NGramListExtensions extension

Creates a MatchCounter over all n-grams of size n.
createNGrams(int n) List<NGram<T>>

Available on List<T>, provided by the NGramListExtensions extension

Creates all n-grams of size n from this token list.