In this particular project, we are going to work on the inaugural corpora from the nltk in Python. We will be looking at the following speeches of the Presidents of the United States of America:
(Hint: use .words(), .raw(), .sent() for extracting counts)
2.1 Find the number of characters, words, and sentences for the mentioned documents. – 3 Marks
2.2 Remove all the stopwords from all three speeches. – 3Marks
2.3 Which word occurs the most number of times in his inaugural address for each president? Mention the top three words.(after removing the stopwords) – 3Marks
2.4 Plot the word cloud of each of the speeches of the variable. (after removing the stopwords) – 3Marks [ refer to the End-to-End Case Study done in the Mentored Learning Session ]
Code Snippet to extract the three speeches:
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here