piskvorky/gensim — pull request #162 by cod3licious (2014-02-08 21:24:47+00:00)
Title: W2v negsam

added negative sampling to the python train_sentence function for the skipgram model and all additionally needed functions. in build_vocab, if negative sampling is used, there is a big table for the noise word distribution created, which is saved in model.table. this takes quite a bit of RAM and should probably be deleted before saving the model (it's only needed for training anyways).