Professional Documents
Culture Documents
Import From Import: 'Gutenberg' 'Punkt'
Import From Import: 'Gutenberg' 'Punkt'
In [21]: nltk.download('gutenberg')
nltk.download('punkt')
Out[21]: True
Enter Barnardo a
7 Fi d th
localhost:8891/notebooks/Exp4_TSA.ipynb#
b f d i th l t d 1/2
8/17/23, 9:24 PM Exp4_TSA - Jupyter Notebook
7. Find the number of words in the selected corpus
First 5 sentences:
[The Tragedie of Hamlet by William Shakespeare 1599]
Actus Primus.
Scoena Prima.
Enter Barnardo and Francisco two Centinels.
Barnardo.
Who's there?
localhost:8891/notebooks/Exp4_TSA.ipynb# 2/2