BayesFilterLoadDatabase Method (String, String) |
Loads Bayesian database from disk.
Namespace: MailBee.AntiSpamAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public void LoadDatabase(
string spamFilename,
string nonSpamFilename
)
Public Sub LoadDatabase (
spamFilename As String,
nonSpamFilename As String
)
Parameters
- spamFilename
- Type: SystemString
The full or relative path to the file containing spam samples. - nonSpamFilename
- Type: SystemString
The full or relative path to the file containing non-spam samples.
Exceptions Remarks
If you do not already have a database of spam/non-spam samples, you should
first train the filter and populate the database by calling
TrainFilter(MailMessage, Boolean) method for a significant number of spam and
non-spam messages. You can save the resulting database using
SaveDatabase(String, String) method.
Examples See Also