Giter Site home page Giter Site logo

oumaimafassi / word2vec-pride-vis Goto Github PK

View Code? Open in Web Editor NEW

This project forked from arnicas/word2vec-pride-vis

0.0 1.0 0.0 29 MB

A hack to replace Pride & Prejudice text with closest word2vec model word, and visualize results.

Jupyter Notebook 84.40% HTML 8.85% CSS 2.16% Python 3.80% R 0.79%

word2vec-pride-vis's Introduction

word2vec-pride-vis

A hack to replace Pride & Predjudice text with closest word2vec model word, and visualize results.

To use this, you need Python packages gensim, pattern.py. Local tsne.py is provided here.

IPython notebook viewer link: http://nbviewer.ipython.org/github/arnicas/word2vec-pride-vis/blob/master/Python-Word2Vec-PrideProcessor.ipynb

If you want to run this and modify any part (different parts of speech, etc), the web part needs these updates:

  • Right-click and save the graph png into your data directory
  • Change the path in the css file for the #graph background to point to that png file
  • Make sure the dimensions of the graph match the dimensions in XLIM, YLIM in the web.html script part
  • Change the path to the coords file in the web.html script part
  • Start a server and load your web page (eg., python -m SimpleHTTPServer 8000)

Live version: http://www.ghostweather.com/files/word2vecpride/

Blog post with more details about what this is: http://blogger.ghostweather.com/2014/11/visualizing-word-embeddings-in-pride.html

word2vec-pride-vis's People

Contributors

arnicas avatar

Watchers

James Cloos 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.