Esempio n. 1
0
def get_keypoints(text, name):
    """Process a set of reviews and return key points.

    This is a helper function that calls the primary functions of this module.
    """

    overall_sentiment, sentence_dataset = get_attributes(text, name)
    key_points_dicts = optimize.optimize_keypoints(sentence_dataset, overall_sentiment)
    key_points = [key_point_dict['sentence'] for key_point_dict in key_points_dicts]
    return key_points
Esempio n. 2
0
def get_keypoints(text, name):
    """Process a set of reviews and return key points.

    This is a helper function that calls the primary functions of this module.
    """

    overall_sentiment, sentence_dataset = get_attributes(text, name)
    key_points_dicts = optimize.optimize_keypoints(sentence_dataset,
                                                   overall_sentiment)
    key_points = [
        key_point_dict['sentence'] for key_point_dict in key_points_dicts
    ]
    return key_points
Esempio n. 3
0
    Had the best dinner with my nine year old daughter. We had the tasting menu and every dish was perfection. I highly reccomend the lobster dish, the bass, the beef tenderloin and the rissoto. For dessert the butter cake is Insanely good! 
    One of the highlights of the entire trip. The staff and server Juan Carlos could not have been better. Made our evening just perfect.

    Brought my bf here for his birthday. We had 5 courses for $111 per person (wine not included but good thing we aren't drinkers). Any 5 dishes you choose (stack 'em or mix and match choosing from appetizers, main courses and desserts. ALL of the dishes that were served were excellent in flavor and their portion size is great. Perfectly prepared and they have great service. Oh and you HAVE to try their chocolate souffle.

    This is the only few Michelin star restaurants in SF that are open on Monday. Came here for my partner 50th Birthday celebration. Great location and friendly/classy services that suits the stuffy neighborhood.

    So, they were informed that its a Birthday celebration. They asked us to order our individual dessert, then they came with another "birthday" dessert... Yes, we have 3 plates of dessert, WTH? Just didnt make sense...

    In short, Gary Danko is stuck in the 1990's with traditional, uninspired cuisine!
    """

    sentences = text_to_sentences(text)
    for sentence in sentences:
        print sentence
        print '-----------------------'

    overall_sentiment, sentence_dataset = get_attributes(text, "Gary Danko")
    print overall_sentiment
    pprint.pprint(sentence_dataset)
    #write_output(sentence_dataset, overall_sentiment)

    key_points = optimize.optimize_keypoints(
        sentence_dataset,
        overall_sentiment,
        algorithm=optimize.genalg_keypoints)
    print key_points
    for key_point in key_points:
        print key_point['sentence']
Esempio n. 4
0
    Fantastic service and amazing food. My wife and I each did the 5-course pri fix tasting menu and it was plenty of food maybe too much. The whole experience takes about 3 hours. Make reservations months in advance. All the accolades for Gary Danko, they are deserved. Probably the best fine dining restaurant in San Francisco.

    Had the best dinner with my nine year old daughter. We had the tasting menu and every dish was perfection. I highly reccomend the lobster dish, the bass, the beef tenderloin and the rissoto. For dessert the butter cake is Insanely good! 
    One of the highlights of the entire trip. The staff and server Juan Carlos could not have been better. Made our evening just perfect.

    Brought my bf here for his birthday. We had 5 courses for $111 per person (wine not included but good thing we aren't drinkers). Any 5 dishes you choose (stack 'em or mix and match choosing from appetizers, main courses and desserts. ALL of the dishes that were served were excellent in flavor and their portion size is great. Perfectly prepared and they have great service. Oh and you HAVE to try their chocolate souffle.

    This is the only few Michelin star restaurants in SF that are open on Monday. Came here for my partner 50th Birthday celebration. Great location and friendly/classy services that suits the stuffy neighborhood.

    So, they were informed that its a Birthday celebration. They asked us to order our individual dessert, then they came with another "birthday" dessert... Yes, we have 3 plates of dessert, WTH? Just didnt make sense...

    In short, Gary Danko is stuck in the 1990's with traditional, uninspired cuisine!
    """
    
    sentences = text_to_sentences(text)
    for sentence in sentences:
        print sentence
        print '-----------------------'

    overall_sentiment, sentence_dataset = get_attributes(text, "Gary Danko")
    print overall_sentiment
    pprint.pprint(sentence_dataset)
    #write_output(sentence_dataset, overall_sentiment)

    key_points = optimize.optimize_keypoints(sentence_dataset, overall_sentiment, 
                                             algorithm=optimize.genalg_keypoints)
    print key_points
    for key_point in key_points:
        print key_point['sentence']