State of the union code, Other Subject

Assignment Help:

1)  The average number of sentences per word over time

Do this two ways:

First, using a simple regex that splits on puntuation. Second, using the natural language toolkit's sentence tokenizer.
2)  The average number of unique words per 100 words over time

    - remove common words ( see the lecture slide for a list )

Do this two ways:

First: assume that different words are all unique, even if they share suffixes ( like run and running )

Second: using the stemming code from the NLTK.

Make sure that you sort the speeches by their date, and write the data into a text file with two columns: date and statistic.

EC) Build a word cloud, as seen in the slides from lectures 11 and 12

Part 2: Collect an interesting web statistic.

Use urlweb and a website of your choice to collect a statistic. Write a one paragraph description of your statistic at the top of the code
file.

Examples include sports game data, weather statistics, name statistics, etc.


Related Discussions:- State of the union code

Explain what is meant by under-insurance, Question: a) Explain what is...

Question: a) Explain what is meant by under-insurance and why clients engage in same? b) Penny Sue insures her car for Rs 500,000 for a one-year period. The market value o

Case of doubt over ethical practice, Question 1: (a) Explain in which ...

Question 1: (a) Explain in which circumstances, when compliants are made, these are not pursued? (b) Discuss the ways in which psychologists can avoid pitfalls. Questi

Weather service, The National Weather Service has recently faced downsizing...

The National Weather Service has recently faced downsizing due to a significantpersonnel shift in the Obama budget.  The White House budget removed one employee from each of the 12

Explain Conditional selection, Explain Conditional selection. Conditio...

Explain Conditional selection. Conditional selection: While a marker is instructed to establish a connection from a specified incoming trunk to a specified outgoing trunk, it

History, to help cook food,the people in this period created_?

to help cook food,the people in this period created_?

Competition can tame leviathan behaviour-discuss, Problem 1: With globa...

Problem 1: With globalisation, there is a need for sustainable local governments. Justify your answer. Problem 2: Competition can tame leviathan behaviour. Discuss.

Defaulters shall be prosecuted, QUESTION At a leisure resort, there is ...

QUESTION At a leisure resort, there is the following signpost as approved by the Permanent Secretary: Men are not allowed to walk on this area. Owners of animals like dogs shou

Factors effecting differential scanning calorimeter, brief explanation of f...

brief explanation of factors effecting differential scanning calorimeter

Galileo telescope, What inspired Galileo to improve the telescope

What inspired Galileo to improve the telescope

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd