Load the tokenized Paradise Lost from the Gutenberg Corpus in NLTK
Need help with this assignment?Get an original answer from a qualified tutor — from $10/page.
Get it written →1. Load the tokenized Paradise Lost from the Gutenberg Corpus in NLTK.* https://www.nltk.org/book/ch02.html Links to an external site. ○ Stem or lemmatize the words and find counts. ○ Select the top 20 words and create a bar chart. ○ Exclude stop words and make sure you are including words of all capitalizations in your count. If there are any meaningless “words” (“thus” and single letters, etc.) that are produced in your list of top words, alter your logic to exclude them. ○ Specify why you chose stemming or lemmatization. 2. Perform Vader Sentiment Analysis on the book. ○ Find the 5 most negative, 5 most positive, and 5 most neutral sentences in Paradise Lost*. http://www.nltk.org/howto/sentiment.html ○ Links to an external site. ○ . This may take a while to run, so you can always start with a small subset of the data (100 sentences) and then once your code works as expected, expand it to the whole book and let it run. 3. Explain your findings from the previous question. Are the sentences and their sentiment analysis scores correct? Explain why or why not. *you can pick another book in the Gutenberg Corpus if you’re feeling adventurous or curious. 4. create a word cloud for your results from question 1 (see chapter 21 in your book for how to do this) The book name is: Data Science from Scratch, 2nd Edition
Get a plagiarism-free answer to this question
Send us your instructions and we’ll match you with the best writer in your subject.
- 100% human-written, zero AI
- Turnitin report included
- Confidential — we never share your data
- Free revisions & refunds
