|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jasen.core.engine.JasenEngineConfiguration
Singleton configuration class to hold, and provide thread safe access to engine configuration data.
Method Summary | |
float |
getConfidence()
Gets the confidence we have in the "background information". |
float |
getEsf()
Gets the ESF or Effective Size Factor. |
int |
getFtt()
Gets the FTT or Few Token Threshold This is just a fudge factor which toggles the engine between two different internal algorithms depending on the number of tokens (words) returned frmo message tokenization |
float |
getGuess()
The guess is the value given to a scan when (for whatever reason) no information about the message could be determined. |
static JasenEngineConfiguration |
getInstance()
Gets the single (per JVM) instance of the configuration |
float |
getParserContrastThreshold()
Confguration value for the html parser |
int |
getParserMicroElementSize()
Confguration value for the html parser |
int |
getParserMicroFontSize()
Confguration value for the html parser |
void |
setConfidence(float confidence)
Gets the confidence we have in the "background information". |
void |
setEsf(float esf)
Sets the Effective Size Factor |
void |
setFtt(int fewTokenThreshold)
Sets the FTT or Few Token Threshold This is just a fudge factor which toggles the engine between two different internal algorithms depending on the number of tokens (words) returned frmo message tokenization |
void |
setGuess(float guess)
Sets the guess value. |
void |
setParserContrastThreshold(float parserContrastThreshold)
Confguration value for the html parser |
void |
setParserMicroElementSize(int parserMicroElementSize)
Confguration value for the html parser |
void |
setParserMicroFontSize(int parserMicroFontSize)
Confguration value for the html parser |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static JasenEngineConfiguration getInstance()
public float getConfidence()
public void setConfidence(float confidence)
confidence
- The confidence to set.public float getEsf()
public void setEsf(float esf)
esf
- The esf to set.getEsf()
public float getGuess()
public void setGuess(float guess)
guess
- The guess to set.public int getFtt()
public void setFtt(int fewTokenThreshold)
fewTokenThreshold
- Should be a number between 1 and 50 (ideally)public float getParserContrastThreshold()
SpamHTMLParser.getContrastThreshold()
public void setParserContrastThreshold(float parserContrastThreshold)
parserContrastThreshold
- SpamHTMLParser.setContrastThreshold(float)
public int getParserMicroElementSize()
SpamHTMLParser.getMicroElementSize()
public void setParserMicroElementSize(int parserMicroElementSize)
parserMicroElementSize
- SpamHTMLParser.setMicroElementSize(int)
public int getParserMicroFontSize()
SpamHTMLParser.getMicroFontSize()
public void setParserMicroFontSize(int parserMicroFontSize)
parserMicroFontSize
- SpamHTMLParser.setMicroFontSize(int)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |