|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cybozu.labs.langdetect.util.LangProfile
public class LangProfile
LangProfile is a Language Profile Class.
Users don't use this class directly.
| Field Summary | |
|---|---|
HashMap<String,Integer> |
freq
|
int[] |
n_words
|
String |
name
|
| Constructor Summary | |
|---|---|
LangProfile()
Constructor for JSONIC |
|
LangProfile(String name)
Normal Constructor |
|
| Method Summary | |
|---|---|
void |
add(String gram)
Add n-gram to profile |
void |
omitLessFreq()
Eliminate below less frequency n-grams and noise Latin alphabets |
void |
update(String text)
Update the language profile with (fragmented) text. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public String name
public HashMap<String,Integer> freq
public int[] n_words
| Constructor Detail |
|---|
public LangProfile()
public LangProfile(String name)
name - language name| Method Detail |
|---|
public void add(String gram)
gram - public void omitLessFreq()
public void update(String text)
text - (fragmented) text to extract n-grams
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||