SpamAnalyzerTrainFilter Method (String, Boolean) |
Learns from the specified string as from spam or non-spam source.
Namespace:
Aspose.Email.AntiSpam
Assembly:
Aspose.Email (in Aspose.Email.dll) Version: 20.2
Syntax public void TrainFilter(
string text,
bool isSpam
)
Public Sub TrainFilter (
text As String,
isSpam As Boolean
)
public:
void TrainFilter(
String^ text,
bool isSpam
)
member TrainFilter :
text : string *
isSpam : bool -> unit
Parameters
- text
- Type: SystemString
A string value to train the Bayesian filter. - isSpam
- Type: SystemBoolean
True if specified text is a spam; false if it's a legitimate text.
Exceptions See Also