heshizhu / word2vec_torch Goto Github PK
View Code? Open in Web Editor NEWThis project forked from yoonkim/word2vec_torch
Word2Vec implementation in Torch
This project forked from yoonkim/word2vec_torch
Word2Vec implementation in Torch
Word2Vec in Torch Yoon Kim [email protected] Only has the skip-gram architecture with negative sampling. See https://code.google.com/p/word2vec/ for more details. Note: This is considerably slower than the word2vec toolkit and gensim implementations. Input file is a text file where each line represents one sentence (see corpus.txt for an example) Arguments are mostly self-explanatory (see main.lua for default arguments) -corpus : text file with the corpus -window : max window size -dim : dimensionality of word embeddings -alpha : exponent to smooth out unigram distribution -table_size : unigram table size. if you have plenty of RAM, bring this up to 10^8 -neg_samples : number of negative samples for each valid word-context pair -minfreq : minimum frequency to be included in the vocab -lr : starting learning rate -min_lr : minimum learning rate--lr will linearly decay to this value -epochs : number of epochs to run -stream : whether to stream text data from HD or store in memory (1 = stream, 0 = not) -gpu : whether to use gpu (1 = use gpu, 0 = not) For example: CPU: th main.lua -corpus corpus.txt -window 3 -dim 100 -minfreq 10 -stream 1 -gpu 0 GPU: th main.lua -corpus corpus.txt -window 3 -dim 100 -minfreq 10 -stream 0 -gpu 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.