T
- public class NGramGenerator<T> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
NGramGenerator.StringNGramGenerator
Produce n-grams of strings
|
Constructor and Description |
---|
NGramGenerator(Class<T> type) |
Modifier and Type | Method and Description |
---|---|
<R extends T> |
getNGrams(List<R> tokens,
int... ngrams) |
static void |
main(String[] args)
lightweight test with some really horrible unicode
|
public NGramGenerator(Class<T> type)
type
- provide the type of the items in the list being generated