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编程语言代做、代写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)转自:http://www.3daixie.com/contents/11/3444.html
讲解:NLP、Python、Sentiment Analysis、PythonMatlab|Pytho
©著作权归作者所有,转载或内容合作请联系作者
- 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
- 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
- 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
推荐阅读更多精彩内容
- NLP Homework 4Sentiment Analysis of Amazon Product Review...
- [TOC] 介绍 godep是解决包依赖的管理工具,目前最主流的一种,原理是扫描记录版本控制的信息,并在go命令前...
- package com.cy.basic; /** n表示打印几行 i控制每一行 j控制*的个数 k控制空格数 解...