Question: Please answer following questions along with Python code and its result. Make sure to import NLTK 1. Read in some text from a corpus, tokenize
Please answer following questions along with Python code and its result. Make sure to import NLTK
1. Read in some text from a corpus, tokenize it, and print the list of all wh-word types that occur. (wh-words in English are used in questions, relative clauses, and exclamations: who, which, what, and so on.) Print them in order. Are any words duplicated in this list, because of the presence of case distinctions or punctuation?
2. Write code to access a favorite web page and extract some text from it. For example, access a weather site and extract the forecast top temperature for your town or city today.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
