In [16]:
import fuzzy, pickle
import numpy as np
import re
cpt = pickle.load(open('cpt.pickle'))
vectorizer = pickle.load(open('vectorizer.pickle'))
pos_all = pickle.load(open('pos.pickle'))
def sound_like(s):
'''
Given string of words, returns string of sound equivalents.
'''
sound = fuzzy.nysiis #pick algorithm
word_list = s.split()
sound_list = []
for word in word_list:
if sound(word):
sound_list.append(sound(word))
return ' '.join(sound_list)
def fuzzy_items(items):
'''
Given list of menu items, return list of sound encoded items
'''
return [sound_like(item) for item in items if sound_like(item)]
def rating(p,pos):
if p < pos.mean() - pos.std():
return '***'
elif p < pos.mean() + pos.std():
return '**'
else:
return '*'
def rate_menu(menu):
'''
Given menu as string, each item on separate line, returns rated menu as string.
'''
items = [item.strip() for item in re.split(r'\n[^a-zA-Z]+\n',menu) if item.strip()]
items_sound = fuzzy_items(items)
vectors = vectorizer.transform(items_sound)
for ij in zip(vectors.nonzero()[0], vectors.nonzero()[1]):
vectors[ij] = 1
vectors = np.matrix(vectors.toarray()).transpose()
penalty = []
for item in items_sound:
p = 0
for word in item.lower().split():
if word.strip() not in vectorizer.get_feature_names():
p += 1
penalty.append(p)
penalty = np.matrix(penalty)
word_count = np.matrix([len(item.split()) for item in items_sound])
pos = (cpt*vectors + penalty*-10)/word_count
rated_items = []
for item in zip(pos.tolist()[0], items):
rated_items.append(rating(item[0],pos_all) + '\t' + item[1][:80])
return '\n'.join(rated_items), zip(pos.tolist()[0], items)
In [17]:
menu = ''' Stir-Fried Pork Jowl & Winter Radishes
Fermented black bean, mint, red perilla, steamed rice
7.00
Hainam Chicken Rice
Dressed in shaoxing wine & chicken fat, roasted peanuts, cilantro
11.00
Westlake Rice Porridge
Oxtail, dungeness crab, soft-poached egg, cilantro
11.00
Ma Po Tofu
Ground kurobuta pork shoulder, szechuan peppercorn, chili oil, steamed rice
11.00
Kung Pao Pastrami
Explosive chili, celery, potato, roasted peanut; steamed rice
11.00
Thrice Cooked Bacon
Rice cakes, bitter melon, tofu skin, scallion, black bean, chili oil
11.00
Broccoli Beef Cheek
Gai lan, poached oyster, smoked oyster sauce, steamed rice
10.00
Mongolian Long Beans
Leeks, roasted chili, horseradish, garlic shoots, steamed rice
12.00
Shanghainese Chow Mein
Pulled pork trotter, rock shrimp, pickled mustard greens, napa cabbage
10.00
Salt Cod Fried Rice
Escolar confit, chinese sausage, egg, scallion
13.00
Sizzling Cumin Lamb
Salt & peppered lamb belly, chili-pickled long beans
11.00
Guilin Lamb Noodle Soup
Braised lamb cheek, rice noodle, pickles, peanuts, pea shoots
11.00
Wild Pepper Leaves
Pressed tofu, salted chili broth, pumpkin
12.00
Smoked Beef Brisket Soup Noodles
Cheung fun, mire poix, bok choy, cardamom broth
10.00
Stewed Beef Tongue & Turnips
Tendon terrine, hot mustard, pickled burdock root
'''
In [20]:
print rate_menu(menu)[0]
*** Stir-Fried Pork Jowl & Winter Radishes
Fermented black bean, mint, red perilla,
** Hainam Chicken Rice
Dressed in shaoxing wine & chicken fat, roasted peanuts, cil
*** Westlake Rice Porridge
Oxtail, dungeness crab, soft-poached egg, cilantro
** Ma Po Tofu
Ground kurobuta pork shoulder, szechuan peppercorn, chili oil, steame
** Kung Pao Pastrami
Explosive chili, celery, potato, roasted peanut; steamed ri
** Thrice Cooked Bacon
Rice cakes, bitter melon, tofu skin, scallion, black bean, c
** Broccoli Beef Cheek
Gai lan, poached oyster, smoked oyster sauce, steamed rice
** Mongolian Long Beans
Leeks, roasted chili, horseradish, garlic shoots, steamed r
*** Shanghainese Chow Mein
Pulled pork trotter, rock shrimp, pickled mustard greens,
** Salt Cod Fried Rice
Escolar confit, chinese sausage, egg, scallion
** Sizzling Cumin Lamb
Salt & peppered lamb belly, chili-pickled long beans
** Guilin Lamb Noodle Soup
Braised lamb cheek, rice noodle, pickles, peanuts, pea s
*** Wild Pepper Leaves
Pressed tofu, salted chili broth, pumpkin
** Smoked Beef Brisket Soup Noodles
Cheung fun, mire poix, bok choy, cardamom broth
*** Stewed Beef Tongue & Turnips
Tendon terrine, hot mustard, pickled burdock root
In [1]:
import json
In [2]:
data = json.load(open('details.json'))
In [50]:
sections=[]
def get_items(detail):
'''
Given restaurant, returns (id, name, url, list of menu items)
'''
menu_items = []
#print detail['name'],'\n'
for menu in detail['menus']:
#print menu['menu_name']
for section in menu['sections']:
#sections.append(re.sub(r'[^a-zA-Z]',' ',section['section_name']).lower().strip())
sections.append(section['section_name'].lower().strip())
#print section['section_name']
for subsection in section['subsections']:
#print '\t\t',subsection['subsection_name']
for item in subsection['contents']:
if item['type'] == 'ITEM':
menu_item = [item['name']]
if 'description' in item.keys():
menu_item.append(item['description'])
menu_items.append(' '.join(menu_item))
return detail['id'],detail['name'],detail['website_url'],menu_items, \
detail['lat'], detail['long'], detail['street_address']
# reduce data
restaurants = []
for item in data:
r_id, name, url, menu_items, latitude, longitude, street = get_items(item)
restaurant = {'id':r_id, 'name':name, 'url':url, 'items':menu_items,
'lat':latitude, 'long':longitude, 'street':street }
restaurants.append(restaurant)
In [23]:
%pylab inline
Populating the interactive namespace from numpy and matplotlib
In [30]:
(a,b,c)=hist(pos_all.tolist()[0],bins=50)
vlines((pos_all.mean()-pos_all.std(), pos_all.mean(), pos_all.mean()+pos_all.std()), 0 ,2500, colors='r')
Out[30]:
<matplotlib.collections.LineCollection at 0x73795d0>
In [71]:
recommendations = []
i=0
for resto in restaurants:
i+=1
print i, resto['name']
recommend_item = sorted([item for item in rate_menu('\n\n\n'.join(resto['items']))[1]
if item[0] < pos_all.mean()-pos_all.std()])[-1]
overall = np.array([item[0] for item in rate_menu('\n\n\n'.join(resto['items']))[1]]).mean()
recommendations.append( {'id':resto['id'],'lat':resto['lat'], 'long':resto['long'],
'restaurant':resto['name'], 'street':resto['street'], 'url':resto['url'],
'overall':overall, 'item':recommend_item[1], 'rating':recommend_item[0]} )
1 Enjoy Vegetarian Restaurant
2 Eastern Sea
3 Henry's Hunan Restaurant
4 The Far East Café
5 Tonga Room & Hurricane Bar - Fairmont San Francisco
6 Washington Bakery & Restaurant
7 City Chopsticks
8 Chinatown Restaurant
9 The Pot Sticker Restaurant
10 San Sun Restaurant
11 Imperial Palace
12 Four Seas Restaurant
13 Penang Garden Restaurant
14 Empress of China
15 Grant Palace Restaurant
16 Vungtau Restaurant
17 Bund Shanghai Restaurant
18 New Asia Restaurant
19 Brandy Ho's Hunan Food
20 R & G Lounge
21 El Raigon
22 Green Garden Restaurant
23 Dick Lee BBQ & Dim Sum
24 Z&Y Restaurant
25 Hunan Home's Restaurant
26 Izakaya Ju-Ku
27 Kams
28 Ton Kiang Restaurant
29 Golden Gate Dim Sum Inc
30 Tsing Tao Resturant
31 House of Banquet
32 Creations Dessert House
33 Spices II
34 Burma Superstar
35 Mandalay
36 Spices
37 Dong Bei Mama
38 Tong Palace
39 Lee Hou Restaurant
40 Melisa's Chinese Cuisine
41 Mango Medley
42 Asian American Food Co
43 San Tung Chinese Restaurant
44 South Sea Seafood Village
45 Enjoy Vegetarian Restaurant
46 Dim Sum Bar
47 Ken's Kitchen
48 U-Lee
49 Bamboo Restaurant
50 Ho's Bar & Restaurant
51 Lin Jia
52 Phnom Penh House
53 Tai Chi Restaurant
54 Le Cheval
55 Yang Chow Restaurant
56 Tao Yin Restaurant
57 Ng's Kitchen
58 Restaurant Peony
59 Golden Peacock Restaurant
60 Hong Kong Fast Food
61 Oceanic Restaurant
62 Hot Wok Cafe
63 The Noodle Shop
64 Ono Hawaiian BBQ
65 Little Yangon
66 sweet mango restaurant Burmese,Chinese and Thai
67 Taiwan Restaurant Willow Glen
68 Edna Ray Chinese Restaurant
69 Uncle Chen Restaurant
70 Pearl River Chinese Restaurant
71 Flourishing Garden Restaurant
72 Bay 101
73 Wings Chinese Restaurant
74 Hunan Taste
75 Markos At Bay 101
76 Ichiban Sushi
77 Dak Win Restaurant
78 Great China Restaurant
79 Wing's Chinese Restaurant
80 San Jose Noodle Bar
81 Jasmine Tea House
82 Shiso Chinese & Japanese Cuisine
83 Hunan Chef
84 Wok & Go
85 Nulite Kitchen
86 Pho Bac Hoa Viet
87 China Cafe
88 Alice's Restaurant
89 Lung Shan Restaurant
90 Eric's Restaurant
91 Ma Jong's Asian Diner
92 Good Friends Restaurant
93 Lucky Express
94 Muntean's Soup
95 Eastern Empire
96 Bao Bao Express
97 Panda House
98 New Canton
99 The Mandarin Restaurant
100 Eggroll Stix
101 Korea House
102 Chinois City Cafe
103 Shanghai Garden
104 Indo Cafe
105 Chef Bo
106 Louie's Restaurant & Catering
107 Casino Royale
108 Umeko Buffet
109 Solar Cookers International
110 Panda Wok
111 Panda House
In [89]:
sorted(recommendations, key=lambda x: x['overall'])
Out[89]:
[{'id': u'bdc445eb9b6a0ad19ae3',
'item': u'Logos',
'lat': 37.543595,
'long': -122.308383,
'overall': -9.4576766488986426,
'rating': -8.400173762206144,
'restaurant': u'The Noodle Shop',
'street': u'164 West 25th Ave.',
'url': u'http://www.thenoodleshop.com'},
{'id': u'f9a86143f76a66921587',
'item': u'Gambas Al Ajillo Prawns & Garlic Prawns & garli',
'lat': 37.800632,
'long': -122.407965,
'overall': -8.10988863435648,
'rating': -6.653272284391982,
'restaurant': u'El Raigon',
'street': u'510 Union St.',
'url': u'http://elraigon.com'},
{'id': u'8a3d7ab187fcd777744d',
'item': u'NoYolk Ham, Mixed Nuts [Thap Cam Voi Thit (Ham)]',
'lat': 37.793768,
'long': -122.406114,
'overall': -8.0303771015977095,
'rating': -6.760123987643308,
'restaurant': u'Eastern Sea',
'street': u'720 Grant Ave.',
'url': u'http://easternbakery.com'},
{'id': u'd5eb4c6cced2f2211022',
'item': u'Prawn Cocktail',
'lat': 37.372221,
'long': -121.913036,
'overall': -6.9333660717358363,
'rating': -6.608522388999255,
'restaurant': u'Bay 101',
'street': u'1801 Bering Drive',
'url': u'http://www.bay101.com/'},
{'id': u'16f61964ffc0e0d3d0a2',
'item': u'Winter Melon Soup',
'lat': 37.793451,
'long': -122.404918,
'overall': -6.778008322551897,
'rating': -6.684229511761356,
'restaurant': u'The Far East Caf\xe9',
'street': u'631 Grant Ave.',
'url': u'http://fareastcafesf.com'},
{'id': u'd135e55770710896eae0',
'item': u'Natto W/ Kimchee',
'lat': 37.782196,
'long': -122.478557,
'overall': -6.6576401492995467,
'rating': -6.585163403867817,
'restaurant': u'Izakaya Ju-Ku',
'street': u'1801 Clement St.',
'url': u'http://ju-ku19.com/'},
{'id': u'1da3345bb77bd14b87d8',
'item': u'Dragon Fire Asparagus, Red Peppers, Smoked Honey Hoisin',
'lat': 37.792427,
'long': -122.410093,
'overall': -6.6497713267761611,
'rating': -6.588428016576412,
'restaurant': u'Tonga Room & Hurricane Bar - Fairmont San Francisco',
'street': u'950 Mason St.',
'url': u'http://www.tongaroom.com'},
{'id': u'7ff162aa66d7165a73d4',
'item': u'Shanghainese Chow Mein Pulled pork trotter, rock shrimp, pickled mustard greens, napa cabbage',
'lat': 37.761274,
'long': -122.419392,
'overall': -6.6342464426980365,
'rating': -6.6433898729789,
'restaurant': u'Lung Shan Restaurant',
'street': u'2234 Mission St.',
'url': u'http://www.missionchinesefood.com/'},
{'id': u'c1f0591d88312b19800b',
'item': u'Prawn Cocktail',
'lat': 37.374192,
'long': -121.913782,
'overall': -6.5116919627747656,
'rating': -6.608522388999255,
'restaurant': u'Markos At Bay 101',
'street': u'1801 Bering Drive',
'url': u'http://www.bay101.com/'},
{'id': u'4d67d324ace870352173',
'item': u'Corn Chowder & French Onion',
'lat': 38.579448,
'long': -121.489836,
'overall': -6.5020995199620399,
'rating': -6.611458851778614,
'restaurant': u"Muntean's Soup",
'street': u'1225 J St.',
'url': u'http://munteansoups.com/'},
{'id': u'c252b7f7cbefe0762068',
'item': u'Rare Steak and Beef Meatballs Pho tai, bo vien',
'lat': 37.358384,
'long': -121.890162,
'overall': -6.4330404427990082,
'rating': -6.58914492395346,
'restaurant': u'San Jose Noodle Bar',
'street': u'856 North 13th St.',
'url': u'http://www.sjnoodlebar.com/'},
{'id': u'b2e35567c92f9d0a580a',
'item': u'Stir-Fried Squabs Fillet with Yellow Fungus',
'lat': 37.80067,
'long': -122.271212,
'overall': -6.1996567260171132,
'rating': -6.629823677440979,
'restaurant': u'Restaurant Peony',
'street': u'388 9th St. #288',
'url': u'http://restaurantpeony.com/'},
{'id': u'fbc08dd530cd583406a3',
'item': u'Sach Chrouk Chha Jee Pork tenderloin saut\xe9ed w / mint leaves, green beans and chili sauces.',
'lat': 37.798333,
'long': -122.269284,
'overall': -6.1288853570489632,
'rating': -6.717962539645115,
'restaurant': u'Phnom Penh House',
'street': u'251 8th St.',
'url': u'http://phnompenhhouse.com/'},
{'id': u'2ee1548137f1a44d1f1a',
'item': u'Spaghetti & Meatballs Served w/ parmesan cheese & garlic bread',
'lat': 38.622755,
'long': -121.418679,
'overall': -6.1185321492990825,
'rating': -6.610923983187009,
'restaurant': u'Casino Royale',
'street': u'2052 Auburn Blvd.',
'url': u'http://www.playcasinoroyale.com/'},
{'id': u'd99cb7a1cf74428b296f',
'item': u'Marinated Steamed Bao 12 Pieces\u200d per box',
'lat': 37.754252,
'long': -122.479147,
'overall': -6.0806207265227714,
'rating': -6.646106634216608,
'restaurant': u'Asian American Food Co',
'street': u'1426 Noriega St.',
'url': u'http://www.kingofchinesedumpling.com/'},
{'id': u'05c4111e8fc2af51ca29',
'item': u'Steamed Brown Rice Massa organic California-grown, per person',
'lat': 37.811495,
'long': -122.242552,
'overall': -6.074854034925008,
'rating': -6.666977428514535,
'restaurant': u'Lin Jia',
'street': u'3437 Lakeshore Ave.',
'url': u'http://www.linjiakitchen.com/'},
{'id': u'2feb385a70f4bc717424',
'item': u"Mango Pudding With bird's nest",
'lat': 37.780352,
'long': -122.475479,
'overall': -6.0655669451927707,
'rating': -6.585910448912905,
'restaurant': u'Creations Dessert House',
'street': u'5217 Geary Blvd.',
'url': u'http://www.creationsdessert.com/'},
{'id': u'f202d5a09b5a57d2b7be',
'item': u'Chinese Jello',
'lat': 37.7959835529327,
'long': -122.406996488571,
'overall': -5.9524171644549648,
'rating': -6.904281055971102,
'restaurant': u'Dick Lee BBQ & Dim Sum',
'street': u'716 Jackson St.',
'url': u'http://www.dickleepastry.page.tl'},
{'id': u'5565bd49f17d19dff724',
'item': u'Buena Vista Wines',
'lat': 37.7952073638653,
'long': -122.40675982219,
'overall': -5.9422354337184151,
'rating': -6.758725384797721,
'restaurant': u'Imperial Palace',
'street': u'818 Washington St.',
'url': u'http://imperialpalacesf.com'},
{'id': u'caf2f98f89e740f5354e',
'item': u'Philly Roll Smoked salmon, cream cheese, avocado',
'lat': 38.566188,
'long': -121.482853,
'overall': -5.9351045877438349,
'rating': -6.629360686910766,
'restaurant': u'Solar Cookers International',
'street': u'1919 21st St. # 101',
'url': u'http://solarcooking.org/'},
{'id': u'3b2d39caa189210a58c3',
'item': u'Cucumber Kim Chi',
'lat': 38.573555,
'long': -121.334558,
'overall': -5.8926054664573249,
'rating': -6.595684662353967,
'restaurant': u'Korea House',
'street': u'9729 Folsom Blvd.',
'url': u'http://www.koreahouserestaurant.com/'},
{'id': u'936a04494bb175acf768',
'item': u'Blue Moon',
'lat': 38.573499,
'long': -121.414052,
'overall': -5.8912848503918029,
'rating': -6.712489449063174,
'restaurant': u'Eastern Empire',
'street': u'460 Howe Ave.',
'url': u'http://www.easternempirerestaurant.com/'},
{'id': u'7534e62e89111159cb24',
'item': u'Malay Veggie Tofu',
'lat': 37.795352,
'long': -122.405534,
'overall': -5.8500452663587579,
'rating': -6.603464274289862,
'restaurant': u'Penang Garden Restaurant',
'street': u'728 Washington St.',
'url': u'http://penanggardensf.com/'},
{'id': u'76320a5356d60362dbb9',
'item': u'Chicken Liver & Gizzard Curry',
'lat': 37.7056587931201,
'long': -122.461869820295,
'overall': -5.8460243650869259,
'rating': -6.603681934266136,
'restaurant': u'Little Yangon',
'street': u'6318 Mission St.',
'url': u'http://littleyangon.wordpress.com/menu'},
{'id': u'5ac5b99e759aa3dcd96e',
'item': u'Cold Chicken Feet Dipped in Ginger Vinaigrette',
'lat': 37.763781,
'long': -122.473122,
'overall': -5.8415885313349083,
'rating': -6.590919971241776,
'restaurant': u'South Sea Seafood Village',
'street': u'1420 Irving St.',
'url': u'http://southseaseafoodvillage.com/'},
{'id': u'd5ac30d6c6ac88b61c06',
'item': u'Malibu Breeze Dark rum orange juice, and pineapple juice',
'lat': 37.28878,
'long': -121.887554526329,
'overall': -5.8251180941192668,
'rating': -6.586920050448814,
'restaurant': u'Pearl River Chinese Restaurant',
'street': u'2281 Lincoln Ave.',
'url': u'http://www.pearlriverchinese.com'},
{'id': u'ed82ce4a5df02542b385',
'item': u'Har Gow (Shrimp Dumplings) 4 Pieces',
'lat': 37.7936,
'long': -122.406,
'overall': -5.82275513612153,
'rating': -6.596221526449684,
'restaurant': u'Four Seas Restaurant',
'street': u'731 Grant Ave.',
'url': u'http://www.fourseasr.com'},
{'id': u'ee5baacdb1c71f47b88d',
'item': u'Side Field Green Salad With lemon zesty dressing',
'lat': 38.574869,
'long': -121.381355,
'overall': -5.7864777894761241,
'rating': -6.632703725337413,
'restaurant': u'Chinois City Cafe',
'street': u'3535 Fair Oaks Blvd.',
'url': u'http://www.chinoiscitycafe.com/'},
{'id': u'f4f4c8def4abe6afe707',
'item': u'Stir-fry Gailon With sugar wine sauce',
'lat': 38.558586,
'long': -121.479393498922,
'overall': -5.7670032126897564,
'rating': -6.600483429469025,
'restaurant': u'New Canton',
'street': u'2523 Broadway',
'url': u'http://newcantonsacramento.com'},
{'id': u'c437f4ac9ce12e45fac4',
'item': u'Fire Popped! Spicy Tofu Skin',
'lat': 37.783284,
'long': -122.46651,
'overall': -5.7616046825729859,
'rating': -6.596832349306263,
'restaurant': u'Spices',
'street': u'294 8th Ave.',
'url': u'http://spicesrestaurantonline.com/services__menus'},
{'id': u'67d513db4fbbd7aa07c6',
'item': u'Lemon-Pepper Pappardelle With tofu and exotic mushrooms',
'lat': 37.760433,
'long': -122.504067,
'overall': -5.7323421767694409,
'rating': -6.586396164437994,
'restaurant': u'Mango Medley',
'street': u'3911 Judah St.',
'url': u'http://www.mangomedley.com'},
{'id': u'2c76de53f429d1a6c965',
'item': u'Chicken W/Cash Nuts',
'lat': 37.782615,
'long': -122.469264,
'overall': -5.731138617406546,
'rating': -6.5944969794236785,
'restaurant': u'Tong Palace',
'street': u'933 Clement St.',
'url': u'http://www.tongpalace.com/'},
{'id': u'7e8184a18b9a5ca35996',
'item': u'Ika Squid',
'lat': 37.705934,
'long': -122.461679,
'overall': -5.711733977696297,
'rating': -6.605201292865522,
'restaurant': u'Tao Yin Restaurant',
'street': u'6288 Mission St.',
'url': u'http://www.geeyin.com/'},
{'id': u'242524f4d28e18f8c420',
'item': u'Braised Seafood w/Bamboo Fungus Soup Per person',
'lat': 37.782623,
'long': -122.469405,
'overall': -5.6913593885782161,
'rating': -6.589138618133883,
'restaurant': u'House of Banquet',
'street': u'939 Clement St.',
'url': u'http://www.houseofbanquetsf.com/'},
{'id': u'44fac6d3c3309c5ce584',
'item': u'Kroket Mashed potato filled w/ beef, carrot, & onion',
'lat': 38.582192,
'long': -121.50615,
'overall': -5.6811353318713902,
'rating': -6.70440226240695,
'restaurant': u'Indo Cafe',
'street': u'1100 Front St.',
'url': u'http://www.indo-cafe.com/'},
{'id': u'd05ffe3e6aeb8107022e',
'item': u'Diet Coke',
'lat': 37.743695,
'long': -122.428774,
'overall': -5.6772423040133555,
'rating': -6.626084011139919,
'restaurant': u"Alice's Restaurant",
'street': u'1599 Sanchez St.',
'url': u'http://www.alicesrestaurantsf.com/'},
{'id': u'bd1aeae29e5fe40531bd',
'item': u'Szechwan Country Flavor Chicken',
'lat': 37.780581,
'long': -122.470337,
'overall': -5.6670244076315113,
'rating': -6.584909844170499,
'restaurant': u'Dong Bei Mama',
'street': u'4737 Geary Blvd.',
'url': u'http://www.pandacountrykitchen.com/'},
{'id': u'145198d666fd26508f07',
'item': u'Smoked Beef Shank Cold',
'lat': 37.783169,
'long': -122.464551,
'overall': -5.6601277925181046,
'rating': -6.684559982409449,
'restaurant': u'Spices II',
'street': u'291 6th Ave.',
'url': u'http://spicesrestaurantonline.com/services__menus'},
{'id': u'3b05a7b12605ec163df3',
'item': u'Poached Corn Shrimp',
'lat': 37.783025,
'long': -122.462931275368,
'overall': -5.6410270661070543,
'rating': -6.584722671072686,
'restaurant': u'Lee Hou Restaurant',
'street': u'332 Clement St.',
'url': u'http://leehou.net/'},
{'id': u'b07ab7263a2d66292ab4',
'item': u"Lo Sui Sauce Pig's Ear",
'lat': 37.796826,
'long': -122.407976,
'overall': -5.6391833303876142,
'rating': -6.600945983518085,
'restaurant': u'New Asia Restaurant',
'street': u'772 Pacific Ave.',
'url': u'http://www.sfnewasia.com/'},
{'id': u'c13db71c3d85765c3939',
'item': u'Boiled Sesame Mochi',
'lat': 37.796195,
'long': -122.405923,
'overall': -5.6350568712054354,
'rating': -6.630895097792312,
'restaurant': u'Bund Shanghai Restaurant',
'street': u'640 Jackson St.',
'url': u'http://www.bundshanghaisf.com/'},
{'id': u'fea8758f92dba7ccaea3',
'item': u"Chinese Fruit-Lychee, Dragon's Eye or Mandarin Orange or Sorbet",
'lat': 37.79476,
'long': -122.406323,
'overall': -5.6293058018601903,
'rating': -6.594927300287574,
'restaurant': u'Empress of China',
'street': u'838 Grant Ave.',
'url': u'http://empressofchinasf.com/'},
{'id': u'b8922c20132839a903ad',
'item': u'Island White Fish',
'lat': 37.671964,
'long': -122.464482,
'overall': -5.6117660755940371,
'rating': -6.6026263352438335,
'restaurant': u'Ono Hawaiian BBQ',
'street': u'970 Serramonte Blvd.',
'url': u'http://www.onobbq.com/'},
{'id': u'b991473784ba313678f4',
'item': u'Hot or Iced French Coffee with Condensed Milk',
'lat': 38.48088,
'long': -121.517914,
'overall': -5.600718348964171,
'rating': -6.617878005221684,
'restaurant': u'Pho Bac Hoa Viet',
'street': u'7600 Greenhaven Dr.',
'url': u'http://hoavietonline.com'},
{'id': u'5550f15c91881677dbdc',
'item': u'Philadelphia Roll Smoked salmon, cream cheese, cucumber',
'lat': 37.871778,
'long': -122.267617,
'overall': -5.5804711267719682,
'rating': -6.594210499781438,
'restaurant': u'Ichiban Sushi',
'street': u'2017 Shattuck Ave.',
'url': u'http://www.ichibanberkeley.com/'},
{'id': u'af3dacb50cda3a1775a6',
'item': u'Chocolate Lava Cake Warm and decadent. Served with ice cream',
'lat': 37.304870607048,
'long': -121.8982804136,
'overall': -5.5701657829568054,
'rating': -6.771948466794636,
'restaurant': u'Taiwan Restaurant Willow Glen',
'street': u'1306 Lincoln Ave.',
'url': u'http://taiwanrestaurantsj.com'},
{'id': u'd09492062ce1ac6202ba',
'item': u'Soy Milk',
'lat': 37.7952286763584,
'long': -122.406132817268,
'overall': -5.5460191692260272,
'rating': -6.599950232511528,
'restaurant': u'Washington Bakery & Restaurant',
'street': u'733 Washington St.',
'url': u'http://www.washingtonbakerysf.com'},
{'id': u'caa7c50afa281634fadb',
'item': u'Roast Duck Half',
'lat': 37.780056,
'long': -122.48197,
'overall': -5.5340792137834791,
'rating': -6.591288924632646,
'restaurant': u'Ton Kiang Restaurant',
'street': u'5821 Geary Blvd.',
'url': u'http://www.tonkiang.net/'},
{'id': u'c3c6e822137449bc2001',
'item': u'Vegetarian Lettuce Wrap(4)',
'lat': 37.795273,
'long': -122.405986,
'overall': -5.5133197350306693,
'rating': -6.615436535146276,
'restaurant': u'Chinatown Restaurant',
'street': u'744 Washington St.',
'url': u'http://www.chinatownrestaurantsf.com/'},
{'id': u'6e5ebbc0d7e67b1f4435',
'item': u'Chinese Satay Sauce W/Cuttlefish & Basil',
'lat': 37.760295,
'long': -122.469174,
'overall': -5.5127666097976844,
'rating': -6.6251735600805715,
'restaurant': u'Enjoy Vegetarian Restaurant',
'street': u'754 Kirkham St.',
'url': u'http://www.enjoyveggie.com/'},
{'id': u'2f8789710bff0982d35f',
'item': u'Cube Beef Steak Cubes\u200c of tenderloin marinated in garlic then quickly pan fried on high flame until medium rare.',
'lat': 37.8028645,
'long': -122.2754109,
'overall': -5.502387972019509,
'rating': -6.666530788367252,
'restaurant': u'Le Cheval',
'street': u'Le Cheval',
'url': u'http://www.lecheval.com/'},
{'id': u'6a3a1188c26be9090140',
'item': u'Pork Spareribs Favor',
'lat': 37.782174,
'long': -122.479018,
'overall': -5.4820253227256002,
'rating': -6.593721776082681,
'restaurant': u'Golden Gate Dim Sum Inc',
'street': u'1829 Clement St.',
'url': u'http://www.goldengatedimsumsf.com/'},
{'id': u'a45227fc05103f47652d',
'item': u"Bahama Mama Lots of Bacardi light rum, Meyer's dark rum, house sweet-n-sour, pineapple & orange juice",
'lat': 38.596346,
'long': -121.363252,
'overall': -5.4729855253085056,
'rating': -6.587791703498251,
'restaurant': u'The Mandarin Restaurant',
'street': u'4321 Arden Way',
'url': u'http://www.themandarinrestaurant.com/'},
{'id': u'e8ee996188af2b2918ab',
'item': u'Vegetarian Goose Bean curd roulette',
'lat': 37.796036,
'long': -122.406022,
'overall': -5.4599101833794199,
'rating': -6.617329534721915,
'restaurant': u'Z&Y Restaurant',
'street': u'655 Jackson St.',
'url': u'http://www.zandyrestaurant.com/en/index.html'},
{'id': u'cf7cfad114a5283dfc9c',
'item': u'Lychee 4 Servings',
'lat': 37.54428,
'long': -122.305231,
'overall': -5.4348756214945979,
'rating': -6.597992110902327,
'restaurant': u'Oceanic Restaurant',
'street': u'2507 South El Camino Real',
'url': u'http://www.sanmateooceanic.com/'},
{'id': u'124fcdb1a44d94806792',
'item': u'Sauteed Snowpeas & Water Chestnut',
'lat': 37.795124,
'long': -122.406088,
'overall': -5.4278996296534983,
'rating': -6.61397194976057,
'restaurant': u'Grant Palace Restaurant',
'street': u'737 Washington St.',
'url': u'http://grantpalacesf.com/'},
{'id': u'5383e97d807be919cdd2',
'item': u'Diet Coke',
'lat': 37.868711,
'long': -122.266899,
'overall': -5.4115274907069928,
'rating': -6.626084011139919,
'restaurant': u'Great China Restaurant',
'street': u'2115 Kittredge St.',
'url': u'http://greatchinaberkeley.com/'},
{'id': u'3723b87870ce3846f4b0',
'item': u'Soy Milk',
'lat': 37.753045,
'long': -122.406534,
'overall': -5.3877054405163403,
'rating': -6.599950232511528,
'restaurant': u'Wok & Go',
'street': u'2700 24th St.',
'url': u'http://www.wokandgosf.com/'},
{'id': u'0d6420ef9825fd2e00ff',
'item': u'Lotus Root Lily, vegetables, peas and ginko',
'lat': 37.795841,
'long': -122.405254,
'overall': -5.3862863365856049,
'rating': -6.607148234400569,
'restaurant': u'Enjoy Vegetarian Restaurant',
'street': u'839 Kearny St.',
'url': u'http://www.enjoyveggie.com/'},
{'id': u'e12ad8c612b7557effff',
'item': u"Burmese Style Curry Burma\u200b SuperStar's speciality curry made w/ tomatos. Medium spicy",
'lat': 37.7830303932144,
'long': -122.462544276456,
'overall': -5.3824361315678537,
'rating': -6.633635473462289,
'restaurant': u'Burma Superstar',
'street': u'309 Clement St.',
'url': u'http://www.burmasuperstar.com'},
{'id': u'83a3c7fc3e65d02f3743',
'item': u"Buddha's Delight",
'lat': 37.746917,
'long': -122.427069,
'overall': -5.3787614511050164,
'rating': -6.804839475427061,
'restaurant': u"Eric's Restaurant",
'street': u'1500 Church St.',
'url': u'http://erics.ypguides.net'},
{'id': u'09c97cbbc97e94019e90',
'item': u'Combo C',
'lat': 37.798621,
'long': -122.409172,
'overall': -5.3597504602057979,
'rating': -6.946457870147068,
'restaurant': u'Vungtau Restaurant',
'street': u'708 Vallejo St.',
'url': u'http://sf.yibada.com/yp/9168-%E9%A0%AD%E9%A0%93%E8%B6%8A%E5%8D%97%E7%B2%89-Pho-Vung-Tau-Restaurant.html'},
{'id': u'4a76c37eb7dcb36c57a9',
'item': u'Sweetened Cream Bun',
'lat': 37.308934,
'long': -121.866357,
'overall': -5.3585515947694962,
'rating': -6.618909410074974,
'restaurant': u'Flourishing Garden Restaurant',
'street': u'1650 Monterey Rd.',
'url': u'http://www.flourishinggardenrestaurant.com/'},
{'id': u'55ae26fcae5d9461db29',
'item': u'Smoked Ham',
'lat': 37.793699,
'long': -122.404146,
'overall': -5.3312041437003161,
'rating': -6.62109968246377,
'restaurant': u"Henry's Hunan Restaurant",
'street': u'674 Sacramento St.',
'url': u'http://www.henryshunanrestaurant.com/'},
{'id': u'786ce768346abcaaaca0',
'item': u'Fresh Garden Delight',
'lat': 37.790204,
'long': -122.42064,
'overall': -5.3248176258053403,
'rating': -6.642288980046878,
'restaurant': u'Bamboo Restaurant',
'street': u'1441 Polk St.',
'url': u'http://www.bamboorestaurantpolksf.com'},
{'id': u'5414976f51b2f998ac14',
'item': u'Young Tse River Shrimp',
'lat': 37.79554572,
'long': -122.421707,
'overall': -5.3157965098837803,
'rating': -6.58791741328084,
'restaurant': u'Tai Chi Restaurant',
'street': u'2031 Polk St.',
'url': u'http://www.taichi-sf.com'},
{'id': u'9e3e3607ec6af17b2762',
'item': u'Corn Chowder W/Tofu Soup',
'lat': 37.797624,
'long': -122.423702,
'overall': -5.3155232799230996,
'rating': -6.76417854942982,
'restaurant': u"Ho's Bar & Restaurant",
'street': u'2360 Van Ness Ave.',
'url': u'http://www.hosbarandrestaurant.com'},
{'id': u'1c8b3b3ae7e4a3a41120',
'item': u'Iron Platter Peppered Beef Spicy',
'lat': 37.544887,
'long': -122.284902,
'overall': -5.3138146827259396,
'rating': -6.58474838823753,
'restaurant': u'Hot Wok Cafe',
'street': u'2960 South Norfolk St.',
'url': u'http://www.hotwokcafesanmateo.com/'},
{'id': u'1f191157b9f458b94d1d',
'item': u'Crab Puff',
'lat': 37.741535,
'long': -122.422661,
'overall': -5.3106396607996533,
'rating': -6.633205052502843,
'restaurant': u'Shiso Chinese & Japanese Cuisine',
'street': u'3452 Mission St.',
'url': u'http://www.shisorestaurantsf.com/'},
{'id': u'2ec85646fb25c5bb1668',
'item': u'Yellowtail Roll',
'lat': 38.613087,
'long': -121.516791,
'overall': -5.3064288171745089,
'rating': -6.659979455164949,
'restaurant': u'Good Friends Restaurant',
'street': u'2600 Gateway Oaks Drive',
'url': u'http://goodfriendssacramento.com/'},
{'id': u'a72a73c55bfcb1c91629',
'item': u'Roast Duck Half',
'lat': 37.7773343722629,
'long': -122.463799195606,
'overall': -5.2926218956002424,
'rating': -6.591288924632646,
'restaurant': u"Melisa's Chinese Cuisine",
'street': u'450 Balboa St.',
'url': u'http://melisaschinesecuisine.com'},
{'id': u'bda841ac0d505ceed6ac',
'item': u'Cambodian Small Rice Noodle',
'lat': 37.79512,
'long': -122.407193,
'overall': -5.2767516810885233,
'rating': -6.643000426707092,
'restaurant': u'San Sun Restaurant',
'street': u'848 Washington St.',
'url': u'http://www.sansunrestaurant.com/'},
{'id': u'1a419059733d37bbb3dd',
'item': u'Chen-Do Chicken',
'lat': 37.3070096797784,
'long': -121.9002143819,
'overall': -5.2659656881953509,
'rating': -6.703289783663223,
'restaurant': u'Edna Ray Chinese Restaurant',
'street': u'1181 Lincoln Ave.',
'url': u'http://www.ednaray.com'},
{'id': u'95b918ccc423496a13ba',
'item': u'Green Onion Pancakes Eight pieces per order',
'lat': 37.7830560159043,
'long': -122.419237588744,
'overall': -5.2591125968421375,
'rating': -6.6257168262879516,
'restaurant': u"Ken's Kitchen",
'street': u'700 Polk St.',
'url': u'http://www.kenskitchen.net'},
{'id': u'a35b8f2958f3f54b3343',
'item': u'Chive Dumpling (3)',
'lat': 37.744707,
'long': -122.420292,
'overall': -5.247871686413407,
'rating': -6.618100323044017,
'restaurant': u'Jasmine Tea House',
'street': u'3253 Mission St.',
'url': u'http://www.jasmineteahouse.com/'},
{'id': u'3bdf837818f9aae84483',
'item': u'Entrees are served w/ an egg roll, chow mein & fried rice. All box lunches or dinners come ready to eat w/ fortune cookies, soy sauce, & fork.',
'lat': 37.348327,
'long': -121.895967,
'overall': -5.2312358382222754,
'rating': -6.661542602177297,
'restaurant': u'Wings Chinese Restaurant',
'street': u'131 Jackson St.',
'url': u'http://www.wingsofsanjose.com'},
{'id': u'8b66120521ccbe829cb0',
'item': u'Egg Custer (3) (Sweet)',
'lat': 37.794884,
'long': -122.406896,
'overall': -5.2296906843481574,
'rating': -6.736328939277453,
'restaurant': u'The Pot Sticker Restaurant',
'street': u'150 Waverly Pl.',
'url': u'http://www.thepotsticker.com/'},
{'id': u'ff3fecb08c778415b2be',
'item': u"Chef's Goutmet Chicken",
'lat': 37.775805,
'long': -122.497775,
'overall': -5.1887170597249783,
'rating': -6.9682432490996495,
'restaurant': u'Kams',
'street': u'3624 Balboa St.',
'url': u'http://kamsrestaurant.com/'},
{'id': u'7a1459731455d08fbd26',
'item': u'Family Style B',
'lat': 37.798117,
'long': -122.40468,
'overall': -5.1790459878415991,
'rating': -6.590700577770373,
'restaurant': u'Green Garden Restaurant',
'street': u'434 Broadway',
'url': u'http://www.greengardenrestaurantsf.com/'},
{'id': u'c3dcbc27f208377b6ca3',
'item': u'Mandarin Veluet Chicken',
'lat': 37.7899099158298,
'long': -122.411820797083,
'overall': -5.1740341406362749,
'rating': -6.833593144543606,
'restaurant': u'City Chopsticks',
'street': u'883 Bush St.',
'url': u'http://www.citychopstickssf.com'},
{'id': u'cf02f30efd07a475e24f',
'item': u'Gift Wrapped Chicken 8',
'lat': 38.546913,
'long': -121.453512,
'overall': -5.1706084230431006,
'rating': -6.641320858430382,
'restaurant': u"Louie's Restaurant & Catering",
'street': u'4605 Broadway',
'url': u'http://www.louiescatering.com/'},
{'id': u'b52a1b8078a152f7ff73',
'item': u'Pan Toughed Chicken',
'lat': 37.812007,
'long': -122.247822,
'overall': -5.1646673327223498,
'rating': -6.654636586853869,
'restaurant': u'Yang Chow Restaurant',
'street': u'3211 Grand Ave.',
'url': u'http://www.yangchowrestaurant.com/'},
{'id': u'dd59b0fbeee9ba56255e',
'item': u'Coke / 7 Up Can',
'lat': 37.308987,
'long': -121.899712,
'overall': -5.159845101190669,
'rating': -6.603001501256486,
'restaurant': u'sweet mango restaurant Burmese,Chinese and Thai',
'street': u'1040 Willow St.',
'url': u'http://www.sweetmangosweet.com/'},
{'id': u'2c186634ec244e2d9e5f',
'item': u'Vegetarian Lettuce Wrap',
'lat': 37.785573,
'long': -122.414855,
'overall': -5.158911392042163,
'rating': -6.615436535146276,
'restaurant': u'Dim Sum Bar',
'street': u'620 Ofarrell St.',
'url': u'http://www.dimsumbarsf.com/'},
{'id': u'ac20d7e0c30eba3773d8',
'item': u'Mogolian Chicken',
'lat': 38.637547,
'long': -121.42905,
'overall': -5.1410667135022123,
'rating': -6.593101584768307,
'restaurant': u'Lucky Express',
'street': u'3828 Willow St.',
'url': u'http://www.luckyexpress916.com/'},
{'id': u'44f1a23c22301f79f465',
'item': u'Burmese Style Curry Catfish Steak',
'lat': 37.7851089578919,
'long': -122.464301967993,
'overall': -5.1290115271692871,
'rating': -6.6774149120552035,
'restaurant': u'Mandalay',
'street': u'4348 California St.',
'url': u'http://mandalaysf.com'},
{'id': u'a903f8a8142e5fa852a6',
'item': u'Barbecued Combination Platter',
'lat': 37.794146,
'long': -122.404873,
'overall': -5.118837320125059,
'rating': -6.6769798268913325,
'restaurant': u'R & G Lounge',
'street': u'631 Kearny St.',
'url': u'http://www.rnglounge.com/'},
{'id': u'03704c603f6a5f522bf6',
'item': u'Dragon and Phoenix',
'lat': 37.799686,
'long': -122.271236,
'overall': -5.1104363146865879,
'rating': -6.856799788062347,
'restaurant': u'Golden Peacock Restaurant',
'street': u'825 Webster St.',
'url': u'http://goldenpeacockrestaurant.com/'},
{'id': u'409d02515130f787bc0f',
'item': u'Braised Flounder Fillet',
'lat': 37.763801,
'long': -122.469015,
'overall': -5.1102684569628307,
'rating': -6.608358539430239,
'restaurant': u'San Tung Chinese Restaurant',
'street': u'1031 Irving St.',
'url': u'http://www.santungrestaurant.com/'},
{'id': u'c394062eb57d0500e553',
'item': u'Egg Rolls Fresh cabbage, celery, delicious tree ears, carrots and clear rice noodles prepared in a quick wok for optimum flavor. Served with our special sauce. Not spicy unless requested.',
'lat': 37.797236,
'long': -122.406126,
'overall': -5.108348628793288,
'rating': -6.765496127269434,
'restaurant': u"Brandy Ho's Hunan Food",
'street': u'217 Columbus Ave.',
'url': u'http://www.brandyhos.com'},
{'id': u'5edba998d60b8b841b8a',
'item': u'Mandarin Chop Suey',
'lat': 37.348417,
'long': -121.89585718,
'overall': -5.1066411528914371,
'rating': -7.00777435676978,
'restaurant': u"Wing's Chinese Restaurant",
'street': u'131 Jackson St.',
'url': u'http://www.wingsofsanjose.com'},
{'id': u'd9d8b2e048900986e07a',
'item': u'Lion Head Clay Pot',
'lat': 37.53006,
'long': -122.290509,
'overall': -5.0724007069001971,
'rating': -6.751799602979446,
'restaurant': u'Uncle Chen Restaurant',
'street': u'40 42nd Ave.',
'url': u'http://unclechenrestaurant.com/'},
{'id': u'f301dd4ee228d609b497',
'item': u'Home Style Pot Stickers 6 must try',
'lat': 37.7077,
'long': -122.417318,
'overall': -5.0550357673275519,
'rating': -6.797963054565873,
'restaurant': u"Ng's Kitchen",
'street': u'2511 Geneva Ave.',
'url': u'http://ngskitchen.com/'},
{'id': u'2ade2d3f702d7929c674',
'item': u'Diet coke',
'lat': 38.524842,
'long': -121.41326,
'overall': -5.0538091190777399,
'rating': -6.626084011139919,
'restaurant': u'Bao Bao Express',
'street': u'7724 Fruitridge Rd.',
'url': u'http://boaboachinese.com/'},
{'id': u'12d03e6c422f5cece5e2',
'item': u'House Chop Suey',
'lat': 37.803352,
'long': -122.281776,
'overall': -5.0516096272196718,
'rating': -6.654574249533383,
'restaurant': u'Hong Kong Fast Food',
'street': u'900 Market St.',
'url': u'http://hongkongfastfood.com/'},
{'id': u'ab1168d3b964bbf251aa',
'item': u'Dry-Fried Beef Ho Fun',
'lat': 37.794612,
'long': -122.4180315,
'overall': -5.0510026829318964,
'rating': -6.601869545867585,
'restaurant': u'U-Lee',
'street': u'1468 Hyde St.',
'url': u'http://u-leesf.com'},
{'id': u'89594d1aee82d225637a',
'item': u'Egg fu-yung',
'lat': 38.5747821823526,
'long': -121.464718599196,
'overall': -5.0310037347309731,
'rating': -6.710746480042926,
'restaurant': u'Shanghai Garden',
'street': u'800 Alhambra Blvd.',
'url': u'http://www.shanghaigardenca.com'},
{'id': u'694c4e57cb6126f449f9',
'item': u'Happy Family',
'lat': 37.739061,
'long': -122.416285,
'overall': -5.0176346696382366,
'rating': -7.510762912166913,
'restaurant': u'Hunan Chef',
'street': u'519 Cortland Ave.',
'url': u'http://www.hunanchefsf.com'},
{'id': u'0e98b77c93c0c5a5d08b',
'item': u'Teriyaki Bowl Chopped lettuce, sweet soy glaze',
'lat': 38.576542,
'long': -121.487908,
'overall': -5.0125867659220287,
'rating': -6.752634941413385,
'restaurant': u"Ma Jong's Asian Diner",
'street': u'1431 L St.',
'url': u'http://www.theparkdowntown.com/page.php?url=majongs'},
{'id': u'540661b86d887156e7df',
'item': u'Black Peppered Steak Cubes',
'lat': 38.4552249568936,
'long': -121.402817666531,
'overall': -5.0087703631085354,
'rating': -6.75094131459192,
'restaurant': u'Eggroll Stix',
'street': u'8250 Calvine Rd., #a',
'url': u'http://www.eggrollstix.com'},
{'id': u'40b4a7f02e9f10a20d6c',
'item': u'French Fries',
'lat': 37.751532,
'long': -122.41823,
'overall': -5.0070500634953818,
'rating': -7.3097628938553445,
'restaurant': u'Dak Win Restaurant',
'street': u'2845 Mission St.',
'url': u'http://www.dwchinesefood.com/'},
{'id': u'b0e8b6e85ec1e889472d',
'item': u'Spare rib (8)',
'lat': 38.547484,
'long': -121.396069,
'overall': -4.9940916508267739,
'rating': -7.2717964723723965,
'restaurant': u'Umeko Buffet',
'street': u'8353 Folsom Blvd.',
'url': u'http://www.umekobuffet.com/'},
{'id': u'779b15e8ec9d47f0210c',
'item': u'Soda Small Cans Your choice of flavor.',
'lat': 37.7816372065855,
'long': -122.492709159851,
'overall': -4.9882607786129682,
'rating': -6.717337216802597,
'restaurant': u'Tsing Tao Resturant',
'street': u'3107 Clement St.',
'url': u'http://sftsingtao.com'},
{'id': u'51d81cfed3cf1d7ca32c',
'item': u'Bf-I5. Orange Beef',
'lat': 38.570808,
'long': -121.457403,
'overall': -4.9478363591931105,
'rating': -6.691542565485929,
'restaurant': u'China Cafe',
'street': u'3653 J St.',
'url': u'http://www.chinacafesacramento.com/'},
{'id': u'46f25e61621ff4a37090',
'item': u'Roast Duck (Half)',
'lat': 37.743805,
'long': -122.420888,
'overall': -4.9458428028258483,
'rating': -6.591288924632646,
'restaurant': u'Nulite Kitchen',
'street': u'3319 Mission St.',
'url': u'http://www.nulitekitchen.com'},
{'id': u'cf196349973ba0e01d11',
'item': u'NS5 Da Lao Mein',
'lat': 38.573659,
'long': -121.410281,
'overall': -4.943078512463897,
'rating': -6.591008179359342,
'restaurant': u'Chef Bo',
'street': u'2310 Fair Oaks Blvd.',
'url': u'http://www.chefbosacramento.com/'},
{'id': u'77c99bb592973c5fad67',
'item': u'Two Flavored Prawns',
'lat': 37.796245,
'long': -122.405635,
'overall': -4.9390386084671292,
'rating': -6.646094838589781,
'restaurant': u"Hunan Home's Restaurant",
'street': u'622 Jackson St.',
'url': u'http://hunanhome.ypguides.net/'},
{'id': u'95d39520481af49cf261',
'item': u'Roast Duck Half',
'lat': 38.559975,
'long': -121.486595,
'overall': -4.923927877919497,
'rating': -6.591288924632646,
'restaurant': u'Panda House',
'street': u'2022 Broadway',
'url': u'http://www.pandahousesac.com/'},
{'id': u'6371719ca793050e7e43',
'item': u'Roast Duck (Half)',
'lat': 38.559975,
'long': -121.486595,
'overall': -4.9077815760147967,
'rating': -6.591288924632646,
'restaurant': u'Panda House',
'street': u'2022 Broadway',
'url': u'http://www.pandahousesac.com'},
{'id': u'4da1236319b24c183ab6',
'item': u'Egg Flower Sm/ lg',
'lat': 38.4954137236135,
'long': -121.452009323786,
'overall': -4.8783531592259815,
'rating': -6.730559171830722,
'restaurant': u'Panda Wok',
'street': u'4540 Florin Rd., #a',
'url': u'http://chinesewokfresh.com'},
{'id': u'5d683acaa953a8da04a5',
'item': u'Wine Choice of chardonnay, merlot or white zinfandel',
'lat': 37.35665,
'long': -121.90129535,
'overall': -4.6805785902273014,
'rating': -6.649840086909849,
'restaurant': u'Hunan Taste',
'street': u'998 N. 4th St.',
'url': u'http://hunantaste.net'}]
In [88]:
hist([item['overall'] for item in recommendations],bins=10)
Out[88]:
(array([ 1., 0., 2., 0., 0., 5., 6., 26., 44., 27.]),
array([-9.45767665, -8.97996684, -8.50225704, -8.02454723, -7.54683743,
-7.06912762, -6.59141781, -6.11370801, -5.6359982 , -5.1582884 ,
-4.68057859]),
<a list of 10 Patch objects>)
In [92]:
json.dump(recommendations,open('recommendations.json','w'))
In [91]:
json.dump?
In [103]:
[item['rating'] for item in recommendations if item['id']=='caf2f98f89e740f5354e']
Out[103]:
[-6.629360686910766]
In [ ]:
Content source: scotchka/noodle-in-a-haystack
Similar notebooks: