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

Sentence, how would you fix this sentence... The fact that he is in an alle...

how would you fix this sentence... The fact that he is in an alley, bleeding on the ground, a couple of things are going through his mind; one is “That was a fierce rumble. They go

Environmental conservation and restoration, Environmental Conservation and ...

Environmental Conservation and Restoration: The Conservation & Restoration Ecology major teaches students to employee ecological principles to restore terrestrial systems (, range

What makes a film a documentary?, What Makes a Film a Documentary? In g...

What Makes a Film a Documentary? In general, documentary films focus on real life and include footage of events as they happened. A movie about World War II might feature actor

HR Generalist, what is the best recruitment approach of HR Generallist

what is the best recruitment approach of HR Generallist

Spcial science.., why did African American''s migrate TO united states?

why did African American''s migrate TO united states?

Leo Tolstoy?, Hello, I am writing to inquire about an English phrase I''ve ...

Hello, I am writing to inquire about an English phrase I''ve heard once. What does it mean to go Anna Karenina on someone? Thank you in advance for answering my question.

Visual art of the united states, Visual art of the United States: Visual a...

Visual art of the United States: Visual arts of the United States refer to the history of painting and visual art in the United States. In the late eighteenth and early nineteenth

Explain the relation between mental health and suicide, Question 1: (a)...

Question 1: (a) Explain the relation between mental health and suicide. (b) Discuss the other conditions predisposing individuals toward suicide. Question 2: (a) Dis

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