Wolfram Language

Live Version Coming Soon Check out other examples

Determine the Author of a Text

Make a function that determines the author of a text.


code

X
X
X
X

how it works

Import examples of the writings of Shakespeare, Oscar Wilde, and Victor Hugo to train a classifier:

In[1]:=
X
In[2]:=
X
In[3]:=
X

Make a classifier function with the training set:

In[4]:=
X
Out[4]=

Test the classifier on texts not in the training set:

In[5]:=
X
In[6]:=
X
Out[6]=