GithubHelp home page GithubHelp logo

chaiyiping / paragraph-vector Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hassygo/paragraph-vector

0.0 2.0 0.0 292 KB

paragraph vector trained by negative sampling

Makefile 4.39% C++ 93.96% Shell 1.65%

paragraph-vector's Introduction

paragraph-vector

paragraph vector trained by negative sampling
This project requires a template library for linear algebra: Eigen (http://eigen.tuxfamily.org/index.php?title=Main_Page)

An online demo is available at: http://www.logos.t.u-tokyo.ac.jp/~hassy/implementations/paragraph_vector/

ToDo

  • speedup the code
  • make it possible to train unknown paragraphs, such as paragprahs in test data

USAGE

  1. modify the line in Makefile to use Eigen
    EIGEN_LOCATION=$$HOME/local/eigen #Change this line

  2. run the command "make" or run the script "sample.sh"

  3. train a model using your corpus which should have a paragraph (or document, sentence) in each line
    ./paragraph_vector -input input.txt -output result
    (run "./paragraph_vector -help" or see Utils.hpp for other options)

  4. use the resulting files for your purpose
    result.bin
    result.pv: each line has a paragraph ID and real values of its vector representation
    result.wv: each line has a word and real values of its vector representation

Reference

Quoc Le, Tomas Mikolov. Distributed Representations of Sentences and Documents. 2014. Proceedings of the 31st International Conference on Machine Learning (ICML-14), pages 1188--1196.

paragraph-vector's People

Watchers

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