|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IStatisticalEstimator
Represents Statistical Estimator interface.
If concrete statistical estimators cannot inherit
from the generic StatisticalEstimator
class
(which provides most generic implementation), they must
implement this interface then.
Field Summary | |
---|---|
static java.lang.String |
MARF_INTERFACE_CODE_REVISION
Interface source code revision. |
Method Summary | |
---|---|
java.lang.String |
getLanguage()
Retrieves current language. |
ProbabilityTable |
getProbabilityTable()
Retrieves current probabilities table. |
NLPStreamTokenizer |
getStreamTokenizer()
Retrieves current stream tokenizer. |
double |
p()
Classification via calculation of a probability p. |
void |
setLanguage(java.lang.String pstrLang)
Allows alteration of the current language being processed. |
void |
setStreamTokenizer(NLPStreamTokenizer poStreamTokenizer)
Sets desired stream tokenizer. |
boolean |
train()
Every estimator needs to implement its specific training method. |
Field Detail |
---|
static final java.lang.String MARF_INTERFACE_CODE_REVISION
Method Detail |
---|
double p()
boolean train()
true
if training was successfulvoid setStreamTokenizer(NLPStreamTokenizer poStreamTokenizer)
poStreamTokenizer
- NLPStreamTokenizer or a derivative to use for tokensNLPStreamTokenizer
NLPStreamTokenizer getStreamTokenizer()
ProbabilityTable getProbabilityTable()
ProbabilityTable
void setLanguage(java.lang.String pstrLang)
pstrLang
- desired languagejava.lang.String getLanguage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |