NLP Homework 4Sentiment Analysis of Amazon Product ReviewsIt is increasingly common that Internet users engage in various of online reviews. The availability of thesereview content offers researchers opportunities to better understand and model online social behavior. In thishomework, you will conduct sentiment analysis to gain some understanding about the Amazon productreviews.1. DatasetIn this problem, you will analyze the review contents from Amazon Product Data provided by Julian McAuleyat http://jmcauley.ucsd.edu/data/amazon/. This dataset contains product reviews and metadata from Amazon,including 142.8 million reviews spanning May 1996 – July 2014. It includes reviews (ratings, text, helpfulnessvotes), product metadata (descriptions, category information, price, brand, and image features), and links (alsoviewed/also bought graphs).For our tasks, we will use only 5-core subsets of three categories (Baby / Clothing, Shoes and Jewelry / Healthand Personal Care). 5-core subsets mean that all users and items in the dataset have at least 5 reviews.Originally, the dataset was a zipped file of json format and the content was arranged in dictionaries. For yourconvenience, the dataset was modified into text file and is available for download in the Assignment folder inthe course web site: Baby.txt and clothing_shoes_jewelry.txt. You should choose one of them for the analysis.Here are the screenshots of a raw data and a modified review file:2Fig 1. Raw dataFig 2. Modified review file used for the task- reviewerID:ID of the reviewer- asin: ID of the product- reviewerName: name of thereviewer- helpful: helpfulness rating of the review, e.g. 2/3- reviewText: text of theproduct- overall: rating of theproduct- summary: summary of thereview- unixReviewTime: time of the review (unix time)- reviewTime: time of the review (raw)2. Data Pre-processing (20%)You will write a Python code that extracts only review texts. Please submit the sample screenshot of theoutput (included in your report file).3. Sentiment Analysis (80%)Based on what we have learned from this class, you will explore the sentiment of the comments at the3sentence level. This includes how to process the words and how to conduct the sentiment analysis usingclassifiers. Ultimately, you will provide two lists of sentences: one is marked as negNLP代寫、Python編程語(yǔ)言代做鲸湃、代寫Sentimentative and the other aspositive, your Python code and screenshot, and your report.In your report, please explain in detail the processing techniques that you have applied, the features you usedfor the classification task, and your experiments. For the data preprocessing/cleaning task, we have learnedabout several techniques such as tokenization, sentence creation, regular expression processing, stop wordfiltering, etc. You should describe the techniques you used in this assignment.For the classification task and the experiments, you should start with the “bag-of-words” features where youcollect all the words in the sentence_polarity corpus and select some number of most frequent words to be theword features. You should use at least NaiveBayes classifier to train and test a classifier on your feature sets.If possible, i.e., if time and space permit, you should use cross-validation to obtain precision, recall, and Fmeasurescores. In your experiments, you should use at least two different sets of features and compare theresults. For example, you may take the unigram word features as a baseline and see if the features youdesigned improve the accuracy of the classification. Here are some of the types of experiments that we havedone so far:? Filter by stop words or other pre-processing methods? Representing negation? Using a sentiment lexicon with scores or counts: Subjectivity4. Bonus Credit (10%)You do not need to work on the following tast, but if you do and do well, you will have 10% bonus credit forthis assignment.Choose an additional, more advanced type of task from this list, or propose your own? Using Weka or SciKit Learn classifiers with features produced in NLTK? Using an additional type of lexicon besides Subjectivity? Implement additional featuresThe student with the best performance will be invited to participate in a research project with the instructorand/or co-author a paper related to NLP analysis of the Amazon product reviews.How to Submit Homework:4Go to the Blackboard system and the Assignment for Homework 4. Attach your report file and submit. Yoursubmission should include:1) your report in a PDF format2) Table including two lists of sentences: negative vs positive (Please include in your report)3) Your Python code and the processing screenshots (Please submit in one separate folder zipped)轉(zhuǎn)自:http://www.3daixie.com/contents/11/3444.html
講解:NLP、Python瘫怜、Sentiment Analysis术徊、PythonMatlab|Pytho
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
- 文/潘曉璐 我一進(jìn)店門国拇,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人听系,你說我怎么就攤上這事贝奇。” “怎么了靠胜?”我有些...
- 文/不壞的土叔 我叫張陵掉瞳,是天一觀的道長(zhǎng)。 經(jīng)常有香客問我浪漠,道長(zhǎng)陕习,這世上最難降的妖魔是什么? 我笑而不...
- 正文 為了忘掉前任址愿,我火速辦了婚禮该镣,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘响谓。我一直安慰自己损合,他們只是感情好省艳,可當(dāng)我...
- 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著嫁审,像睡著了一般跋炕。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上律适,一...
- 文/蒼蘭香墨 我猛地睜開眼,長(zhǎng)吁一口氣:“原來是場(chǎng)噩夢(mèng)啊……” “哼吁系!你這毒婦竟也來了德召?” 一聲冷哼從身側(cè)響起,我...
- 序言:老撾萬(wàn)榮一對(duì)情侶失蹤汽纤,失蹤者是張志新(化名)和其女友劉穎上岗,沒想到半個(gè)月后,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體蕴坪,經(jīng)...
- 正文 獨(dú)居荒郊野嶺守林人離奇死亡肴掷,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
- 正文 我和宋清朗相戀三年,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了背传。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片呆瞻。...
- 正文 年R本政府宣布赞赖,位于F島的核電站,受9級(jí)特大地震影響冤灾,放射性物質(zhì)發(fā)生泄漏前域。R本人自食惡果不足惜,卻給世界環(huán)境...
- 文/蒙蒙 一韵吨、第九天 我趴在偏房一處隱蔽的房頂上張望匿垄。 院中可真熱鬧,春花似錦、人聲如沸椿疗。這莊子的主人今日做“春日...
- 文/蒼蘭香墨 我抬頭看了看天上的太陽(yáng)变丧。三九已至芽狗,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間痒蓬,已是汗流浹背。 一陣腳步聲響...
- 正文 我出身青樓班挖,卻偏偏與公主長(zhǎng)得像鲁捏,于是被迫代替她去往敵國(guó)和親。 傳聞我的和親對(duì)象是個(gè)殘疾皇子萧芙,可洞房花燭夜當(dāng)晚...
推薦閱讀更多精彩內(nèi)容
- **2014真題Directions:Read the following text. Choose the be...
- NLP Homework 4Sentiment Analysis of Amazon Product Review...
- [TOC] 介紹 godep是解決包依賴的管理工具运吓,目前最主流的一種,原理是掃描記錄版本控制的信息疯趟,并在go命令前...
- package com.cy.basic; /** n表示打印幾行 i控制每一行 j控制*的個(gè)數(shù) k控制空格數(shù) 解...