Giter Site home page Giter Site logo

review-helpfulness-prediction's Introduction

Review Helpfulness Prediction

  1. Intro: Project of automatically finding helpful reviews.

Using text mining technique. Include natural language processing, sentiment analysis and machine learning technique.
Language: Python. (standard library: xlrd, jieba, gensim, nltk, scikit-learn)

This project include four main parts:

  1. Review data set

  2. Text preprocessing module.

  3. Review helpfulness feature extraction module.

  4. Review helpfulness prediction module.

  5. Review data set


This dataset include review data of 7 cellphone brands grabbed from (http://mobile.zol.com.cn).

  1. Text preprocessing module

Functions include: Read txt file and excel file, doing Chinese word segmentation and postag.

Using Python xlrd library to read excel data.
Using Python jieba library to do Chinese word segmentation and postag

Files include:
User dictionary to increase segmentation accuracy.
Stopwords and sentiment stopwords to filter irrelevant words.

  1. Feature extraction module

There is four categories of review helpfulness feature.

  • Linguistic features
    6 features including review words and sentences number, review average length, review adjectives, adverbs and verbs number.
  • Informative features
    4 features including product name, brand and attributes' appearing times in a review. And review centroid score.
  • Difference features
    2 features including review entropy and perplexity socre.
  • Sentiment feautres
    8 features including review positive/negative score, average score and standard deviation score. And review positive/negative probability score.

Using Python nltk library to compute review entropy/perplexity and doing sentiment analysis.
Using Python gensim library to calculate review words tf-idf weight.

Files include:
Labeled positive and negative review corpus.
Trained sentiment classifier, aim to automatically classify review positive and negative.
Sentiment dictionary including positive and negative words and adverbs of degree.
Raw sentiment dictionary including Hownet and NTUSD.

  1. Review helpfulness prediction module

This module use features calculated from above module as training set. Using machine learning method to train review helpfulness classifier. We test five popular machine learning algorithm and use cross validation method to evaluate helpfulness prediction accuracy.

Using Python scikit-learn library to train classifier and evaluated classifier performance.

Files include:
Feature vector matrix with different threshold.

review-helpfulness-prediction's People

Contributors

azure-rong avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.