"Spam" (Built-in Classifier)

Detect whether an email is spam from its content.

Classes

Details

  • The current version only works for the English language.

Examples

open allclose all

Basic Examples  (2)

Use the "Spam" built-in classifier to detect if an email is spam from its content:

Obtain the probabilities for the possible classes:

Obtain a ClassifierFunction for this classifier:

Apply the classifier to a an email:

Scope  (1)

Load the ClassifierFunction corresponding to the built-in classifier:

Obtain the possible classes using Information:

Options  (2)

ClassPriors  (1)

Use a custom ClassPriors to restrict the possible outputs:

IndeterminateThreshold  (1)

Use a custom IndeterminateThreshold: