public class NgramUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static Collection<String> |
getNgrams(String s,
int len,
boolean removePunctuation)
Returns the N-Grams for a string of a given length.
|
public static Collection<String> getNgrams(String s, int len, boolean removePunctuation)
s - The string input.len - The length of the n-grams.Copyright © 2018. All rights reserved.