Git Product home page Git Product logo

imdb_word2vec_kaggle's Introduction

IMDB sentiment analysis with Word2Vec (Kaggle)

Project Created at Sep. 2020

task link

Use Google's Word2Vec for movie reviews

Data Set:

  • The labeled data set consists of 50,000 IMDB movie reviews, specially selected for sentiment analysis.
  • The sentiment of reviews is binary, meaning the IMDB rating < 5 results in a sentiment score of 0, and rating >=7 have a sentiment score of 1.
  • No individual movie has more than 30 reviews. The 25,000 review labeled training set does not include any of the same movies as the 25,000 review test set.
  • In addition, there are another 50,000 IMDB reviews provided without any rating labels.

Task:

Method 1. Predict labeded Data by BOW, tf-idf and MultinomialNB.

a. check basic info of dataset
b. data cleaning with stopwords (use NLTK)
c. Build model by CountVectorizer and MultinomialNB (use GridsearhCV and Pipline)
d. Build model by TfidfVectorizer and MultinomialNB (use GridsearhCV and Pipline)
e. Kaggle data submission

Method 2. Use Word2Vec and Tree-based models to do prediction.

a. Train Word2Vec model by unlabeled data
b. Turn labeled reviews data into vectors by trained Word2Vec model
c. Fit the vector data by GBDT and do prediction.
d. Fit the vector data by XGboost and do prediction.
e. Kaggle data submission

Kaggle submission result

subsmission result

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.