Giter Club home page Giter Club logo

word-embeddings-workshop's Introduction

This is the repository for the word embeddings session at the Demystifying Deep Learning conference and the Practical AI for Women day-long event. A video of the workshop is available here.

The session will include a presentation, as well as a demo in Python. Below are instructions on how to set up the demo yourself, if you choose. If you are not comfortable doing so or don't code, no problem, you will still get a lot out of the session.

We will be using a dataset of pretrained and pre-processed GloVe word embeddings available at http://files.fast.ai/models/

To download and unzip the files from the command line, you can run:

wget http://files.fast.ai/models/glove_50_glove_100.tgz 
tar xvzf glove_50_glove_100.tgz

I recommend downloading Anaconda, which contains the main Python scientific libraries. Alternately, you can create a virtual environment and install the necessary requirements:

virtualenv env
source env/bin/activate
pip install -r requirements.txt

To start the jupyter notebook from the command line:

jupyter notebook

word-embeddings-workshop's People

Contributors

racheltho avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

word-embeddings-workshop's Issues

NameError: name 'subset' is not defined

Error when running TSNE example

tsne = manifold.TSNE(n_components=3, init='pca', random_state=0)
Y = tsne.fit_transform(subset)
plotly_3d(Y, categories)

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-59-593a3f79962b> in <module>()
      1 tsne = manifold.TSNE(n_components=3, init='pca', random_state=0)
----> 2 Y = tsne.fit_transform(subset)
      3 plotly_3d(Y, categories)

NameError: name 'subset' is not defined

Error opening words.txt on Windows

It's required to specify code page UTF-8 when running the notebook on windows, otherwise a code page error occurs. Might be a good idea to explicitly specify code page and mode when opening the file - as long as it's also compatible with Linux, by including the parameters , 'r', encoding="utf8":

with open('words.txt', 'r', encoding="utf8") as f:
content = f.readlines()
words = [x.strip() for x in content]

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.