public class NGram
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private boolean |
capitalword_ |
private java.lang.StringBuilder |
grams_ |
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 java.lang.String |
get(int n)
TODO this method has some weird, undocumented behavior to ignore ngrams with upper case.
|
public static final int N_GRAM
private java.lang.StringBuilder grams_
private boolean capitalword_