|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cybozu.labs.langdetect.util.NGram
public class NGram
Cut out N-gram from text. Users don't use this class directly.
| Field Summary | |
|---|---|
static HashMap<Character,Character> |
cjk_map
|
static int |
N_GRAM
|
| Constructor Summary | |
|---|---|
NGram()
Constructor. |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int N_GRAM
public static HashMap<Character,Character> cjk_map
| Constructor Detail |
|---|
public NGram()
| Method Detail |
|---|
public void addChar(char ch)
ch - public String get(int n)
n - length of n-gram
public static char normalize(char ch)
ch -
public static String normalize_vi(String text)
text -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||