All Projects → bobye → acl2017_document_clustering

bobye / acl2017_document_clustering

Licence: other
code for "Determining Gains Acquired from Word Embedding Quantitatively Using Discrete Distribution Clustering" ACL 2017

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to acl2017 document clustering

Movietaster Open
A practical movie recommend project based on Item2vec.
Stars: ✭ 253 (+1104.76%)
Mutual labels:  word2vec
Word2Vec-iOS
Word2Vec iOS port
Stars: ✭ 23 (+9.52%)
Mutual labels:  word2vec
word2vec-movies
Bag of words meets bags of popcorn in Python 3 中文教程
Stars: ✭ 54 (+157.14%)
Mutual labels:  word2vec
russe
RUSSE: Russian Semantic Evaluation.
Stars: ✭ 11 (-47.62%)
Mutual labels:  word2vec
Vaaku2Vec
Language Modeling and Text Classification in Malayalam Language using ULMFiT
Stars: ✭ 68 (+223.81%)
Mutual labels:  word2vec
two-stream-cnn
A two-stream convolutional neural network for learning abitrary similarity functions over two sets of training data
Stars: ✭ 24 (+14.29%)
Mutual labels:  word2vec
Book deeplearning in pytorch source
Stars: ✭ 236 (+1023.81%)
Mutual labels:  word2vec
Word-Embeddings-and-Document-Vectors
An evaluation of word-embeddings for classification
Stars: ✭ 32 (+52.38%)
Mutual labels:  word2vec
Word2VecAndTsne
Scripts demo-ing how to train a Word2Vec model and reduce its vector space
Stars: ✭ 45 (+114.29%)
Mutual labels:  word2vec
hyperstar
Hyperstar: Negative Sampling Improves Hypernymy Extraction Based on Projection Learning.
Stars: ✭ 24 (+14.29%)
Mutual labels:  word2vec
Simple-Sentence-Similarity
Exploring the simple sentence similarity measurements using word embeddings
Stars: ✭ 99 (+371.43%)
Mutual labels:  word2vec
word-embeddings-from-scratch
Creating word embeddings from scratch and visualize them on TensorBoard. Using trained embeddings in Keras.
Stars: ✭ 22 (+4.76%)
Mutual labels:  word2vec
skip-gram-Chinese
skip-gram for Chinese word2vec base on tensorflow
Stars: ✭ 20 (-4.76%)
Mutual labels:  word2vec
Cukatify
Cukatify is a music social media project
Stars: ✭ 21 (+0%)
Mutual labels:  word2vec
asm2vec
An unofficial implementation of asm2vec as a standalone python package
Stars: ✭ 127 (+504.76%)
Mutual labels:  word2vec
Aravec
AraVec is a pre-trained distributed word representation (word embedding) open source project which aims to provide the Arabic NLP research community with free to use and powerful word embedding models.
Stars: ✭ 239 (+1038.1%)
Mutual labels:  word2vec
Recommendation-based-on-sequence-
Recommendation based on sequence
Stars: ✭ 23 (+9.52%)
Mutual labels:  word2vec
stackoverflow-semantic-search
Word2Vec encodings based search engine for Stackoverflow questions
Stars: ✭ 23 (+9.52%)
Mutual labels:  word2vec
doc2vec-api
document embedding and machine learning script for beginners
Stars: ✭ 92 (+338.1%)
Mutual labels:  word2vec
GE-FSG
Graph Embedding via Frequent Subgraphs
Stars: ✭ 39 (+85.71%)
Mutual labels:  word2vec

Utilities related to D2 Clustering for Document Data

This repository includes python 2.7 scripts that process a document dataset file into .d2s format that is ready for applying software package d2_kmeans. The clustering result provided by d2_kmeans is then evaluated by different metrics. If you are interested in the software d2_kmeans and reproduce the results in the paper, please contact the author @JianboYe directly.

The utilities involved were used for generating part of the results reported in the following paper:

Jianbo Ye, Yanran Li, Zhaohui Wu, James Z. Wang, Wenjie Li, Jia Li, Determining Gains Acquired from Word Embedding Quantitatively Using Discrete Distribution Clustering, Proceedings of The Annual Meeting of the Association for Computational Linguistics (ACL), Vancouver, Canada, July 2017. Long paper.

Quickstart

Download sample datasets from the author's webpage.

$ wget http://infolab.stanford.edu/~wangz/project/linguistics/ACL17/acl2017dataset.zip
$ unzip acl2017dataset.zip 

Download pre-trained wordvecs, two of which are public downloadable.

Install python (version 2.7) and its dependencies. The tested versions are

  • numpy (1.9.2)
  • scipy (1.9.2)
  • sklearn (0.16.1)
  • cvxopt (1.1.7)
  • gensim (0.12.1)
  • nltk (3.0.5)
  • mosek (optional, 7.x)

You may need adapt the code to newer versions if needed.

After you configure the python environment properly, you can start from a sample dataset, say story_cluster.txt, and a wordvec model, say glove_6B_300d.bin. The following command create d2s formated data from story_cluster.txt. Edit the source for adapting to other datasets.

$ python export_d2s.py
raw categories: 54
document count: 1983
average words: 22
(1983, 4849)

It creates two files: story_cluster.d2s and story_cluster.d2s.vocab0. At this point, you need to request a patent protected C/MPI software called d2_kmeans. The software will take these two files are input and output clustering labels as a file named story_cluster.d2s_[xxxxxx].label_o in the same directory. Type the same command again to evaluate the result that was reported in the paper.

$ python export_d2s.py

如果你想尝试重现文章中的结果,还可以看这篇文章


The MIT License (MIT)

Copyright (c) 2017 Jianbo Ye

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].