Doc2VecC from the paper "Efficient Vector Representation for Documents through Corruption"
Switch branches/tags
Nothing to show
Clone or download
mchen24 Update doc2vecc.c
target word can also be sampled in representing the sentence
Latest commit 8e9ebe4 Mar 23, 2017
Failed to load latest commit information.
LICENSE add readme Feb 28, 2017 modify readme Feb 28, 2017
doc2vecc.c Update doc2vecc.c Mar 23, 2017 add readme Feb 28, 2017


code from the paper Efficient Vector Representation for Documents Through Corruption.


The code was modified from Thomas Mikolov's code on Paragraph Vector.!msg/word2vec-toolkit/Q49FIrNOQRo/J6KG8mUj45sJ


You will need to download the liblinear package, and change the path to the package in the script accordingly.

Getting started

Run the script, it will download the IMDB movie review dataset, and learn document representations on this dataset. A linear SVM is trained on the learned representation fo sentiment analysis.


If you found this code useful, please cite the following paper:

Minmin Chen. "Efficient Vector Representation for Documents Through Corruption." 5th International Conference on Learning Representations, ICLR (2017).

  title={Efficient Vector Representation for Documents Through Corruption},
  author={Chen, Minmin},
  journal={5th International Conference on Learning Representations},


Apache License 2.0