This project is a tensorflow implement of our work, CCM.
Alternatives To Ccm
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Tflearn9,51248182 years ago6November 11, 2020566otherPython
Deep learning library featuring a higher-level API for TensorFlow.
2 months ago644gpl-3.0Python
Translate darknet to tensorflow. Load trained weights, retrain/fine-tune using tensorflow, export constant graph def to mobile devices
76 months ago7January 29, 20205apache-2.0Python
Build Graph Nets in Tensorflow
2 years ago217otherShell
TensorFlow for macOS 11.0+ accelerated using Apple's ML Compute framework.
Yolov3 Tf22,480
2 months ago168mitJupyter Notebook
YoloV3 Implemented in Tensorflow 2.0
2 months ago61bsd-3-clausePython
Deep Learning toolkit for Computer Vision.
Spektral2,25932 days ago33April 09, 202262mitPython
Graph Neural Networks with Keras and Tensorflow 2.
14 months ago6February 04, 202115apache-2.0Go
Tensorflow + Go, the gopher way
2 years ago27mitPython
Graph Attention Networks (
7 years ago1
图解tensorflow 源码
Alternatives To Ccm
Select To Compare

Alternative Project Comparisons

Commonsense Knowledge Aware Conversation Generation with Graph Attention


Commonsense knowledge is vital to many natural language processing tasks. In this paper, we present a novel open-domain conversation generation model to demonstrate how large-scale commonsense knowledge can facilitate language understanding and generation. Given a user post, the model retrieves relevant knowledge graphs from a knowledge base and then encodes the graphs with a static graph attention mechanism, which augments the semantic information of the post and thus supports better understanding of the post. Then, during word generation, the model attentively reads the retrieved knowledge graphs and the knowledge triples within each graph to facilitate better generation through a dynamic graph attention mechanism, as shown in Figure 1.


This project is a tensorflow implement of our work, CCM.


  • Python 2.7
  • Numpy
  • Tensorflow 1.3.0

Quick Start

  • Dataset

    Commonsense Conversation Dataset contains one-turn post-response pairs with the corresponding commonsense knowledge graphs. Each pair is associated with some knowledge graphs retrieved from ConceptNet. We have applied some filtering rules to retain high-quality and useful knowledge graphs.

    Please download the Commonsense Conversation Dataset to data directory.

  • Train


    The model will achieve the expected performance after 20 epochs.

  • Test

    python --is_train False

    You can test the model using this command. The statistical result and the text result will be output to the 'test.res' file and the 'test.log' file respectively.



You can change the model parameters using:

--units xxx 				the hidden units
--layers xxx 				the number of RNN layers
--batch_size xxx 			batch size to use during training 
--per_checkpoint xxx 			steps to save and evaluate the model
--train_dir xxx				training directory




Hao Zhou, Tom Yang, Minlie Huang, Haizhou Zhao, Jingfang Xu, Xiaoyan Zhu.
Commonsense Knowledge Aware Conversation Generation with Graph Attention.
IJCAI-ECAI 2018, Stockholm, Sweden.

Please kindly cite our paper if this paper and the code are helpful.


Thanks for the kind help of Prof. Minlie Huang and Prof. Xiaoyan Zhu. Thanks for the support of my teammates.


Apache License 2.0

Popular Tensorflow Projects
Popular Graph Projects
Popular Machine Learning Categories

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.