Coder Social home page Coder Social logo

yelp_w2v's Introduction

Yelp Review Word2vec

這是根據 Yelp 資料集中的 Review 內的內容所作的 word2vec ~

資料集

資料集內容可以參考Yelp Dataset,有針對 Dataset 的內容說明

這裡所使用的是其中一個 review.json 內 text 欄位的內容來作 word2vec

程式

主要分成以下幾個部分:

第一個部分 : 清理文字內容,可以參考 yelp_review_preprocess.py (不使用stopword,因此將該段註解掉)

第二個部分 : 建立 word2vec 模型,為了方便執行,因此分成兩個

     * CBOW(Continuous bag of words) : yelp_review_w2v_cbow.py

     * Skip-Gram : yelp_review_w2v_skgram.py

第三個部分 : 進行檢視訓練後的結果,可以參考 yelp_review.ipynb

模型

  1. CBOW(Continuous bag of words) : yelp_cbow

  2. Skip-Gram : yelp_skipgram

清理資料時有使用 stop words 後所建立的模型,

  1. CBOW(Continuous bag of words) : yelp_cbow_stopwords

  2. Skip-Gram : yelp_skipgram_stopwords

參考資料

  1. Yelp Dataset
  2. https://www.kaggle.com/vksbhandary/exploring-yelp-reviews-dataset
  3. https://towardsdatascience.com/nlp-for-beginners-cleaning-preprocessing-text-data-ae8e306bef0f
  4. https://www.kaggle.com/liananapalkova/simply-about-word2vec/notebook
  5. https://www.kaggle.com/itratrahman/nlp-tutorial-using-python

yelp_w2v's People

Contributors

juidasci 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.