"FacebookTopic" (Built-in Classifier)

Determine which topic a Facebook post is about.

Classes

    Out[1]//Short=

Details

  • This classifier attempts to infer the topic of a text.
  • This classifier has been trained on Facebook posts, but can be used for other texts as well.
  • The input text should typically be one or a few sentences.
  • This classifier assumes the topic of the text is unique. The probabilities reflect the belief in these topics, not the proportion of topics.
  • The current version only works for the English language.

Examples

open allclose all

Basic Examples  (2)

Use the "FacebookTopic" built-in classifier to detect the topic of a Facebook post:

In[1]:=
Click for copyable input
Out[1]=

Classify multiple examples:

In[2]:=
Click for copyable input
Out[2]=

Unrecognized topics or languages will return Indeterminate:

In[3]:=
Click for copyable input
Out[3]=

Obtain the probabilities for the 3 most likely classes:

In[4]:=
Click for copyable input
Out[4]=

Obtain a ClassifierFunction for this classifier:

In[1]:=
Click for copyable input
Out[1]=

Apply the classifier to a list of texts:

In[2]:=
Click for copyable input
Out[2]=

Scope  (1)

Options  (3)

Neat Examples  (1)

See Also

Classify  TextCases  TextSentences  WolframLanguageData

Related Models