Determine If a Text Is Prose or Poetry
Make a function that determines whether a Shakespearean text is prose or poetry.
how it works
Gather examples of Shakespearean poetry and prose to train a classifier:
Make a classifier function using the training examples:
Test the classifier on Shakespearean prose not in the training set:
Test the classifier on Shakespearean poetry not in the training set: