In [1]:
%pylab inline
import json
from sklearn.feature_extraction.text import CountVectorizer, TfidfVectorizer
from sklearn.naive_bayes import MultinomialNB, BernoulliNB
from sklearn.decomposition import SparsePCA, NMF
from scipy import sparse
import pickle


Populating the interactive namespace from numpy and matplotlib

In [2]:
def sound_like(s):
    '''
    Given string of words, returns string of sound equivalents.
    '''
    import fuzzy
    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)

In [3]:
data = json.load(open('details.json'))

In [56]:
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

In [57]:
# reduce data
restaurants = []
for item in data:
    r_id, name, url, menu_items = get_items(item)
    restaurant = {'id':r_id, 'name':name, 'url':url, 'items':menu_items}
    restaurants.append(restaurant)


Lunch Special‌
Appetizer‌
Soup‌
House Specials‌
Vegetable‌
Curry & Spicy‌
Tofu & Bean Curd‌
Chow Mein and Noodle Soup‌
Rice‌
Drinks‌
Lunch Special‌
Lunch Special‌
Chow Mein /Fried Rice/Noodle Soup‌
Appetizer‌
Soup‌
Deluxe Choice‌
Appetizer‌
Soup‌
House Special‌
Bamboo Basket Dishes‌
Vegetable‌
Wok Simnered or Clay Pot Dishes‌
Spicy‌
Tofu and Bean Curd‌
Chow Mein‌
Noodle Soup‌
Rice‌

Appetizers‎
Hunan Salads
Entrees
Smoked Specialties‎
Spicy. Not Hot Dishes
Vegetable Dishes
Noodles‎
Rice Plates
Sample Dishes
Banquet Facilities‎
Option 1
Entrees
Option 2‎
Option 3
Buffet Menu

Comfort Meal‌
Comfort Meal‌
Comfort Meal‌
Chardonnay‌
Cabernet Sauvignon‌
California Blush‌
Merlot‌
Special Beverages‌
Tropical Drinks‌
We Proudly Present‌
Salads‌
Tonga Specialties‌
Spring Rolls‌
Steamed Dumplings‌
Soups‌
Wok & Roll‌
Tonga Traditions‌
From the Fire‌
Rice‌
Vegetables‌
Keiki‌

Virgin Cocktails‌
Cake​
Bread​
Porridge​
Wonton & Soup Noodles​
Rice Plates​
Fried Rice​
Soup​
Pan Fried Noodle & Fun​
La Noodles​
Chef Special​
Baked Rice or Spaghetti​
Special Suacks​
Instant Noodle or Macaroni​
Vegetables​
Clay Pot​
Curry Seafood Over Rice​
Sandwich​
Pearl Milk Tea Special​
Hot Beverage​
Popular Items​
Appetizers and Dim Sum​
Soup​
Vegetarian Special​
Fowl​
Seafood​
Pork​
Beef and Lamb​
Chow Mein and Chow Fun​
House Special​
Iron Plate​
Rice Plate​
Beverages​

Lucky Bite‎
Chinatown Adventure
Asian Delight
Golden Gate Deluxe‎
Simply Delicious‎
Seafood Special
Chinatown Special
Emperor's Choice‎
Pork‎
Seafood
Chicken
Beef‎
Vegetarian
Soup‎
House Specialties
Dim Sum
Pork‎
Beef, Lamb
Seafood
Fowl‎
Vegetables and Tofu
Cold Noodles
Chow Mein, Fried Rice‎
Beverages
Appetizers‌
Noodle Soup Style‌
Saday Noodles Soup‌
Won Ton‌
Leek Dumpling‌
Beef Noodle Soup‌
Vermicelli (Cold & Dry)‌
Congee‌
Fried Pure Rice Noodles‌
Chow Fun, Mein, Vermicelli, Lo Mein & Crispy Fried Noodle‌
Soup‌
House Specialty‌
Shrimp‌
Beef‌
Chicken‌
Pork‌
Egg Foo Yung‌
Vegetables‌
Fried Rice‌
Rice Plate‌
Vegetarian‌
Beverages‌
Dessert‌




Group Menus - Lunch‌
Group Menus - Dinner‌
Group Menus - Dim Sum‌

Family Gourmet Dinners‌
Gourmet Seafood Delights‌
Appetizer‌
Soups‌
Seafood Entrees‌
Beef Entrees‌
Pork Entrees‌
Duck Entrees‌
Chicken Entrees‌
Sizzling Iron Platter Entrees‌
Clay Pot Entrees‌
Vegetable Entrees‌
Bean cake entrees‌
Chow Mein Entrees‌
Chow Fun Entrees‌
Fried Rice Entrees‌
Desserts‌
By the Glass‌
By the Bottle‌
Special Cocktails‌
Non-Alcoholic Beverages‌
Beers‌
Appetizers‌
Soup‌
Poultry‌
Pork/Beef/Lamb‌
Vegetables‌
Seafood‌
Siggling Plates‌
Lunch Specials‌
Noodles‌
Rice Dishes‌
Vegetables Dishes‌
Dessert‌
Beverages‌
Soft Drinks‌
Sake and Beer‌
Appetigers‌
Soup‌
Poultry‌
Pork/Beef/Lamb‌
Vegetables‌
Seafood‌
Siggling Plates‌
Lunch Specials‌
Noodles‌
Rice Dishes‌
Vegetable Dishes‌
Dessert‌
Beverages‌
Soft Drinks‌
Sake & Beer‌
The Princess​
Soup of the Day​
The Emperor​
Princess Choice​
Empress Delight​
Empress Festive​
Empress Gourmet​
Dessert​
The princess​
Steamed Rice - Tea - Chinese Cookies​
The empress​
Steamed Rice Tea Chinese Cookies​
The emperor​
Appetizers​
Seafood​
Poultry​
Meat​
Vegetable​
Desserts​
Princess choice​
Empress Specialty Soup​
Steamed Rice​
Empress delight​
Steamed Rice​
Empress festive​
Steamed Rice​
Empress gourmet​
Dessert​

Appetizers​
Soup (for two)​
Seafood​
Poultry​
Meat​
Vegetables​
Desserts​
Appetizers‍
Soup
Seafood‍
Rice and Noodle
Special Suggestions‍
Chicken
Beef and Pork‍
Poultry
Vegetables‍
Clay Pot Special
Dinner Combos‍
Dim Sum
Beverage‍
Oriental Wine
Beers‍
Vung Tau, Vietnam Powder​
Cold Appetizers‌
Shanghai Dim Sum And Noodle‌
Soup‌
Seafood‌
Pork, Beef, Lamb and Poultry‌
Vegetables‌
Desserts‌
Beverages‌

Dancing Night Special‎
Lunch & Dim Sum‎



Appetizers‏
Soups
Salad
Smooked Products
Beef‏
Pork
Lamb
Vegetables
Not Spicy‏
Noodles and Rice
Entrees
Chicken
Fish‏
Luncheon Special
Lunch Box Special #1
Lunch Box Special #2
Drunken Squab Combination Cold Plates‍

House Specialties
Poultry‍
Noodles and Fried Rice
Appetizers‍
Soup
Pork, Beef and Lamb‍
Seafood
Low Calorie Recommendations‍
Clay Pot
Entradas‌
Parrilla‌
Cocina‌
Kids Menu‌
Salads‌
Sides‌
Desserts‌
Beverages‌
Panna‌
Whites & Sparkling‌
Malbecs From Argentina‌
Other Reds From Argentina‌
Special Selections From U.S. & Argentina‌
Dessert Wines‌
Popular Items‏
Appetizers
Salad
Soup
Seafood‏
Beef
Chicken
Clay Pot
Egg‏
Pork
Vegetable
Rice and Noodle
Family Style‏
Chef's Specialties
Dessert
Desserts
Lunch Specials‏
Dim Sum‍
Moon Cake
All You Can Eat‍
Appetizer‌
Cold Appetizer‌
Chef's Suggestions‌
Soup‌
Fowl‌
Beef‌
Pork‌
Seafood‌
Vegetables‌
Special Clay Pot‌
Clay Pot‌
Szechaun Cuisine‌
Rice and Noodle‌
Beverages‌
Appetizers‌
Cold Appetizers‌
Chef's Suggestion‌
Soup‌
Fowl‌
Beef‌
Pork‌
Seafood‌
Vegetable‌
Special Clay Pot‌
Clay Pot‌
Szachuan Cuisine‌
Rice & Noodle‌
Beverages‌
Appetizers‏
Soups
Fowl‏
Beef
Sizzling Platters‏
Mu Shu
Pork‏
Vegetable
Chow Mein‏
Fried Rice
300 Per Table‏
389 Per Table
Appetizer‏
Soup

Beef‏
Seafood‏

Mu Shu‏

Vegetable‏

Fried Rice‏
Alcohol‍
Non-Alcohol
Deep Fried Skewers‍
Deep Fried Dishes
Grilled Skewers‍
Grilled Dishes
Simmered Dishes‍
Specialities
Salad Rice and Soup‍

Alcohal‍
Non Alcohal
Starters​
Soup​
Won Ton Soup​
Beef / Lamb​
Pork​
Chicken​
Dumpling​
Seafood​
Vegetables​
Fried Rice​
Chow Fun or Chow Mein​
Clay Pots​
Egg Foo Young​
Rice Plate​
Special Set​
Family Dinner​
Kam's Dinner​
Chef's Dinner​
Lunch Special​
Appetizers‎
Salad, Mu-shu, Lettuce Wrap
Ton Kiang Soups
Poultry Specialties‎
Pork Specialties
Beef Specialties
Clay Pot‎
Fresh Lobster And Crab‎
Prawns
Squid
Fresh Fish Fillet‎
Whole Fresh Fish
Clams And Oysters
Fried Rice‎
Noodles
Tofu And Vegetables‎
Seasonal Vegetables
Golden Anniversary Banquet Dinner‎
Dragon and Phoenix Banquet Dinner
Crown Jewel Banquet Dinner
Royal Family's Banquet Dinner‎
Starters‎
Meat/Clay Pot
Seafood
Vegetables and Tofu‎
Noodles and Rice

Popular Items‏
Appetizers
Soup
Poultry
Pork & Beef‏
Seafood
Sizzling Platter
Clay Pot
Rice in Clay Pot‏
Vegetable
Fried Rice, Noodles & Mein
Dinner‏
Combo Dinner
Deluxe Dinner
Small Plate‏
Medium Plate
Large Plate
House Special
Appetizers‌
Soup‌
Fowl‌
Beef‌
Pork‌
Seafood‌
Bean Curd and Vegetable‌
Egg Fu Young‌
Mu-Shu‌
Rice and Noodles‌
Dessert‌
Soft Drink and Beer‌

Popular Items‌
Appetizers‌
Hong Kong Style BBQ‌
Soup‌
Seafood‌
Simply Delicious‌
Clay Pots‌
Hunan Style‌
Vegetarian Entrée‌
Noodle‌
Rice & Congee‌
Beverages‌
Popular Items‌
Appetizers‌
Hong Kong Style BBQ‌
Soup‌
Seafood‌
Simply Delicious‌
Clay Pots‌
Hunan Style‌
Vegetarian Entrée‌
Noodle‌
Rice & Congee‌
Beverages‌
Bird's Nest & Crystal Snow​
Special Recommendations​
Golden Series​
Glutinous Rice Balls​
Snacks​
Sago Series​
Mango Mania​
Mix & Match​
Special Jelly Drinks​
Kwai Ling Ko & Herb Tea​
House Specialties‎
Szechuan Trenz
Snacks
Classic Plates‎
Family Meals
Noodle Plates
Special Rice Plates‎
Special Soups
Specialty Hot Pots
Appetizers​
Soups​
Seafood​
Noodles​
Side Dishes​
Salads​
Chicken/Pork​
Beef/Lamb​
Vegetables/Tofu​
Appetizers‌
Salad‌
Soups‌
Beef & Lamb‌
Chicken‌
Pork‌
Seafood‌
Vegetables‌
Noodles & Rice‌
Hunan Trenz‎
Stinky Tofu
Seafood Dishes
Meat Dishes‎
Vegetarian Dishes
Appetizers
Hot Pots‎
Family Combination
Noodle Plates
Rice Plates‎
Soups
Beverages

Cold Dishes & Salad​
Dim Sum​
Soup​
Chicken & Duck​
Beef & Lamb​
Pork & Mu Shu​
Seafood​
Vegetables​
Hot Pot​
House Special​
Dim Sum​
Special Lunch​
Appetizers​
Soups​
Clay Port​
Seafood​
Sizzling Platter​
Beef & Pork​
Poulty​
Egg Foo Young​
Clay Pot Rice​
Vegetables & Tofu​
Fried Rice​
Cnow Fun, Chow Mein, Noodles Soup​
Tou Fu/Vegetables‏
Dim Sum
Rice / Noddle
Fresh Seafood
Chef's Recommendatoins‏
New Specials
Soup/ Appetizer
Chicken/ Pork/ Beef
Appetizer‎
Soup
Seafood
Beef & Lamb‎
Chef's Special
Chicken & Duck
Pork‎
Vegetables
Noodles & Rice
Seafood Dinner‎
Szechuan Dinner
Vegetables Dinner
Dinner for One‎
Melisa's Lunch Special
Appetizer‎
Soup
Seafood
Beef & Lamb‎
Chef's Special
Chicken & Duck
Pork‎
Vegetables
Noodles & Rice
Seafood Dinner‎
Szechuan Dinner
Vegetables Dinner
Dinner for One‎
Lunch Special
Poultry
Beef‎
Seafood
Pork
Vegetables‎
Food Order Form‎
Soup
Noodle Soup
Curry‎
Fried Rice
Beverage
Starters‎
Salads
From the Grill
From the Oven‎
From the Wok
From the Skillet
Vegetarian Starters‎
Vegetarian Salads
From the Vegetarian Grill
From the Vegetarian Oven‎
From the Vegetarian Wok
From the Vegetarian Skillet
Sides, Extras and More‎
Desserts
Starters‎
Salads
From the Grill
From the Oven‎
From the Wok
Form the Skillet
Starters‎
Salads
From the Vegetarian Grill
From the Vegetarian Oven‎
From the Vegetarian Wok
From the Vegetarian Skillet
Top Selling Favorites‎
Cream Pillows
Grass Jelly Almond Jelly
Tofu Fa‎
Asian Classics
Drinks

Desserts‎


Dumpling‍
Northern Dimsum‍

All Beef Lunch Special​
All Chicken Lunch Special​
All Pork Lunch Special​
All Shrimp Lunch Special​
Lunch Special​
Dumplings and Potstickers​
Noodles​
Cold and Plates and Appetizers​
Soup​
Mu shu​
Pork​
Beef​
Chicken​
Sea Food​
Sea Food​
Vegetables​
Chow Mein​
Fried Rice​

All Beef Lunch​
All Chicken Lunch​
All Pork Lunch​
All Shrimp Lunch​
B.B.Q. & Appetizers‍
Soup
Shark Fin & Abalone Soup‍
Fresh Seafood
Beef & Pork‍
Pouliry
Clay Pot‍
Vegetables & Bean Curd
Noodle, Fun & Rice‍
Dessert
Live Seafood‍

Chow Mein /Fried Rice/Noodle Soup‎
Appetizer
Soup
Deluxe Choice‎
Lunch Special‎
Chow Mein
Noodle Soup
Fried Rice‎
Lunch Special‎
Lunch Special
Chow Mein/Fried Rice/Noodle Soup

Appetizer‎
Soup
Deluxe Choice
Appetizer‎
Soup
House Special
Bamboo Basket Dishes‎
Vegetable
Vegetable
Work Simmered or Clay Pot Dishes‎
Spicy
Tofu and Bean Curd
Tofu and Bean Curd‎
Chow Mein
Noodle Soup
Rice‎
Appetizers​
Soup​
Dim Sum​
Chow Mein and Chow Fun​
Fried Rice​
Dinner Specials​
Poultry​
Pork​
Vegetarian​
Beef​
Seafood​
Chef's Recommendations​
Dessert​
Beverages​

Appetizers​
Soup​
Dim Sum​
Chow Mein and Chow Fun​
Fried Rice​
Dinner Specials​
Poultry​
Pork​
Vegetarian​
Beef​
Seafood​
Chef's Recommendations​
Dessert​
Beverages​
Lunch​








Soft Drinks‌
Beer‌

Chefs Specialty‌
Appetizers‌
Soup‌
Seafood‌
Chicken‌
Beef‌
Pork‌
Vegetables‌
Healty Food‌
Meaatless Chicken‌
Rice & Noodles‌
Lunch Special Rice Plates‌
Dessert‌
Beverage‌
Combination‌
Sandwiches‌
Appetizers‎
Soups
Wonton and Noodle Soup
Chicken‎
Beef
Pork
Seafood‎
Vegetables
Chop Suey
Chow Fun and Chow Mein‎
Fried Rice
Rice Plate
Appetizers‍
Salads
Soups‍
Chef's Recommendation
Seafood‍
Beef & Lamb
Poultry‍
Mu Shu & Egg Fu Yong
Pork‍
Vegetable
Rice & Noodles‍
Beverages
Desserts‍
Lunch Special
Chef's Specialties‍
Starters
Soup‍
Pork
Vegetables‍
Poultry
Seafood‍
Beef
Lamb‍
Rice & Noodles
Dessert & Drinks‍
Ho's Combo for One
Deluxe Family Dinners‍
Lunch Plates‎
Small Plates
Soups & Salads
Sandwiches‎
Noodles
Rice
Small Plates‎
Soups & Salads
Noodles
Rice‎
Chicken, Beef & Pork
Vegetables
Signature Dishes‎
Fish & Seafood
Desserts
Appetizers‍
Soup
Beef‍
Pork
Chicken:‍
Curry
Vegetarian‍
Fried Rice / Noodles:
Dessert‍
Beverages:
Appetizers‍
Soups
Seafood‍
Pork
Beef and Lamb‍
Fowl
Rice Plate‍
Chow Mein
Chow Fun‍
Vegetarian Special
Chef's Special‍
Iron Plate
Beverages‍
Lunch Menu
Appetizers‍
Soups
Seafood‍
Pork
Beef and Lamb‍
Fowl
Rice Plate‍
Chow Mein
Chow Fun‍
Vegetarian Special
Chef's Special‍
Iron Plate
Beverages‍
Soup
House Specials‍
Pork
Beef and Lamb‍
Fowl
Seafood‍
Vegetarian
Rice‍
Chow Mein or Chow Fun
Beverages‍
Lunch Menu
Lunch Special‍

Pan Fried and Sauteed‌
Grilled And Specialty‌
Appetizers‌
Salads‌
Soups‌
Firepot Soups‌
Bun-Rice Vermicelli Salad‌
Steamed Fine Rice Vermicelli‌
Stir Fried Noodles‌
Beef Noodle Soup‌
Noodle Soup‌
Tofu/Vegetables‌
Prawn‌
Calamari‌
Shell Fish‌
Fish‌
Poultry‌
Beef‌
From The Grill‌
The Rice Side‌
Beverages‌
Desserts‌
Appetizers‎
Soup
Noodle Soup
Chef's Specialties‎
Specials of the Day
Eggplant
Pork‎
Beef
Chicken
Seafood‎
Vegetable
Fried Rice
Chow Fun‎
Chow Mein
Egg Foo Young
Combination Dinner‎
Dessert
Beverages
Lunch Menu‎
Beef
Seafood
Pork‎
Vegetables
Lunch Specials‍
Chinese
Japanese‍
Chef's Specials‏
Lunch
Appetizers
Soup
Seafood‏
Beef
Chicken
Pork
Vegetables‏
Rice And Noodles
388 Party‎
438 Party
538 Party
588 Party‎
768 Party
938 Party
Small‎
Medium
Large
Special‎
Special Party‎
Fire Packages
Dim Sum‎
Main Menu
Wonton or Noodle Soup‍
Chow Mein & Chow Fun
Fried Rice‍
Egg Foo Young
Sizzling Hot Plates‍
Clay Pots
Vegetarian Dishes‍

Mushu‍
Soup
Poultry‍
Beef
Seafood‍
Pork
Combination Plates‍

Appetizers​
Soup​
Special Family Meal​
Pork​
Beef​
Chicken​
Seafood​
Vegetarian​
Combination Plate​
Fried Rice​
Chow Mein or Chow Fun​
Egg Foo Young​
Chop Suey​
Dinner Specials​
Side​
Beverages​
Lunch Specials​
New Oceanic's Specialties​
Appetizers​
Soup​
Chicken​
Seafood​
Beef​
Pork​
Vegetable​
Rice & Noodles​
Desserts​
Beverages​
Appetizer‏
Soup
Chicken and Duck
Beef
Pork‏
Seafood
Vegetable
Clay Pot
Mu Shu‏
Chow Mein and Chow Fun
Noodles
Fried Rice
Family Dinners‏
Dessert
Beverages
Beer
Lunch Specials - Group A‏
Lunch Specials - Group B
Early Bird Dinner

Chicken‍
Beef / Pork
Island Favorites‍
Seafood
Mini Meal‍
Family Meal
Gourmet Salads & Fresh Fruits‍
House Made Noodle Soups
Appetizers & Sides‍
Beverages
Appetizer‍
Salad
Noodle Salad‍
Noodles
Noodle Soup‍
Chicken and Pork Curry
Beef, Lamb, and Mutton‍
Sea Food
Vegetables‍
Rice and Side Dish
House Special‍
Dessert
Drinks‍

Mushu Dishes‍


Vegetables and Tofu‍
Chicken‍
Beef and Lamb
Pork‍

Rice Dishes‍
Seasonal‍
Lunch
Appetizers‍
Soups
Salads‍
Vegetables
Meat‍
Seafood
Drinks‍
Desserts
Rice‍
Noodle
Soups‍

Chicken‍
Beef
Seafood‍
Vegetables & Tofu
Pork‍
Appetizers
Mushu Dishes‍
Soups
Salads‍
Vegetables
Vegetables & Tofu‍
Meat
Chicken‍
Beef & Lamb
Pork‍
Seafood
Rice‍
Rice Dishes / Chow Mein / Chow Fun
Pad-Kee-Mao‍
Pad-Se-Ew
Noodle‍

White Wine‍
Red Wine
Beer‍
Sake


Chicken‍
Beef
Pork‍
Seafood
Vegetables‍
Chef's Specials
Taiwan's Special Family Dinners‍
Soups and Salads
Hot Appetizers‍
Seafood
Chow Mein‍
Chow Fun
Rice Dishes‍
Tofu
Desserts‍
Poultry
Beef‍
Pork
Vegetables‍
Mushu Dishes
House Wine‍
White Wines
Red Wines‍
Specialty Drinks
Beer‍
Champagne
Soft Drinks‍
Specialty Teas

Chicken‍
Beef
Pork‍
Seafood
Vegetables‍
Rice & Noodles
Lunch‍
Taiwan's Special Family Dinners
Soups and Salads‍
Hot Appetizers
Seafood‍
Sunday Champagne Brunch
Lunch Specials‌
Chef Specials‌
Appetizers‌
Soup‌
Beef‌
Seafood‌
Pork‌
Chicken‌
Vegetarian and Bean Curd‌
Noodle Soups‌
Rice Chow Mein & Chow Fun‌
Family Dinner‌
Appetizers​
Soup​
Uncle Chen`S Recommanded​
Chef Specials​
Duck​
Pork​
Beef​
Chicken​
Seafood​
Vegetable​
Family Dinner​
Rice​
Chow Mein or Chow Fun​
Over Rice or Chow Fun​
Beverages​
Vegetarian​
Soup​
Vegetarian Entree​

Exotic & Polynesian‎
Frozen Cocktails
Non Alcoholics
Starters‎
Beer List
Wine Price List
Brutocao Cellars‎

Sake

Choice of 1‎
Choice of 3
Pearl River Signature Plates‎
Chef's New Recommendations
Appetizers
Soups‎
Rice, Chop Suey, Chew Mein
Special Vegetarian Plates
Desserts‎
Entrees
Dinner Specials
A Taste of Japan‎
Lite Menu
Lunch Specials
A Taste of Japan‎
Lite Menu

Menu $38 (2 - 3 Person)‎
Menu $58 (3 - 4 Person)
Menu $168 (6 - 8)
Menu $78 (5-6 Person)‎
Menu $188 (8-10)
Menu $98 (6-7 Person)
Menu $208 (10 - 12)‎
Plus Soup Of The Day & Dessert‎
Cantonese Dinner‎
Szechuan Dinner
Appetizers
Soup‎
Beef
Pork
Chicken‎
Duck And Squab
Seafood
Vegetables and Bear Curd‎
Sizzling Platters
Clay Pot
Chow Mien And Chow Fun‎
Fried Rice
Dessert And Beverages
Appetizers​
Soups​
Salads​
Sutter's Classic Sandwiches​
Pasta​
Entrees​
Dessert​
Appetizers​
Soups​
Fried Rice and Noodles​
Poultry​
Beef​
Seafood​
Desserts​
Beer​
Bottled Beer​
Vodka​
Scotch​
Brandy​
Tequila​
Rum​
Whiskey​
Cognac​
Gin​
Sparkling Wines and Champagnes​
Chardonnay​
Merlot​
Cabernet Sauvignon​
Pinot Noir​
Sauvignon Blanc​
Zinfandel​
White Zinfandel​
Premium Wines by the Bottle​
Sample​
Breakfast Special​
Beverages​
Soups​
Salads​
Deli Sides​
All Beef Hot Dogs​
Homemade Burritos​
Soft Tacos​
Pizza by the Slice​
Desserts​
Double Rainbow Ice Cream​
Snacks​
Fresh Deli Sandwiches​
Breakfast​
Eggs​
Griddle​
Omelettes​
Cereal, Fruit and Sides​
Appetizers​
Soups​
Salads​
Bay 101 Cobb Classic​
Sandwiches​
Pasta​
Mexican​
Chicken​
Seafood​
Meats​
Desserts​
Double Rainbow Ice Cream​
Appetizers​
Soups​
Fried Rice and Noodles​
Poultry​
Beef​
Seafood​
Desserts​
Lunch Special​
Highlighted Dishes​
Chef Special Suggestions​
Full menu​
Combination Meal​
Appetizers‏
Noodles and Rice
Appetizers‏
Salads
Soup
Chicken
Beef and Lamb‏
Pork
Seafood
Vegetables
Noodles and Rice‏
Desserts
Beverages
Lunch Special
Hair Salon‏
Appetizers‏
Soups
Salads
Sutter's Classic Sandwiches
Pasta‏
Entrees
Desserts
Appetizers‏
Soups
Poultry
Beef
Seafood‏
Desserts
Beverages‏
Soups
Salads
Deli Sides
All Beef Hotdogs‏
Homemade Burritos .
Soft Tacos
Pizza by the Slice
Desserts‏
Double Rainbow Ice Cream
Snacks
Fresh Deli Sandwhiches
Breakfast‏
Eggs
Griddle
Omelettes
Omelettes‏
Cereal Fruit and Sides
Appetizers
Soups
Salads‏
Sandwiches
Pasta
Mexican
Seafood‏
Desserts
Poultry
Beef
Seafood‏
Desserts
Breakfast Special‏
Ginger Lobster
Lunch Entrees‎
Appetizer​
Snack​
Soup​
B.B.Q.​
Hot Clay Pot​
Chicken & Duck​
Beef​
Seafood​
Lo Mein​
Pork​
Vegetable​
Chef's Specialties​
Fried Rice​
Chow Fun​
Noodle​
Rice Plate​

Dinner Packages‏
Appetizers
Soups
Chicken Entrees
Duck Entrees‏
Pork Entrees
Beef Entrees
Lamb Entrees
Combination Entrees‏
Seafood Entrees
Vegetable Dishes
Rice
Noodles‏
Beverages
Beer & Sake
Corkage

Chef Special Suggestions‎
Combination Meals
Full
Appetizers || Khai Vi​
Beef Noodle Soup || Pho B​
Chicken Noodle Soup Pho and Mi Ga​
Seefood and Won Ton Noodle Soup Soup Do Bien and Hoanh Thanh​
House Special Noodle Soup Cac Mon An Dac Biet​
Rice Plates Com Dia​
Vermicelli Dishes Bun​
Fresh Fuits Juices Nuoc Trai Cay Ep​
Beverages Nuoc Giai Khat​

Lunch Special​
Dim Sum​
Appetizer​
Chef's Special​
Soup​
Salad​
Mu Shu​
Seafood​
Chicken​
Beef​
Pork​
Fresh Vegetable​
Noodles and Fried Rice​
Combination Dinner​
Beverages​
Appetizers‎
Salad
Dim Sum
Soup‎
Noodle Soup:
House Specials:
Pork‎
Beef
Chicken
Lamb‎
Seafood
Clay Pot:
Vegetarian:‎
Rice:
Chow Mein or Chow Fun:
Dessert:‎
Beverages



Beef‎
Fowl
Pork
Seafood‎
Vegetables
Appetizers‎
Soup
Noodles & Fried Rice
Beef‎
Chicken
Pork
Seafood‎
Vegetables
Rice Plates‎
Appetizers‌
Seafood‌
Chicken‌
Vegetable & Tofu‌
Beef & Pork‌
Fried Rice‌
Chow Mein & Noodles‌
Chef's Specials‌
Beverage‌
Appetizer‎
Soup
Chicken
Beef‎
Lamb
Pork
Seafood‎
Vegetable
Chef's Specialties
Egg Foo Young‎
Chow Mein or Chow Fun
Fried Rice
Dessert‎
Beverages
Appetizers‍
Soup
phỞ beef noodle soup‍
Egg Noodle / Rice Noodle Soup
Chow Fun / Chow Mein‍
Fried Rice
Charbroiled Meat Over Vermicelli‍
Charbroiled Meat Over Rice
Stir and Fry‍
Seafood
Vegetarian Dishes‍
Traditional Cuisine
Beverages‍
Import Beer
Dmestic Beer‍
Appetizers‌
Soup‌
Chef's Special‌
Seafood‌
Pork‌
Beef‌
Vegetables or to-Fu‌
Egg Fu Yung‌
Moo-Shi (with 4 Pancakes)‌
Poultry‌
Chow Mein (Noodle)‌
Chow Fun (Rice Noodle)‌
Fried Rice‌
Vegetarian Special Appetizers‌
Vegetarian Special Soup‌
Vegetarian Special Entree Chicken‌
China Cafe Dinner‌
Special Combination Dinner‌
Happy Luncheon‌
American Dish Served with Soft Drink‌
Special Luncheon Rice Plate‌


Appetizers‏
Salads
Soups
Seafood‏
Beef‏
Chicken
Pork
Vegetables‏
Rice and Noodles‏
White Wines‏
Blush Wines
Plum Wines
Red Wines
House Wines‏
Beer‏
Sake
Non Alcoholic Beer
Water
Sodas‏
House Specials‏
Lunch
Appetizers
Salads
Soups‏
Seafood
Beef
Chicken
Pork‏
Vegetables
Rice & Noodles
White Wines
Blush Wines‏
Plum Wines
Red Wines
House Wines
Beverages‏
Cold Dishes‌
Hot Dishes‌
Appetizers‏
Salad
Soup
Seafood
Beef‏
Chicken
Pork
Vegetable
Rice & Noodles‏
Specials
Appetizers‎
Salads & Soups
Noodles
Ma's Signature Dishes‎
Rice Bowls
Ma's Kids
Beverages‎
Lunch‏
Gourmet Family Dinners
Chef's Special
Appetizers
Soup‏
Vegetable Entree
Egg Fu Young
Pork
Chicken Entree‏
Mu-Shu
Beef Entree
Seafood
Sizzling‏
Chow Mein
Pan-Fried Noodle
Chow Fun
Fried Rice‏
Bento Boxes‏
Teriyaki Special
Special Combinations
Sides
Noodle Soup‏
Tempura
Sashimi
Maki Rolls‏
Spicy Maki (Rolls)
Nigiri Sushi
Lunch‏
Gourmet Family Dinners
Chef's Special
Appetizers
Soup‏
Vegetable Entrée
Egg Fu Young
Pork
Chicken Entree‏
Mu-Shu
Beef Entrée
Seafood
Sizzling‏
Chow Mein
Pan-Fried Noodle
Chow Fun
Fried Rice‏
Bento Boxes‏
Teriyaki Special
Special Combinations
Sides
Noodle Soup‏
Tempura
Sashimi
Maki Rolls‏
Spicy Maki Rolls
Nigiri Sushi
Lunch‏
Gourmet Family Dinners
Chef's Special
Appetizers
Soup‏
Vegetable Entrée
Egg Fu Young
Pork
Chicken Entree‏
Mu-Shu
Beef Entrée
Seafood
Sizzling‏
Chow Mein
Pan-Fried Noodle
Chow Fun
Fried Rice‏
Bento Boxes‏
Teriyaki Special
Special Combinations
Sides
Noodle Soup‏
Tempura
Sashimi
Maki Rolls‏
Spicy Maki Rolls
Nigiri Sushi
Appetizer‍
Soup
Noodle‍
Rice
Vegetable‍
Egg Fu Yung
Pork‍
Chicken
Beef‍
Seafood
Smothie & Beverages‍
Hot
Combination Paltes‍
Family Dinners
Soups‏
Salads

Muntean's Soup Trivia For‏
Bottled Beers‎
Beer on Tap
Wine List
Appetizers‎
Soup
Imperial gallery
Empress fitness‎
Imperial beef and pork
Imperial birds'fowl'
Pacific imperial fleet‎
Emperor garden
Imperial grains
Hot appetizers‎
Special business lunch
Rice plates
Noodles & rice‎
Chef's choice

Appetizers‎
Entrees

Appetizers‎
Entrees
Luncheon entrees
Rice & noodle‎
Chef's choice
Bottled beers‎
Beer on tap
Wine list
Lunch Specials​
Appetizers​
Soup​
Entrées​
Fried Rice​
Chow Mein​
Fries​
Vegetables​
Egg Foo Young​
Soda​
Dinner Combo Specials​
Party Trays​
Party Trays‎
Appetizers‎
Soup
Chicken
Mu Shu‎
Pork
Beef
Seafood‎
Egg Foo Young
Vegetables
Fried Rice‎
Chow Fun
Chow Mein
Special Family Dinner‎
Combination Plates
Dinner Special
Beverages‎
Lunch Special‎

Set Dinner for 6-7 Persons‏
Set Dinner for 10 Persons
Set Dinner for 3-4 Persons
Set Dinner for 5-6 Persons
Family Dinner‏
Rice Plate
Rice Plate‏
Small
Medium
Large
Special‏
Small‏
Medium
Large
Cake
Fresh Seafood Hot Pot‏
Family Dinner For 2-3 People
Family Dinner For 3-4 People
Family Dinner For 7-8 People
Family Dinner For 7-8 People‏
Family Dinner For 8-10 People
Family Dinner For 10 People
Cocktails‍
Appetizers
Soup‍
Moo-Shi
Sizzling Platters‍
Beef
Pork‍
Seafood
House Favorites‍
Poultry
Chinese Fresh Vegetables‍
Chow Mein
Fried Rice‍
Bean Curd (Tofu)
Egg Delights‍
Desserts
A La Carte‌
Appetizers‌
Soups‌
Combination Specials‌
Family Meal Entree Selections‌
Pan-Fried (HK Style)/Chow Mein‌
Chow Fun‌
Fried Rice‌
Family Value Meal‌

Appetizers‌
Table Barbecue‌
Side Dishes‌
Lunch Specials‌
Daily Specials‌
Assortment of Sushi‌
Appetizers‎
Appetizers combination
Noodles
Chinois City Café Specialisties‎
Rice Specialties
Family Style Specials
Lunch Plate Spacials‎
Desserts
Beverages
Appetizers‎
Appetizers combination
Noodles
Chinois City Café Specialisties‎
Combinations
Desserts
Beverages‎

Soup​
Appetizers​
Mandarin special​
CHOW FUN (Rice Noodle)​
Daily 11:00 a.m-3:00 p.m.​
Special business lunch​
Fried or steamed rice​
Pork​
Beef​
Vegetable​
Moo-shi​
Fu-yung​
Poultry​
Seafood​
BEAN-CURD (To Fu)​
Chow mein​
Fried rice​
Vegetarian specials​
Entrees​
Appetizer‏
Soup
Chef’s Special
Fresh From Wok
Indonesian Cuisine‏
Satay

















Include Wonton Soup, Egg Roll, Steam Rice or Fried Rice, or Chow Mein (soup is not included for carry out)‍
Chow Mein Chow Fun‌
Fried Rice‌
Rice Plates‌
Louie’s Luncheon‌
Entrees‌
Beverages‌
Louie’s Family Dinners‌
Appetizers‌
Soups Won Ton‌
Seafood‌
Chicken Poultry‌
Beef‌
Vegetarian Specialties‌
Pork‌
Tofu‌
Mu Shu - Crepes‌
egg Foo young‌
Salads‌
Breakfast‌
Late Night‌

Sides‌

Appetizers‌
Soups and Salads‌
Sandwiches‌
Entrees‌
Asian Dishes‌
Desserts‌

Our chef's specialties‎
Soup
Appetizers
Fried rice‎
Lo mein
Seafood
Pork or beef‎
Chicken
Vegetable
Bubble Tea‌
Combination Sushi‌
Small Maki Roll‌
Big Maki Roll‌
Dinner‌
Combo Plates​
Rice Plates​
Appetizers​
Soups​
Shrimp​
Chicken​
Pork​
Beef​
Vegetables & Tofu​
Chow Fun​
Chow Mein​
Fried Rice​
Egg Fu Young​
Family Dinner​
Appetizers‍
Soup
Chicken‍
Mu Shu
Pork‍
Beef
Seafood‍
Egg Foo Young
Vegetables‍
Fried Rice
Chow Fun‍
Chow Mein
Special Family Dinner‍
Combination Plates
Dinner Special‍
Beverages
Lunch Special‍
Party

In [6]:
# form bags of words
all_items = [] # list member  = menu item
all_menus = [] # list member  = concatenated menu items of a restaurant
for resto in restaurants:
    all_items += resto['items']
    all_menus.append(' '.join(resto['items']))
    
print len(all_menus), 'menus'
print len(all_items), 'items'


111 menus
22748 items

In [7]:
fuzzy_items = [sound_like(item) for item in all_items if sound_like(item)]

In [8]:
vectorizer = TfidfVectorizer(token_pattern=u'(?u)\\b\\w+\\b')
vectorizer.get_params()


Out[8]:
{'analyzer': u'word',
 'binary': False,
 'charset': None,
 'charset_error': None,
 'decode_error': u'strict',
 'dtype': numpy.int64,
 'encoding': u'utf-8',
 'input': u'content',
 'lowercase': True,
 'max_df': 1.0,
 'max_features': None,
 'min_df': 1,
 'ngram_range': (1, 1),
 'norm': u'l2',
 'preprocessor': None,
 'smooth_idf': True,
 'stop_words': None,
 'strip_accents': None,
 'sublinear_tf': False,
 'token_pattern': u'(?u)\\b\\w+\\b',
 'tokenizer': None,
 'use_idf': True,
 'vocabulary': None}

In [38]:
# feature matrix. shape = number of data samples by number of features
fm = vectorizer.fit_transform(fuzzy_items)
fm.shape


Out[38]:
(22702, 2958)

In [39]:
# target vector
cuisines = array(fm.shape[0]*['chinese']) #all item are Chinese
cuisines.shape


Out[39]:
(22702,)

In [46]:
clf = MultinomialNB()

In [47]:
clf.fit(fm, cuisines)


Out[47]:
MultinomialNB(alpha=1.0, class_prior=None, fit_prior=True)

In [48]:
plot(sorted(clf.feature_log_prob_[0]))


Out[48]:
[<matplotlib.lines.Line2D at 0x6ac8550>]

In [49]:
cpt = np.matrix(clf.feature_log_prob_[0,:])
cpt.shape


Out[49]:
(1, 2958)

In [50]:
pickle.dump(cpt,open('cpt.pickle','w'))
pickle.dump(vectorizer, open('vectorizer.pickle','w'))

In [55]:
a,b,c=plt.hist(clf.feature_log_prob_[0],bins=10,log=True)



In [17]:
for ij in zip(fm.nonzero()[0], fm.nonzero()[1]):
    fm[ij] = 1
fm = fm.transpose()
fm


Out[17]:
<2958x22702 sparse matrix of type '<type 'numpy.float64'>'
	with 123954 stored elements in Compressed Sparse Column format>

In [18]:
cpt = sparse.csr_matrix(clf.feature_log_prob_[0,:])
cpt.shape


Out[18]:
(1, 2958)

In [19]:
word_count = np.matrix([len(item.split()) for item in fuzzy_items])
word_count.shape


Out[19]:
(1, 22702)

In [20]:
pos = (cpt*fm).toarray()/word_count

pickle.dump(pos,open('pos.pickle','w'))

In [21]:
a=plot([len(item.split()) for item in fuzzy_items], pos.transpose(),'.')



In [22]:
a,b,c = hist([item for item in pos.tolist()[0] if item <= inf], bins=100)
plt.vlines((pos.mean()-pos.std(), pos.mean(), pos.mean()+pos.std()), 0 ,1200, colors='r')


Out[22]:
<matplotlib.collections.LineCollection at 0x69cf6d0>

In [69]:
restaurants[1]['items']


Out[69]:
[u'Lotus 2 Yolks (Nhan Hot Sen 2 Long Trung)',
 u'Winter Melon 2 Yolks (Nhan Mut B\xed2 L\xf2ng Tr\xfang)',
 u'Lotus 1 Yolk(Nan Hot Sen1 Long Trung)',
 u'Ham, Nuts1 Yolk (Nhan Thao Camvoi Thit (Ham) V\xe01L\xf2ng)',
 u'Winter Melon1 Yolk (Nhan M\xfat B\xed1 L\xf2ng Tr\xfang)',
 u'Lotus No Yolk (Nh\xe0n Hot Sen Chay)',
 u'Yolk Assorted Mooncakes (Tu Hi Phung Hoang)',
 u'NoYolk Ham, Mixed Nuts [Thap Cam Voi Thit (Ham)]',
 u'Yellow Soy Bean1 Yolk (Nhan Dau Xanh1 L\xf2ng Tr\xfang)',
 u'Black Bean 1 Yolk(NhanDauDen1L\xf2ngTr\xfang)',
 u'Coconut 1 Yolk(NhanD\xf9a1L\xf2ngTr\xfang)',
 u'No Yolk Winter Melon(B\xe0nhB\xedTrieuChau)',
 u'No Yolk Mixed Fruit and Nuts(B\xe0nhThapCam)',
 u'No Yolk Black Bean(NhanDauDenChay)',
 u'No Yolk Yellow Soy Bean(NhanDauXanhV\xe0TraiCay)',
 u'Fish',
 u'Buddha',
 u'Small Pig',
 u'Mini Mooncake (2 Bags of 1/2Lb)',
 u'MixedNutsW/Ham2Yolks(ThapCam2L\xf2ngTr\xfang)',
 u'WinterMelonNoYolk(NhanM\xfatB\xedKhongTr\xfang)',
 u'BlackBean2Yolks(NhanDauXanhV\xe0TraiCay)',
 u'Large Jade Pig Basket',
 u'Large Flower Basket',
 u'3 YolksLotusMooncake(NhanHotSen3L\xf2ngTrumg)',
 u'4 Yolks Lotus Mooncake(NhanHotSen4L\xf2ngTrumg)',
 u'No Yolk 4 Assorted Mooncakes #6, #13, #14, and #20 (TuHiPhungHo\xe0ngChay)',
 u'2 Yolk 4 Assorted Mooncakes #1, #2, #19, and #21(TuHiPhungHo\xe0ng2L\xf2ngTr\xfang)']

In [ ]: