public class LangProfile extends Object
LangProfile
is a Language Profile Class.
Users don't use this class directly.Modifier and Type | Field and Description |
---|---|
HashMap<String,Integer> |
freq |
int[] |
n_words |
String |
name |
Constructor and Description |
---|
LangProfile()
Constructor for JSONIC
|
LangProfile(String name)
Normal Constructor
|
Modifier and Type | Method and Description |
---|---|
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.
|
public String name
public int[] n_words
public LangProfile()
public LangProfile(String name)
name
- language namepublic void add(String gram)
gram
- public void omitLessFreq()
public void update(String text)
text
- (fragmented) text to extract n-gramsCopyright © 2016. All rights reserved.