public class NGram extends Object
Modifier and Type | Field and Description |
---|---|
static HashMap<Character,Character> |
cjk_map |
static int |
N_GRAM |
Constructor and Description |
---|
NGram()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addChar(char ch)
Append a character into ngram buffer.
|
String |
get(int n)
Get n-Gram
|
static String |
normalize_vi(String text)
Normalizer for Vietnamese.
|
static char |
normalize(char ch)
Character Normalization
|
public static final int N_GRAM
public void addChar(char ch)
ch
- public String get(int n)
n
- length of n-grampublic static char normalize(char ch)
ch
- Copyright © 2016. All rights reserved.