logo Use SA10RAM to get 10%* Discount.
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Jack DawsonTechnical writing
(5/5)

903 Answers

Hire Me
expert
Adam CooperData mining
(5/5)

988 Answers

Hire Me
expert
StatAnalytica ExpertAccounting
(5/5)

738 Answers

Hire Me
expert
Victor BarbeauuLaw
(5/5)

714 Answers

Hire Me
Others
(5/5)

Star Wars is the quintessential struggle between the forces of good and evil. In this homework we apply our data science skills to explore the story of a young lad who dreams of adventure in a galaxy far far away.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Homework 8:

 

Star Wars is the quintessential struggle between the forces of good and evil. In this homework we apply our data science skills to explore the story of a young lad who dreams of adventure in a galaxy far far away.

 

Expectations

We expect you to write your code in a modular style using a well-defined collection of functions. The functions you implement are totally at your discretion. As always, you will be graded on a) correctness, b) code design and efficiency, and c) documentation and style. You may not use Pandas, numpy, or any library such as NLTK that would trivialize some parts of the implementation. Do your best. Or do not do your best. There is no try.

 

What you're practicing in this assignment

- String processing and sentiment analysis

- dictionaries and other data structures

- Writing functions

 

Requirements

 

Read the data. Load file, starwars.txt, contains the entire script of the Star Wars original movie, but in a nicely formatted .CSV file with three columns:

 

line_number: 1, 2, 3, ….

character: The name of the character who is speaking, e.g., LUKE, VADER, etc.

dialog: The character’s spoken line.

 

For example:

 

.

.

641|LEIA|This is some rescue. When you came in here, didn't you have a plan for getting out? 642|HAN|He's the brains, sweetheart.

643|LUKE|Well, I didn't... 644|HAN|What the hell are you doing?

645|LEIA|Somebody has to save our skins. Into the garbage chute, wise guy.

.

.

 

Note that each column is delimited by a vertical bar ‘|’ character rather than a comma because commas in the dialog column might otherwise cause you some difficulty when parsing the dataset.

 

Read the data into a list of dictionaries, as you did with the Blue Bikes data in HW7. Each dictionary represents one line from the movie where keys are column names (line_number, character, dialogue) and values are the values for that line of dialogue. Do not clean or modify the dialogue text as you store it in your data structure. Simply leave it as is.

 

(5/5)
Attachments:

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme

Get Free Quote!

356 Experts Online