Compsci 101, Recommender
This exercise is for collaborative work during class. Do not fill out early!
Sign in to Google to save your progress. Learn more
Consider a part of the movie data file for Recommender. Each recommendation is on three lines. The first line is the rater, the second line is the title of the movie rated, and the third line is the rating.   The rating is one of the numbers: -5, -3, -1, 1, 3, 5
student1398
She's Out of My League
1
student1321
The Simpsons Movie
1
student1338
Kill Bill: Vol. 2
1
student1364
Avatar
3
student1205
The Tourist
5
...
How does one process a datafile when three lines of data represent one item (such as one rating with the information of a customer, movie title and their rating)? *
Required
Consider the restaurant data file for Recommender. One line represents a rater followed by several lines that rate a restaurant by that rater. Each of those lines has a restaurant in parenthesis followed by a rating in parentheses. More raters and their ratings follow.  A rater may not rate every restaurant. Note that restaurants are always one word. Raters may be more than one word.
Sarah Lee
(DivinityCafe)(3)
(IlForno)(3)
(TheSkillet)(-3)
(LoopPizzaGrill)(3)
(FarmStead)(3)
(Tandoor)(5)
(PandaExpress)(-3)
Melanie
(McDonalds)(1)
(Tandoor)(3)
(DivinityCafe)(5)
(TheCommons)(3)
(TheSkillet)(1)
(IlForno)(3)
(PandaExpress)(3)
J J
(TheSkillet)(1)
(McDonalds)(1)
(LoopPizzaGrill)(-1)
(Tandoor)(3)
(FarmStead)(1)
(PandaExpress)(1)
Sly one
(TheCommons)(3)
(Tandoor)(3)
(DivinityCafe)(5)
(TheSkillet)(3)
(IlForno)(1)
(LoopPizzaGrill)(3)
Sung-Hoon
(LoopPizzaGrill)(5)
(McDonalds)(1)
(Tandoor)(-3)
(IlForno)(-1)
(TheSkillet)(-3)
(FarmStead)(-1)
(PandaExpress)(3)
(TheCommons)(1)
Nana Grace
(IlForno)(3)
(LoopPizzaGrill)(-5)
(DivinityCafe)(5)
(McDonalds)(-1)
(TheCommons)(3)
(Tandoor)(1)
Harry
(McDonalds)(-3)
(TheCommons)(5)
(DivinityCafe)(5)
(FarmStead)(3)
(TheSkillet)(1)
(LoopPizzaGrill)(-1)
(PandaExpress)(-5)
Wei
(FarmStead)(1)
(McDonalds)(-1)
(DivinityCafe)(1)
(LoopPizzaGrill)(3)
(TheCommons)(3)
(Tandoor)(5)
How does one process one rater in the file whose recommendations are spread over an undetermined number of lines of ratings. *
Required
Consider the list of restaurants and dictionary you must build for the restaurant data
How do you get the data above into  the format below?
List of restaurants
Dictionary of rater to list of ratings
Names and Netids below
Names (comma separated) *
netid *
netid (partner)
netid (partner)
netid (partner)
Submit
Clear form
Never submit passwords through Google Forms.
This content is neither created nor endorsed by Google. Report Abuse - Terms of Service - Privacy Policy