Question: Objectives: Learn more about working with NLTK Learn more about applying some basic text processing functions Instructions: Submit only one PDF file (Fname_Lname_Assignment_1) The assignment

 Objectives: Learn more about working with NLTK Learn more about applying

some basic text processing functions Instructions: Submit only one PDF file (Fname_Lname_Assignment_1)

Objectives: Learn more about working with NLTK Learn more about applying some basic text processing functions Instructions: Submit only one PDF file (Fname_Lname_Assignment_1) The assignment questions are based on lectures delivered. Also, you might have to research on your own to answer a few questions. Consider the following text for the questions below: Video provides a powerful way to help you prove your point. When you click Online Video, you can paste in the embed code for the video you want to add. You can also type a keyword to search online for the video that best fits your document. To make your document look professionally produced, Word provides header, footer, cover page, and text box designs that complement each other. For example, you can add a matching cover page, header, and sidebar. Click Insert and then choose the elements you want from the different galleries. Themes and styles also help keep your document coordinated. When you click Design and choose a new Theme, the pictures, charts, and SmartArt graphics change to match your new theme. When you apply styles, your headings change to match the new theme. Save time in Word with new buttons that show up where you need them. To change the way a picture fits in your document, click it and a button for layout options appears next to it. When you work on a table, click where you want to add a row or a column, and then click the plus sign. Reading is easier, too, in the new Reading view. You can collapse parts of the document and focus on the text you want. If you need to stop reading before you reach the end, Word remembers where you left off - even on another device. Read the above text into a variable. E.g., sample_text = Video provides a powerful ..... Answer the following questions: 1. Add a snapshot of your code for the following tasks (20 points): a. Converting the given text into uppercase b. Converting the given text into lowercase c. Find how many times the word click (case insensitive) appeared in the given text. d. Show the top 5 most occurring words in the given text. 2. Add a snapshot of your code that prints number of lines and number of words in this given text (10 points). 3. Add a snapshot of your code that makes a call to a user-defined function to count the number of lines and number of words (as in Q.2). (10 points) 4. Generate cumulative frequency distribution using top 40 words of the given text (10 points). Objectives: Learn more about working with NLTK Learn more about applying some basic text processing functions Instructions: Submit only one PDF file (Fname_Lname_Assignment_1) The assignment questions are based on lectures delivered. Also, you might have to research on your own to answer a few questions. Consider the following text for the questions below: Video provides a powerful way to help you prove your point. When you click Online Video, you can paste in the embed code for the video you want to add. You can also type a keyword to search online for the video that best fits your document. To make your document look professionally produced, Word provides header, footer, cover page, and text box designs that complement each other. For example, you can add a matching cover page, header, and sidebar. Click Insert and then choose the elements you want from the different galleries. Themes and styles also help keep your document coordinated. When you click Design and choose a new Theme, the pictures, charts, and SmartArt graphics change to match your new theme. When you apply styles, your headings change to match the new theme. Save time in Word with new buttons that show up where you need them. To change the way a picture fits in your document, click it and a button for layout options appears next to it. When you work on a table, click where you want to add a row or a column, and then click the plus sign. Reading is easier, too, in the new Reading view. You can collapse parts of the document and focus on the text you want. If you need to stop reading before you reach the end, Word remembers where you left off - even on another device. Read the above text into a variable. E.g., sample_text = Video provides a powerful ..... Answer the following questions: 1. Add a snapshot of your code for the following tasks (20 points): a. Converting the given text into uppercase b. Converting the given text into lowercase c. Find how many times the word click (case insensitive) appeared in the given text. d. Show the top 5 most occurring words in the given text. 2. Add a snapshot of your code that prints number of lines and number of words in this given text (10 points). 3. Add a snapshot of your code that makes a call to a user-defined function to count the number of lines and number of words (as in Q.2). (10 points) 4. Generate cumulative frequency distribution using top 40 words of the given text (10 points)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!