Code Monkey home page Code Monkey logo

graphbtm's Introduction

GraphBTM

This repository contains the code for ourl EMNLP 2018 paper "GraphBTM: Graph Enhanced Autoencoded Variational Inference for Biterm Topic Model", you can find here.

Some code are based on the pytorch implementation of AVITM: https://github.com/hyqneuron/pytorch-avitm The Topic Coherence Evaluation is from: https://github.com/jhlau/topic_interpretability Thanks for sharing code!

Requirements

  • python 3.6
  • pytorch 0.4
  • numpy
  • python 2.7 for topic coherence evaluation

How to use

$ python pytorch_run.py --start

It may take some time to generate the biterms (it's too large to upload the pickle, so I upload the original files). It will generate the top 10 words in each topic after each epoch in 'topic_interpretability/data/topics_20news.txt', and you can use the code in the topic_interpretability folder:

$ ./run-oc.sh

If you find the code helpful, please kindly cite the paper:

> @InProceedings{D18-1495,
  author = 	"Zhu, Qile and Feng, Zheng and Li, Xiaolin",
  title = 	"GraphBTM: Graph Enhanced Autoencoded Variational Inference for Biterm Topic Model",
  booktitle = 	"Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing",
  year = 	"2018",
  publisher = 	"Association for Computational Linguistics",
  pages = 	"4663--4672",
  location = 	"Brussels, Belgium",
  url = 	"http://aclweb.org/anthology/D18-1495"
}

graphbtm's People

Contributors

valdersoul 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.