Giter Site home page Giter Site logo

aarthy2000 / kaggle_bag-of-words-meets-bags-of-popcorns Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aszx4510/kaggle_bag-of-words-meets-bags-of-popcorns

0.0 1.0 0.0 36 KB

A experiment for Bag of Words Meets Bags of Popcorn on Kaggle (https://www.kaggle.com/c/word2vec-nlp-tutorial)

Python 100.00%

kaggle_bag-of-words-meets-bags-of-popcorns's Introduction

This is a repo for Bag of Words Meets Bags of Popcorn on Kaggle

Experiment Flow

  • Data preprocessing
  • Generate word2vec data
  • Train a CNN model for text classification
  • Predict testing data

Data preprocessing

  • Observe data format
  • Statistics
  • Data cleaning
  • word2vec

Preprocessing steps of data cleaning

  1. Remove the " character at the start/end of review
  2. Replace \" to "
  3. Replace multiple <br /> to space character
  4. Tokenize the whole review (article)
  5. Lemmatize all words

Preprocessing steps of generating word2vec files

  1. Remove the " character at the start/end of review
  2. Replace \" to "
  3. Replace multiple <br /> to space character
  4. Split sentences from review (article)
  5. Tokenize all sentences
  6. Lemmatize all words

Convolution Neural Network (CNN) Model

  1. Preprocessing for CNN training data
  2. Training model
  3. Test model by validation set
  4. Find out a good model
  5. Generate predict by the good model

preprocessing for CNN training data

  1. Split data into training set and validation set
  2. Index all words in word2vec
  3. Encode all the words of reviews in training data and validation data

kaggle_bag-of-words-meets-bags-of-popcorns's People

Contributors

aszx4510 avatar

Watchers

 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.