|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BayesianAnalyzerManagementService
| Field Summary | |
|---|---|
static java.lang.String |
ROLE
|
| Method Summary | |
|---|---|
int |
addHamFromDir(java.lang.String dir)
Feed the BayesianAnalyzer with ham. |
int |
addHamFromMbox(java.lang.String file)
Feed the BayesianAnalyzer with ham. |
int |
addSpamFromDir(java.lang.String dir)
Feed the BayesianAnalyter with spam. |
int |
addSpamFromMbox(java.lang.String file)
Feed the BayesianAnalyzer with ham. |
void |
exportData(java.lang.String file)
Export the data to a xml file |
void |
importData(java.lang.String file)
Import the data from a xml file |
void |
resetData()
Reset the trained data |
| Field Detail |
|---|
static final java.lang.String ROLE
| Method Detail |
|---|
int addSpamFromDir(java.lang.String dir)
throws BayesianAnalyzerManagementException
dir - The directory in which the spam is located
java.lang.IllegalArgumentException - If the provided directory is not valid
BayesianAnalyzerManagementException - If the service is not configured
int addHamFromDir(java.lang.String dir)
throws BayesianAnalyzerManagementException
dir - The directory in which the ham is located
java.lang.IllegalArgumentException - If the provided directory is not valid
BayesianAnalyzerManagementException - If the service is not configured
int addSpamFromMbox(java.lang.String file)
throws BayesianAnalyzerManagementException
file - The mbox file
java.lang.IllegalArgumentException - If the provided file is not a valid mbox file
BayesianAnalyzerManagementException - If the service is not configured
int addHamFromMbox(java.lang.String file)
throws BayesianAnalyzerManagementException
file - The mbox file
java.lang.IllegalArgumentException - If the provided file is not a valid mbox file
BayesianAnalyzerManagementException - If the service is not configured
void exportData(java.lang.String file)
throws BayesianAnalyzerManagementException
file - The filename to store the data
BayesianAnalyzerManagementException - If the service is not configured
void importData(java.lang.String file)
throws BayesianAnalyzerManagementException
file - The filename to export data from
BayesianAnalyzerManagementException - IF the service is not configured
void resetData()
throws BayesianAnalyzerManagementException
BayesianAnalyzerManagementException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||