|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object marf.MARF.NLP
public static class MARF.NLP
Class NLP is more related to the Natural Language Processing part of MARF.
Field Summary | |
---|---|
static int |
CASE_SENSITIVE
Indicates to use case-sensitive processing of text. |
static int |
CHARACTER_MODE
Work in character n-gram mode. |
static int |
CLASSIFY
Action to perform a classification task. |
static int |
INTERACTIVE
Use interactive mode. |
static int |
PARSE_ENDS_OF_SENTENCE
When parsing text, also parse typical ends of sentences. |
static int |
PARSE_NUMBERS
When parsing text, also parse numbers as tokens. |
static int |
PARSE_QUOTED_STRINGS
When parsing text, also parse quoted literals. |
static int |
RAW_ZIPFS_LAW_DUMP
Perform a raw dump of Zipf's Law data. |
static int |
STEMMING
Indicates to use stemming module. |
static int |
TRAIN
Action to train a classifier. |
static int |
WORD_MODE
Similarly to CHARACTER_MODE work in word mode
for n-grams. |
static int |
ZIPFS_LAW_CHEAT
When classifying, cheat with Zipf's Law implementation. |
Constructor Summary | |
---|---|
MARF.NLP()
|
Method Summary | |
---|---|
static java.lang.String |
getLanguage()
Retrieves current language being processed. |
static int |
getNgramModel()
Retrieves current n-gram model. |
static int |
getSmoothingMethod()
Retrieves current smoothing method. |
static void |
setLanguage(java.lang.String pstrLanguages)
Sets current processed language. |
static void |
setNgramModel(int piNgramModel)
Sets current n-gram model. |
static void |
setSmoothingMethod(int piSmoothingMethod)
Sets current smoothing method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int STEMMING
public static final int CASE_SENSITIVE
public static final int PARSE_NUMBERS
public static final int PARSE_QUOTED_STRINGS
public static final int PARSE_ENDS_OF_SENTENCE
public static final int RAW_ZIPFS_LAW_DUMP
public static final int CHARACTER_MODE
public static final int TRAIN
public static final int CLASSIFY
public static final int INTERACTIVE
public static final int ZIPFS_LAW_CHEAT
public static final int WORD_MODE
CHARACTER_MODE
work in word mode
for n-grams.
CHARACTER_MODE
,
Constant Field ValuesConstructor Detail |
---|
public MARF.NLP()
Method Detail |
---|
public static final int getSmoothingMethod()
public static void setSmoothingMethod(int piSmoothingMethod) throws NLPException
piSmoothingMethod
- new smoothing method to use
NLPException
- if the parameter is outside the valid rangeMARF.EStatisticalEstimators.MIN_STATS_ESTIMATOR
,
MARF.EStatisticalEstimators.MAX_STATS_ESTIMATOR
public static final int getNgramModel()
public static final void setNgramModel(int piNgramModel) throws NLPException
piNgramModel
- new n-gram model to use
NLPException
- if the parameter is outside the valid rangeMARF.ENgramModels.MIN_NGRAM_MODEL
,
MARF.ENgramModels.MAX_NGRAM_MODEL
public static java.lang.String getLanguage()
public static void setLanguage(java.lang.String pstrLanguages) throws NLPException
pstrLanguages
- new language value
NLPException
- if the parameter is null or empty
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |