public class NGram extends Object
Modifier and Type | Field and Description |
---|---|
static int |
N_GRAM
ngrams are created from 1gram to this amount, currently 2grams and 3grams.
|
Constructor and Description |
---|
NGram() |
Modifier and Type | Method and Description |
---|---|
void |
addChar(char ch) |
@Nullable String |
get(int n)
TODO this method has some weird, undocumented behavior to ignore ngrams with upper case.
|
public static final int N_GRAM
public void addChar(char ch)
@Nullable public @Nullable String get(int n)
n
- length of n-gramCopyright © 2018. All rights reserved.