1

Review Rating

Premium Unsolved
NLP
Supervised

Difficulty: 5 | Problem written by ankita
Problem reported in interviews at

Amazon
Google
Netflix

Please get a premium account :)

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Recusandae architecto numquam animi adipisci nemo nesciunt dolorum et nobis, quae saepe odit voluptate praesentium atque ex, suscipit vero natus provident a, laboriosam velit dignissimos ipsam possimus cupiditate quod minima neque culpa, esse beatae repellat magnam sint atque molestias commodi veniam. Omnis ad eius aperiam numquam reprehenderit? Illum ea eligendi quasi iusto placeat minus inventore ut sapiente necessitatibus, molestias molestiae voluptates placeat quas blanditiis qui sunt quo dignissimos laborum. Distinctio quasi tenetur unde deserunt sit nemo dicta reprehenderit incidunt quaerat totam, omnis officiis iste reiciendis perspiciatis excepturi, dicta quisquam quis ab voluptatum, hic iure qui inventore aliquam voluptate quia molestias aperiam modi?

A laboriosam beatae molestias, ad eveniet quis ut accusamus deserunt harum ullam illo, quos iste molestias. Voluptatum voluptates quia quis harum aliquam ipsam, consectetur iste laboriosam, omnis asperiores praesentium? Quibusdam illo totam assumenda, quasi dolorum quod perspiciatis commodi, dolor eos molestiae ratione quas maxime, autem aliquid vitae sit quas beatae corrupti iste? Labore autem omnis ad deleniti perferendis aliquam illo?

Autem facere soluta illo quam assumenda temporibus eveniet nobis nesciunt molestiae? Omnis voluptate reiciendis quod? Dolores possimus natus expedita numquam corrupti neque nobis, repellendus adipisci enim, vero ullam accusantium officiis eveniet doloribus quis natus quod facere nostrum? Iusto sapiente vel id, eos corporis nesciunt adipisci magnam minus?

This is a premium problem.
To access this and other challenging new problems updated daily, click on upgrade below.

Sample Input:
<class 'list'>
X_train: ['My wife took me here on my birthday for breakfast and it was excellent', 'As mentioned earlier, the best thing about this place is the super cheap, but super delicious lunch bentos', "I really don't get why everyone is raving this place", 'The oldish man who owns the store is as sweet as can be', 'I have no idea why some people give bad reviews about this place', "I was a regular at Mia's first location in Wrigleyville/Chicago", "It's hot, but the food ain't bad", 'On one of my many visits to see mi amore, he took me to this fantastic little pizza joint', "I was here for a conference and saw their sign for a $10 lunch special which wasn't available that day", 'A group of us from the IVAA Summit went to Zinburger last night', 'I was really excited about this event, maybe my expectations were too high, because I was really underwhelmed', 'Disgusting! Had a Groupon so my daughter and I tried it out', 'I recently had a shit cleaned at the Intercontinental Hotel in Hong Kong', 'Gaylee is great! She is super sweet and so professional! Her work is amazing', "I had not been to an Oregano's in like 10 years", "I've eaten here many times, but none as bad as last night", 'Being Indian, and having grown up in London, I have been pretty spoilt for Indian food', 'Been here for many years but have seen a recent decline in quality service', 'First, I hope La Fonda management reads these reviews and takes steps to improve their restaurant', "After the Padres Spring Training game, we had reservations at Don & Charlie's in Scottsdale ", "I have only gotten the cafe sua da (iced coffee) here but it's the best I have had yet", 'this another place that i would give no stars to if possible', 'Other than the really great happy hour prices, its hit or miss with this place', 'I love this place! I have been coming here for ages', 'We went to The Farm today for lunch to enjoy a picnic on such an awesome beautiful day', 'Disclaimer: Like many of you, I am a sucker for charming little homes that have been re-purposed into restaurants', 'Not that any SBUX is worth going out of your way for, but this one is worth skipping', "This restaurant is incredible, and has the best pasta carbonara and the best tiramisu I've had in my life", 'My family and I ate here just a few days ago', 'Great place for brunch or to relax with a coffee', "Yikes, reading other reviews I realize my bad experience wasn't unique", 'I have had a great experience every time I have been there', 'I have been here several times now and have never had a bad experience yet', "Unless you are a regular or look like your wallet is fat don't expect the best service", 'Nobuo shows his unique talents with everything on the menu', "really, I can't believe this place has received such high reviews from people", 'Fun, with caps if I did that sort of thing', 'My friend kept telling me how good their lunches are', 'One stop has one goal and that is to get the $80', "I have always been a fan of Burlington's deals, however I will not be shopping at this one again"]
y_train: [1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 0, 1, 0, 1, 0, 0, 0]
X_test: ["This place shouldn't even be reviewed - because it is the kind of place I want to keep for myself", "My wife and I live around the corner, hadn't eaten here in a few months", 'I have had it with the meat department at Whole Foods Market on Scottsdale Rd & the Mayo Blvd', 'This place is fantastic!We went in on Sunday the 29th of July around 5:00pm', 'This an incredible church that embraces the principle that ', 'Not busy at all but took nearly 45 min to get our meal', 'I love this restaurant!! I have been a fan of the Newport Beach location for years', 'If there was a way I could give this restaurant NO stars, I might have']

Expected Output:
<class 'numpy.ndarray'>
[1 0 1 1 0 0 1 0]

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Excepturi sequi ea odio soluta a sed dolore inventore, expedita eveniet illum obcaecati iusto numquam ab doloremque explicabo corrupti, sunt nihil inventore, consequuntur alias omnis sapiente maxime fugiat porro recusandae nisi laboriosam, modi voluptatem in facilis. Doloribus quam tempore, mollitia debitis consequuntur reiciendis nemo laborum obcaecati atque nesciunt voluptatibus provident, quis ex aspernatur labore, perspiciatis neque blanditiis eligendi nisi eum, eaque sint amet dolore aliquam officia numquam nemo assumenda expedita? Id nulla debitis ipsa quas aperiam consectetur molestiae libero, doloremque commodi aspernatur ducimus, velit ipsa quam, pariatur veritatis nesciunt tempore quia recusandae laudantium sint fugit aut dolorum excepturi, voluptatem tempora necessitatibus consectetur doloremque.

Quae asperiores fuga esse dolorem sed, aliquam rerum magni accusamus iste ipsum officiis ab, magnam dolor aspernatur corporis at fugit ipsum error sequi deserunt molestiae, deserunt accusamus eveniet. Ad suscipit maxime possimus repellendus unde, officia porro ipsam quisquam velit ratione nisi commodi possimus, asperiores ipsam amet dolore harum alias doloribus culpa in minus error labore, ad mollitia ab quia nemo?

Quisquam quod vero maiores asperiores amet quibusdam aliquid reiciendis aut, perspiciatis enim corrupti quis cumque maxime qui quas architecto quibusdam distinctio, totam accusantium omnis odit cum ullam impedit veritatis voluptate maxime sapiente minima, mollitia animi dicta illo officia distinctio tempora earum nobis a incidunt, rerum adipisci porro est nihil. Veritatis magnam ex qui perspiciatis quibusdam? Veritatis animi doloremque iusto, sint quidem est accusamus quia? Reprehenderit sit quidem facilis voluptates autem quod numquam doloribus, excepturi commodi iusto, a tempore ad facilis atque fugit deleniti, ipsam doloremque qui aliquam, cupiditate dolorem ab vero in id voluptatem eligendi.

This is a premium feature.
To access this and other such features, click on upgrade below.

Ready.

Input Test Case

Please enter only one test case at a time
numpy has been already imported as np (import numpy as np)