"Spam" (Built-in Classifier)
-
See Also
- Classify
- Import
-
- Classifiers
- FacebookTopic
- Sentiment
- Language
- ProgrammingLanguage
-
- Formats
- MBOX
- EML
- Related Guides
-
-
See Also
- Classify
- Import
-
- Classifiers
- FacebookTopic
- Sentiment
- Language
- ProgrammingLanguage
-
- Formats
- MBOX
- EML
- Related Guides
-
See Also
"Spam" (Built-in Classifier)
Detect whether an email is spam from its content.
Classes
Examples
open all close allBasic Examples (2)
Use the "Spam" built-in classifier to detect if an email is spam from its content:
Classify["Spam", "Dear recipient,*** Technologies announces the beginning of a new unprecendented global employment campaign.reviser yeller winers butchery twenties
Due to company's exploding growth *** is expanding business to the European region.During last employment campaign over 1500 people worldwide took part in ***'s business
and more than half of them are currently employed by the company.And now we are offering you
one more opportunity to earn extra money working with *** Technologies.druggists blame classy gentry Aladdin
We are looking for honest,responsible,hard-working people that can dedicate 2-4 hours of their
time per day and earn extra Â$300-500 weekly.All offered positions are currently part-time
and give you a chance to work mainly from home.lovelies hockey Malton meager reordered
Please visit ***'s corporate web site (http://www.***.com/sta/home/0077.htm) for more details regarding these vacancies."]Obtain the probabilities for the possible classes:
Classify["Spam", "Dear recipient,*** Technologies announces the beginning of a new unprecendented global employment campaign.reviser yeller winers butchery twenties
Due to company's exploding growth *** is expanding business to the European region.During last employment campaign over 1500 people worldwide took part in ***'s business
and more than half of them are currently employed by the company.And now we are offering you
one more opportunity to earn extra money working with *** Technologies.druggists blame classy gentry AladdinPlease visit ***'s corporate web site (http://www.***.com/sta/home/0077.htm) for more details regarding these vacancies.", "Probabilities"]Obtain a ClassifierFunction for this classifier:
c = Classify["Spam"]Apply the classifier to a an email:
c["Dear recipient,
***
Technologies announces the beginning of a new unprecendented global employment campaign.reviser yeller winers butchery twenties
Due to company's exploding growth *** is expanding business to the European region.During last employment campaign over 1500 people worldwide took part in ***'s business
and more than half of them are currently employed by the company.And now we are offering you
one more opportunity to earn extra money working with *** Technologies.druggists blame classy gentry AladdinPlease visit ***'s corporate web site (http://www.***.com/sta/home/0077.htm) for more details regarding these vacancies."]Scope (1)
Load the ClassifierFunction corresponding to the built-in classifier:
c = Classify["Spam"]Obtain the possible classes using Information:
Information[c, "Classes"]Options (2)
ClassPriors (1)
Use a custom ClassPriors to restrict the possible outputs:
Classify["Spam", "Dear recipient,
***
Technologies announces the beginning of a new unprecendented global employment campaign.reviser yeller winers butchery twenties
Due to company's exploding growth *** is expanding business to the European region.During last employment campaign over 1500 people worldwide took part in ***'s business
and more than half of them are currently employed by the company.And now we are offering you
one more opportunity to earn extra money working with *** Technologies.druggists blame classy gentry AladdinPlease visit ***'s corporate web site (http://www.***.com/sta/home/0077.htm) for more details regarding these vacancies.", ClassPriors -> <|False -> 0.4, True -> 0.6|>]IndeterminateThreshold (1)
Use a custom IndeterminateThreshold:
Classify["Spam", "Dear recipient,
***
Technologies announces the beginning of a new unprecendented global employment campaign.reviser yeller winers butchery twenties
Due to company's exploding growth *** is expanding business to the European region.During last employment campaign over 1500 people worldwide took part in ***'s business
and more than half of them are currently employed by the company", IndeterminateThreshold -> 0.7]See Also
Classifiers: FacebookTopic Sentiment Language ProgrammingLanguage
Related Guides
History
Introduced in 2018 (11.3)