Giter VIP home page Giter VIP logo

skip-gram_model-tensorflow's Introduction

Skip-Gram-Model-TensorFlow

TensorFlow implementation of the word2vec (skip-gram model)


My PyTorch implemntation of Skip-Gram Model can be found here.

Requirements

  • tensorflow >= 2.0
  • numpy >= 1.18
  • matplotlib
  • tqdm
  • nltk
  • gensim

Training

python main.py

Visualizing real-time training loss in Tensorboard

tensorboard --logdir <PATH_TO_TENSORBOARD_EVENTS_FILE>

NOTE: By default, PATH_TO_TENSORBOARD_EVENTS_FILE is set to SUMMARY_DIR in config.py

Sharing the training loss for Visualization in real-time using Tensorboard

tensorboard dev upload--logdir <PATH_TO_TENSORBOARD_EVENTS_FILE>

Testing

python test.py

Inference

war india crime guitar movies desert physics religion football computer
invasion provinces will bass movie shore mathematics judaism baseball digital
soviet pakistan prosecution drum albums hilly mathematical islam championship computers
troop mainland accusations solo songs plateau chemistry religions basketball software
army asian provoke quartet cartoon basin theoretical religious coach electronic
ally colonial prosecute vocals animate highlands analysis jewish wrestler interface

Blog-Post

Check out my blog post on word2vec here.

skip-gram_model-tensorflow's People

Contributors

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