Wolfram Language

Open live version

Determine If a Text Is Prose or Poetry

Make a function that determines whether a Shakespearean text is prose or poetry.


code

X
X
X

how it works

Gather examples of Shakespearean poetry and prose to train a classifier:

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

Make a classifier function using the training examples:

In[3]:=
X
Out[3]=

Test the classifier on Shakespearean prose not in the training set:

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

Test the classifier on Shakespearean poetry not in the training set:

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