The current version only works for the English language.

OpenersPrimaryExamplesSection(Spacer1)Examples  (5)

OpenersExampleSection0(Spacer1)Basic 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 Aladdin
Please visit ***'s corporate web site (http://www.***.com/sta/home/0077.htm) for more details regarding these vacancies.", "Probabilities"]

Obtain a (RefLink[ClassifierFunction, paclet:ref/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 Aladdin
Please visit ***'s corporate web site (http://www.***.com/sta/home/0077.htm) for more details regarding these vacancies."]

OpenersExampleSection1(Spacer1)Scope  (1)

Load the (RefLink[ClassifierFunction, paclet:ref/ClassifierFunction]) corresponding to the built-in classifier:

c=Classify["Spam"]

Obtain the possible classes using (RefLink[ClassifierInformation, paclet:ref/ClassifierInformation]):

ClassifierInformation[c,"Classes"]

OpenersExampleSection2(Spacer1)Options  (2)

OpenersExampleSubsection0(Spacer1)ClassPriors  (1)

Use a custom (RefLink[ClassPriors, paclet:ref/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 Aladdin
Please 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|>]

OpenersExampleSubsection1(Spacer1)IndeterminateThreshold  (1)

Use a custom (RefLink[IndeterminateThreshold, paclet:ref/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]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[Classify, paclet:ref/Classify])  ▪  (RefLink[Import, paclet:ref/Import])}, {Related Classifiers:  (RefLink[FacebookTopic, paclet:ref/classifier/FacebookTopic])  ▪  (RefLink[Sentiment, paclet:ref/classifier/Sentiment])  ▪  (RefLink[Language, paclet:ref/classifier/Language])  ▪  (RefLink[ProgrammingLanguage, paclet:ref/classifier/ProgrammingLanguage])}, {Related Formats:  (StringTypeLink[MBOX, paclet:ref/format/MBOX])  ▪  (StringTypeLink[EML, paclet:ref/format/EML])}})}})

({{(Spacer1), ({{(Spacer1)Related Links}, {(WebLink[DocumentationFooterIconsRelatedLinks-EIWL.png(Spacer1)An Elementary Introduction to the Wolfram Language, https://www.wolfram.com/language/elementary-introduction/22-machine-learning.html])(WebLink[: Machine Learning, https://www.wolfram.com/language/elementary-introduction/22-machine-learning.html])}, {(WebLink[DocumentationFooterIconsRelatedLinks-NeuralNetRepository.png(Spacer1)Wolfram Neural Net Repository, https://resources.wolframcloud.com/NeuralNetRepository/])}, {(Spacer1)▪(RefLinkPlain[(Spacer1)Machine Learning, paclet:guide/MachineLearning])}})}})