Giter Club home page Giter Club logo

fasttext_subwordembedding's Introduction

FastText_SubwordEmbedding

Implement SkipGram with Negative Sampling, Subsampling and SubwordEmbedding(FastText) using character n-grams in word2vec.py

referenced by Piotr Bojanowski∗, Edouard Grave∗, Armand Joulin, Tomas Mikolov, “Enriching Word Vectors with Subword Information”, ACL 2017

Korea University Information Retrieval(COSE 472) Assignment5


ft

  • this model use 2,3,4 and special grams

If you run "word2vec.py", you can train and test your models.

How to run

python word2vec.py [mode] [partition] [update_system] [sub_sampling]
  • mode

    • "SG" for skipgram only
  • partition

    • "part" if you want to train on a part of corpus (fast training but worse performance)
    • "full" if you want to train on full corpus (better performance but very slow training)
  • update_system

    • "NS" for Negative Sampling only
  • sub_sampling

    • True or False

Result

fasttext_subwordembedding's People

Contributors

ksh981214 avatar

Stargazers

Choi-Jong-Chan   avatar Mikael Brunila avatar

Watchers

 avatar paper2code - bot 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.