首页 » Python代写 » Python代写|COM3110 Assignment: Sentiment Analysis of Movie Reviews

Python代写|COM3110 Assignment: Sentiment Analysis of Movie Reviews

本次英国代写是一个Python机器学习文本处理的assignment

1 Project Description

The aim of this project is to implement a machine learning model based on Naive Bayes for a
sentiment analysis task using the Rotten Tomatoes movie review dataset. Obstacles like sen
tence negation, sarcasm, terseness, language ambiguity, and many others make this task very
challenging.

3 Data Description

The dataset is a corpus of movie reviews originally collected by Pang and Lee. This dataset
contains tab-separated files with phrases from the Rotten Tomatoes dataset. The data are split
into train/dev/test sets and the sentences are shuffled from their original order.

• Each sentence has a SentenceId.
• They all have been tokenized already.

The training, dev and test set contain respectively 7529, 1000 and 3310 sentences. The sentences
are labelled on a scale of five values:
0. negative
1. somewhat negative
2. neutral
3. somewhat positive
4. positive

In the following table you can find several sentences and their sentiment score.

4 Evaluation

Systems are evaluated according to macro-F1 score, i.e. the mean of the class-wise F1-scores:

blank

where N is the number of classes. F1–score is calculated for each class i:

blank

5 Project Roadmap

1. Implement some preprocessing steps:

• You are free to add any preprocessing step (e.g. lowercasing) before training your
models. Explain what you did in your report.

• Implement a function to map the 5-value sentiment scale to a 3-value sentiment scale.

Namely, the labels “negative” (value 0) and “somewhat negative” (value 1) are merged
into label “negative” (value 0). “Neutral” (value 2) will be mapped to “neutral” (value

1). And finally, “somewhat positive” (value 3) and “positive” (value 4) will be mapped
to the label “positive” (value 2).


程序辅导定制C/C++/JAVA/安卓/PYTHON/留学生/PHP/APP开发/MATLAB


blank

本网站支持 Alipay WeChatPay PayPal等支付方式

E-mail: vipdue@outlook.com  微信号:vipnxx


如果您使用手机请先保存二维码,微信识别。如果用电脑,直接掏出手机果断扫描。

blank