Commit b74782c2 authored by  Joel  Oksanen's avatar Joel Oksanen
Browse files

Annotated laptop reviews

parent 59076bb3
<?xml version="1.0" ?>
<sentences>
<sentence>
<text>Okay, this is for all you out there who don't know a RAM from a rap song, and who think CPU stands for Central Pennsylvania University.</text>
</sentence>
<sentence>
<text>This is a nice laptop - a bit bigger than some and heavy to tote around, but that isn't what I use it for.</text>
<aspectTerms>
<aspectTerm from="15" polarity="conflict" term="laptop" to="21"/>
</aspectTerms>
</sentence>
<sentence>
<text>In fact, it replaced my hulking, cord-ridden, space-gobbling desktop.</text>
<aspectTerms>
<aspectTerm from="61" polarity="negative" term="desktop" to="68"/>
</aspectTerms>
</sentence>
<sentence>
<text>I use my computer mostly for the convenience and fun of the internet, along with plenty of e-mailing.</text>
<aspectTerms>
<aspectTerm from="9" polarity="neutral" term="computer" to="17"/>
</aspectTerms>
</sentence>
<sentence>
<text>It has a nice, easy-to-use finger pad, and well-defined keys; I have found that the keyboard is over-sensitive, however.</text>
<aspectTerms>
<aspectTerm from="27" polarity="positive" term="finger pad" to="37"/>
<aspectTerm from="56" polarity="positive" term="keys" to="60"/>
<aspectTerm from="86" polarity="negative" term="keyboard" to="94"/>
</aspectTerms>
</sentence>
<sentence>
<text>I've heard there is \\&quot;someplace\\&quot; you can go to correct this, but it doesn't bother me enough to go there.</text>
</sentence>
<sentence>
<text>Wherever it is.</text>
</sentence>
<sentence>
<text>The screen is crystal-clear with excellent color.</text>
<aspectTerms>
<aspectTerm from="4" polarity="positive" term="screen" to="10"/>
</aspectTerms>
</sentence>
<sentence>
<text>I play CDs on it while I'm surfing the internet, and the sound quality is good.</text>
<aspectTerms>
<aspectTerm from="57" polarity="positive" term="sound quality" to="70"/>
</aspectTerms>
</sentence>
<sentence>
<text>A bit heavy to carry around everywhere (which I don't anyway), but when I go on vacation it's fine to put in the car and simply plug in wherever I'm staying.</text>
</sentence>
<sentence>
<text>I love my \\&quot;desk-top laptop\\&quot;.</text>
</sentence>
<sentence>
<text>I love this computer in every way but one.</text>
<aspectTerms>
<aspectTerm from="12" polarity="conflict" term="computer" to="20"/>
</aspectTerms>
</sentence>
<sentence>
<text>The edge of the computer in front of the track pad is rather sharp.</text>
<aspectTerms>
<aspectTerm from="16" polarity="neutral" term="computer" to="24"/>
<aspectTerm from="41" polarity="neutral" term="track pad" to="50"/>
</aspectTerms>
</sentence>
<sentence>
<text>When I use the amazing trackpad for an extended period of time, it can become pretty uncomfortable to my right hand as it has to rest on the edge.</text>
<aspectTerms>
<aspectTerm from="23" polarity="conflict" term="trackpad" to="31"/>
</aspectTerms>
</sentence>
<sentence>
<text>If that edge were only rounded off a bit, it would be the perfect computer.</text>
<aspectTerms>
<aspectTerm from="66" polarity="conflict" term="computer" to="74"/>
</aspectTerms>
</sentence>
<sentence>
<text>When I follow the steps for conditioning the battery, I can get almost 10 hours out of it!</text>
<aspectTerms>
<aspectTerm from="45" polarity="positive" term="battery" to="52"/>
</aspectTerms>
</sentence>
<sentence>
<text>Love this computer!</text>
<aspectTerms>
<aspectTerm from="10" polarity="positive" term="computer" to="18"/>
</aspectTerms>
</sentence>
<sentence>
<text>The laptop arrived in a box that looked like it had been dropped in a puddle and we were worried that the actual laptop screen was going to be shattered upon opening.</text>
<aspectTerms>
<aspectTerm from="4" polarity="neutral" term="laptop" to="10"/>
<aspectTerm from="120" polarity="neutral" term="screen" to="126"/>
</aspectTerms>
</sentence>
<sentence>
<text>Fortunately the internal packaging was much better and no damage was done to the laptop.</text>
<aspectTerms>
<aspectTerm from="25" polarity="positive" term="packaging" to="34"/>
<aspectTerm from="81" polarity="neutral" term="laptop" to="87"/>
</aspectTerms>
</sentence>
<sentence>
<text>This was a gift for my son for Christmas, so other than making sure it powered up and the screen functioned, we did not do any other things to the gift so my son could enjoy the excitement of opening the laptop and going through the initial setup on his own.</text>
<aspectTerms>
<aspectTerm from="90" polarity="neutral" term="screen" to="96"/>
</aspectTerms>
</sentence>
<sentence>
<text>Christmas morning arrived and he was so excited.</text>
</sentence>
<sentence>
<text>However upon boot up, we disappointedly discovered that the laptop operating system of Windows 8 was never finished before it arrived to me and there were NO DISKS in the box to allow us to reinstall the operatling system.</text>
<aspectTerms>
<aspectTerm from="67" polarity="negative" term="operating system" to="83"/>
</aspectTerms>
</sentence>
<sentence>
<text>What a let down on Christmas morning.</text>
</sentence>
<sentence>
<text>We called Dell Customer Service and after an hour of trying this and trying that, they finally agreed to overnight the discs that should have been in the box to begin with.</text>
<aspectTerms>
<aspectTerm from="10" polarity="neutral" term="Dell Customer Service" to="31"/>
</aspectTerms>
</sentence>
<sentence>
<text>While my son was so excited and understood this was something out of our control, it would have been nice to be able to have the discs included in the packaging or have someone cofirmed that the computer was functional before it was packaged for retail.</text>
<aspectTerms>
<aspectTerm from="195" polarity="negative" term="computer" to="203"/>
</aspectTerms>
</sentence>
<sentence>
<text>All in all, my son LOVES his new computer and loves the look and feel of this product.</text>
<aspectTerms>
<aspectTerm from="33" polarity="positive" term="computer" to="41"/>
<aspectTerm from="56" polarity="positive" term="look" to="60"/>
<aspectTerm from="65" polarity="positive" term="feel" to="69"/>
</aspectTerms>
</sentence>
<sentence>
<text>It was just such a let down on Christmas morning not to have it functioning right out of the box and having to wait 2 days to get it up and running again.</text>
</sentence>
<sentence>
<text>This could have been avoided if a quality inspection was completed at the end of the software installation process.</text>
</sentence>
<sentence>
<text>Overall I am pleased with this purchase but I am having issues with the wireless Internet connection dropping out frequently.</text>
<aspectTerms>
<aspectTerm from="81" polarity="negative" term="Internet connection" to="100"/>
</aspectTerms>
</sentence>
<sentence>
<text>I have updated the driver but still get this weird drop about every 30 seconds every so often.</text>
<aspectTerms>
<aspectTerm from="19" polarity="neutral" term="driver" to="25"/>
</aspectTerms>
</sentence>
<sentence>
<text>It is not the connection in my house as I have other computers/iPads/etc.</text>
</sentence>
<sentence>
<text>running within a few feet of this location with no problems.</text>
</sentence>
<sentence>
<text>I have emailed ASUS tech support and they gave me the standard &quot;Download new drivers, change these settings, etc.&quot;</text>
<aspectTerms>
<aspectTerm from="15" polarity="neutral" term="ASUS tech support" to="32"/>
</aspectTerms>
</sentence>
<sentence>
<text>which I have already done.</text>
</sentence>
<sentence>
<text>The one thing they mention that I have been unable to find on my machine is something called &quot;Power4 Gear&quot; settings.</text>
<aspectTerms>
<aspectTerm from="107" polarity="neutral" term="settings" to="115"/>
</aspectTerms>
</sentence>
<sentence>
<text>I have looked everywhere with no success.</text>
</sentence>
<sentence>
<text>When I go to ASUS's download page there are about 75 different items available to download.</text>
</sentence>
<sentence>
<text>I'm obviously not going to download all of them but if anyone here has a good list of suggestions for the most important ones to get I would be very appreciative.</text>
</sentence>
<sentence>
<text>Mouse pad does not work correctly</text>
<aspectTerms>
<aspectTerm from="0" polarity="negative" term="Mouse pad" to="9"/>
</aspectTerms>
</sentence>
<sentence>
<text>I have to say that I was excited to be able to order a new laptop.</text>
</sentence>
<sentence>
<text>Now that I have it, I am having fun exploring and learning and experimenting.</text>
</sentence>
<sentence>
<text>I have a window 8 cell phone, so I thought it wouldn't be a big adjustment; and yet, WOW!</text>
</sentence>
<sentence>
<text>Learn.</text>
</sentence>
<sentence>
<text>Ing.</text>
</sentence>
<sentence>
<text>Curve!</text>
</sentence>
<sentence>
<text>But so far I'm happy.</text>
</sentence>
<sentence>
<text>I am pretty good with using computers and when I have a new program it usually doesn't take me long to figure it out, so I am having fun exploring and what not.</text>
<aspectTerms>
<aspectTerm from="28" polarity="neutral" term="computers" to="37"/>
<aspectTerm from="60" polarity="neutral" term="program" to="67"/>
</aspectTerms>
</sentence>
<sentence>
<text>If you are like my husband though, someone who does not do change well, buyer beware.</text>
</sentence>
<sentence>
<text>To me though, it just means he will leave my laptop alone!</text>
<aspectTerms>
<aspectTerm from="45" polarity="neutral" term="laptop" to="51"/>
</aspectTerms>
</sentence>
<sentence>
<text>(and that is a good thing)</text>
</sentence>
<sentence>
<text>I love this thing.</text>
</sentence>
<sentence>
<text>Bought a used/refurbished unit because I wasn't sure about Mac.</text>
</sentence>
<sentence>
<text>This thing is genius.</text>
</sentence>
<sentence>
<text>Everything works.</text>
</sentence>
<sentence>
<text>I will NEVER buy a PC again and if I ever have to replace this Mac, I will go back to this same seller.</text>
<aspectTerms>
<aspectTerm from="19" polarity="negative" term="PC" to="21"/>
<aspectTerm from="96" polarity="positive" term="seller" to="102"/>
</aspectTerms>
</sentence>
<sentence>
<text>Did I mention that I love this thing?</text>
</sentence>
<sentence>
<text>Bought it for my sister.</text>
</sentence>
<sentence>
<text>Shes not complaining.</text>
</sentence>
<sentence>
<text>Speakers are OK. Video chat isn't</text>
<aspectTerms>
<aspectTerm from="0" polarity="positive" term="Speakers" to="8"/>
<aspectTerm from="17" polarity="negative" term="Video chat" to="27"/>
</aspectTerms>
</sentence>
<sentence>
<text>It seems that some people like this computer and they were lucky.</text>
</sentence>
<sentence>
<text>My parents purcahsed this latop for me so I could work on my college assignments in the privacy of my dorm room.</text>
<aspectTerms>
<aspectTerm from="26" polarity="neutral" term="latop" to="31"/>
</aspectTerms>
</sentence>
<sentence>
<text>Six months after owning this computer I had to send it in to be repaired because the screen blacked out.</text>
<aspectTerms>
<aspectTerm from="85" polarity="negative" term="screen" to="91"/>
</aspectTerms>
</sentence>
<sentence>
<text>They returned it to me and it worked fine until the AC adpater suffered a short circut and died two months after I had gotten my screen fixed.</text>
<aspectTerms>
<aspectTerm from="52" polarity="negative" term="AC adpater" to="62"/>
<aspectTerm from="129" polarity="neutral" term="screen" to="135"/>
</aspectTerms>
</sentence>
<sentence>
<text>Since then I have had the screen replaced 4 times and DVD/CD drive replaced twice, and my touch pad repaired, and the mother board repaired three times, and the AC adapter replaced seven times and I am still have problems with this computer.</text>
<aspectTerms>
<aspectTerm from="26" polarity="negative" term="screen" to="32"/>
<aspectTerm from="54" polarity="negative" term="DVD/CD drive" to="66"/>
<aspectTerm from="90" polarity="negative" term="touch pad" to="99"/>
<aspectTerm from="118" polarity="negative" term="mother board" to="130"/>
<aspectTerm from="161" polarity="negative" term="AC adapter" to="171"/>
<aspectTerm from="232" polarity="negative" term="computer" to="240"/>
</aspectTerms>
</sentence>
<sentence>
<text>This computer was purchased from Circuit City.</text>
<aspectTerms>
<aspectTerm from="5" polarity="neutral" term="computer" to="13"/>
<aspectTerm from="33" polarity="neutral" term="Circuit City" to="45"/>
</aspectTerms>
</sentence>
<sentence>
<text>And they have done a horrible job with repairing this \\&quot;computer\\&quot;.</text>
</sentence>
<sentence>
<text>And the warrenty manufactuer GE will not honor their warrenties and will try to accuse you of purposely causing damage to your computer.</text>
<aspectTerms>
<aspectTerm from="8" polarity="negative" term="warrenty manufactuer GE" to="31"/>
<aspectTerm from="127" polarity="neutral" term="computer" to="135"/>
</aspectTerms>
</sentence>
<sentence>
<text>This item was a lemon and they refuse to replace it.</text>
</sentence>
<sentence>
<text>I will never buy another computer from HP/Compaq or do business with Circuit City again.</text>
<aspectTerms>
<aspectTerm from="39" polarity="negative" term="HP/Compaq" to="48"/>
<aspectTerm from="69" polarity="negative" term="Circuit City" to="81"/>
</aspectTerms>
</sentence>
<sentence>
<text>If you read this please save yourself the trouble and purcahse from another company.</text>
</sentence>
<sentence>
<text>Lenovo secretly added the serious \\&quot;superfish\\&quot; vulnerability to their laptops in an effort to feed you ads.</text>
<aspectTerms>
<aspectTerm from="0" polarity="negative" term="Lenovo" to="6"/>
</aspectTerms>
</sentence>
<sentence>
<text>Anyone can use the (now publicly known) security certificate to hijack or view your internet traffic over https, unbeknownst to you including credit cards and any other internet communications.</text>
</sentence>
<sentence>
<text>This betrayal of customer trust is inexcusable.</text>
</sentence>
<sentence>
<text>Avoid Lenovo until this is remedied and a thorough 3rd party audit confirms they haven't added other snooping bloatware and/or hardware.</text>
<aspectTerms>
<aspectTerm from="6" polarity="negative" term="Lenovo" to="12"/>
</aspectTerms>
</sentence>
<sentence>
<text>Fantastic!</text>
</sentence>
<sentence>
<text>!</text>
</sentence>
<sentence>
<text>Good value computer - it's already got a newer version so 'nuff said.</text>
<aspectTerms>
<aspectTerm from="11" polarity="positive" term="computer" to="19"/>
</aspectTerms>
</sentence>
<sentence>
<text>HP has little commitment to Quality or Customer satisfaction, Many of the G6 and now the G7 series have problems with the video chip, it runs too hot, overheats, and then you have no video.</text>
<aspectTerms>
<aspectTerm from="0" polarity="negative" term="HP" to="2"/>
<aspectTerm from="123" polarity="negative" term="video chip" to="133"/>
</aspectTerms>
</sentence>
<sentence>
<text>It cost $109 dollars for a replacement motherboard with the same bad design that won't last.</text>
<aspectTerms>
<aspectTerm from="39" polarity="negative" term="motherboard" to="50"/>
</aspectTerms>
</sentence>
<sentence>
<text>They know it but apparently do not care or they would perform a recall.</text>
</sentence>
<sentence>
<text>People shop for the lowest price therefore vendors cut quality everywhere they can to save a buck.</text>
</sentence>
<sentence>
<text>Well built laptop with win7.</text>
<aspectTerms>
<aspectTerm from="11" polarity="positive" term="laptop" to="17"/>
</aspectTerms>
</sentence>
<sentence>
<text>Arrived in brand new condition and run perfectly.</text>
<aspectTerms>
<aspectTerm from="21" polarity="positive" term="condition" to="30"/>
</aspectTerms>
</sentence>
<sentence>
<text>No issues.</text>
</sentence>
<sentence>
<text>I really like this laptop.</text>
<aspectTerms>
<aspectTerm from="19" polarity="positive" term="laptop" to="25"/>
</aspectTerms>
</sentence>
<sentence>
<text>It is fast and the keys and touch pad are well laid out.</text>
<aspectTerms>
<aspectTerm from="19" polarity="positive" term="keys" to="23"/>
<aspectTerm from="28" polarity="positive" term="touch pad" to="37"/>
</aspectTerms>
</sentence>
<sentence>
<text>I really hated windows 8, so glad I was able to find a program to give me back my classic windows desktop.</text>
<aspectTerms>
<aspectTerm from="15" polarity="negative" term="windows 8" to="24"/>
<aspectTerm from="90" polarity="positive" term="windows desktop" to="105"/>
</aspectTerms>
</sentence>
<sentence>
<text>This computer runs fine except for the internet, which can be very slow.</text>
<aspectTerms>
<aspectTerm from="5" polarity="conflict" term="computer" to="13"/>
<aspectTerm from="39" polarity="negative" term="internet" to="47"/>
</aspectTerms>
</sentence>
<sentence>
<text>I just learned that my internet problems are caused by the wireless network driver.</text>
<aspectTerms>
<aspectTerm from="68" polarity="negative" term="network driver" to="82"/>
</aspectTerms>
</sentence>
<sentence>
<text>It seems a certain proportion of these computers are shipped with a bad driver.</text>
<aspectTerms>
<aspectTerm from="72" polarity="negative" term="driver" to="78"/>
</aspectTerms>
</sentence>
<sentence>
<text>So far, the fixes haven't helped.</text>
</sentence>
<sentence>
<text>As I type this I'm waiting for another page to load.</text>
</sentence>
<sentence>
<text>My advice would be not to buy this or any other Lenovo product, as Lenovo does not acknowledge the problem.</text>
<aspectTerms>
<aspectTerm from="48" polarity="negative" term="Lenovo" to="54"/>
</aspectTerms>
</sentence>
<sentence>
<text>This will be my last Lenovo computer.</text>
<aspectTerms>
<aspectTerm from="21" polarity="negative" term="Lenovo" to="27"/>
</aspectTerms>
</sentence>
<sentence>
<text>Love this laptop was hesitate at first to purchase a laptop on line, it's already 3yrs old and working great!</text>
<aspectTerms>
<aspectTerm from="10" polarity="positive" term="laptop" to="16"/>
</aspectTerms>
</sentence>
<sentence>
<text>will get another one with a smaller screen!</text>
</sentence>
<sentence>
<text>I gotta say, I have been nothing but happy with Mac.</text>
<aspectTerms>
<aspectTerm from="48" polarity="positive" term="Mac" to="51"/>
</aspectTerms>
</sentence>
<sentence>
<text>The computer runs really well and their customer service is top notch.</text>
<aspectTerms>
<aspectTerm from="4" polarity="positive" term="computer" to="12"/>
<aspectTerm from="40" polarity="positive" term="customer service" to="56"/>
</aspectTerms>
</sentence>
<sentence>
<text>I got this after my Dell crashed w/ the Blue Screen of death (no matter what I did that thing was never working) So, I invested in the macbook pro which is good for me because I am a filmmajor and this is what I need to use final cut.</text>
<aspectTerms>
<aspectTerm from="20" polarity="negative" term="Dell" to="24"/>
<aspectTerm from="135" polarity="positive" term="macbook pro" to="146"/>
</aspectTerms>
</sentence>
<sentence>
<text>Great computer and great customer service.</text>
<aspectTerms>
<aspectTerm from="6" polarity="positive" term="computer" to="14"/>
<aspectTerm from="25" polarity="positive" term="customer service" to="41"/>
</aspectTerms>
</sentence>
<sentence>
<text>This was probably the best investment I made in my life!</text>
</sentence>
<sentence>
<text>I have two ASUS Tablets and both broke down.</text>
<aspectTerms>
<aspectTerm from="11" polarity="negative" term="ASUS Tablets" to="23"/>
</aspectTerms>
</sentence>
<sentence>
<text>So far this laptop is great.</text>
<aspectTerms>
<aspectTerm from="12" polarity="positive" term="laptop" to="18"/>
</aspectTerms>
</sentence>
<sentence>
<text>Very fast and easy to use.</text>
</sentence>
<sentence>
<text>I upgraded to 8.1</text>
</sentence>
<sentence>
<text>Not too fancy, but fits my requirements as a college student.</text>
</sentence>
<sentence>
<text>No disc drive and no light up keyboard.</text>
<aspectTerms>
<aspectTerm from="3" polarity="negative" term="disc drive" to="13"/>
<aspectTerm from="30" polarity="negative" term="keyboard" to="38"/>
</aspectTerms>
</sentence>
<sentence>
<text>Light, thin, fast, and holds a charge.</text>
</sentence>
<sentence>
<text>I had to buy office separately.</text>
</sentence>
<sentence>
<text>The mouse is terrible, but the touch screen works great.</text>
<aspectTerms>
<aspectTerm from="4" polarity="negative" term="mouse" to="9"/>
<aspectTerm from="31" polarity="positive" term="touch screen" to="43"/>
</aspectTerms>
</sentence>
</sentences>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -12,8 +12,8 @@ import readchar
from sty import fg, bg, ef, rs
from wcwidth import wcswidth
data_location = 'amazon_reviews_us_Camera_v1_00.tsv'
selected_reviews_location = 'reviews_to_be_annotated.xml'
data_location = 'amazon_data/amazon_reviews_us_PC_v1_00.tsv'
selected_reviews_location = 'pc_reviews_to_be_annotated.xml'
min_characters = 0
max_characters = 200
n = 500
......@@ -22,7 +22,7 @@ ann_bgs = {'positive': bg.green, 'neutral': bg.blue, 'negative': bg.red, 'confli
annotated_reviews_location = 'annotated_camera_reviews.xml'
included_labels = ['NN', 'NNS', 'NP', 'NNP', 'NNPS', 'DT', 'CD', 'FW', 'PRP$']
nouns = ['NN', 'NNS', 'NP', 'NNP', 'NNPS']
prepared_reviews_location = 'prepared_amazon_camera_reviews.xml'
prepared_reviews_location = 'annotated_amazon_laptop_reviews.xml'
tokenizer = TweetTokenizer()
sent_tokenizer = nltk.data.load('tokenizers/punkt/english.pickle')
......@@ -80,7 +80,10 @@ def prepare_reviews():
# drop reviews with empty review body
reviews = reviews[~reviews['review_body'].isnull()]
# try to filter out reviews for camera accessories
# laptop reviews
reviews = reviews[reviews['product_title'].str.contains('laptop', case=False, na=False)]
# try to filter out reviews for accessories
filter_words = ['accessor', 'batter', 'charger', 'tripod', 'strap', 'case', 'bag', 'filter',
'backpack', 'kit', 'printer', 'adapter', 'album', 'surveillance', 'security']
filter_pat = ''
......@@ -88,7 +91,7 @@ def prepare_reviews():
word_filter = '[' + word[0].upper() + word[0].lower() + ']' + word[1:]
filter_pat += word_filter + '|'
filter_pat = filter_pat[:-1]
reviews = reviews[~reviews['product_title'].str.contains(pat=filter_pat, regex=True)]
reviews = reviews[~reviews['product_title'].str.contains(pat=filter_pat, regex=True, case=False, na=False)]
# shuffle reviews
reviews = reviews.sample(frac=1).reset_index(drop=True)
......@@ -325,7 +328,7 @@ def prepare_annotated_reviews():
xmlstr = minidom.parseString(tostring(prepared_root)).toprettyxml(indent=' ')
xmlstr = os.linesep.join([s for s in xmlstr.splitlines() if s.strip()])
with open('amazon_camera_test.xml', 'w') as f:
with open(prepared_reviews_location, 'w') as f:
f.write(xmlstr)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment