Click or drag to resize

BayesianMailFilter Class

Represents Bayesian spam filter. You can use SpamFilterTeacher to teach and assess the accuracy of the filter.
Inheritance Hierarchy
SystemObject
  Limilabs.Mail.Tools.SpamBayesianMailFilter

Namespace:  Limilabs.Mail.Tools.Spam
Assembly:  Mail (in Mail.dll) Version: 3.0.23341.1754
Syntax
public class BayesianMailFilter : ISpamFilter

The BayesianMailFilter type exposes the following members.

Constructors
  NameDescription
Public methodBayesianMailFilter
Initializes a new instance of the BayesianMailFilter class
Top
Properties
  NameDescription
Public propertyHamBias
Gets or sets the overall probability that any given message is not spam (is "ham") (Pr(H))
Public propertySpamBias
Gets or sets the overall probability that any given message is spam (Pr(S))
Public propertySpamThreshold
Gets or sets the spam threshold: IsSpam = SpamProbability > SpamThreshold
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExamine
Examines specified message checking the probability of the message being spam.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLearnHam
Use this method to teach the filter that specified message is not spam (is ham).
Public methodLearnSpam
Use this method to teach the filter that specified message is spam.
Public methodLoad
Loads all words used by the filter from specified file.
Public methodLoadPrevious Obsolete.
Loads all words used by the filter from specified file (old version).
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSave
Saves all words used be the filter to specified file.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also