Giter Site home page Giter Site logo

nlp-extra-credit's Introduction

NLP-extra-credit

NLP-extra-credit

First things first, clone this repo to get started.

Okay, so this is a lecture on how to use tensorflow to build a neural network to classify text using word2vec.

First thing, tensorflow is amazingly annoying. It is always breaking in the strangest ways. So what you have to do is to first create a virtual environment.

You might have to run pip install virtualenv if you dont have virtual env installed yet.

First, navigate to this folder, and run the following commands in your terminal:

mkdir env
python3 -m venv env/
source env/bin/activate

That creates a virtual env, and activates it.

Once you have created your virtual env, you have to install the packages so you run this command: pip install -r requirements.txt

Next, what we need to do is to download and extract the pre-trained word2vec model. You download it here. It's a zipped file, so unzip it and place the glove.6B.100d.txt file in the models folder.

Once you do that, you should be able to run jupyter notebook. If you dont know how to run a jupyter notebook you obviously have been sleeping through ever class. Then follow along in the files with the video.

nlp-extra-credit's People

Contributors

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