Ccm

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.
Darkflow6,082
2 months ago644gpl-3.0Python
Translate darknet to tensorflow. Load trained weights, retrain/fine-tune using tensorflow, export constant graph def to mobile devices
Graph_nets5,188
76 months ago7January 29, 20205apache-2.0Python
Build Graph Nets in Tensorflow
Tensorflow_macos3,182
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
Luminoth2,395
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.
Tfgo2,159
14 months ago6February 04, 202115apache-2.0Go
Tensorflow + Go, the gopher way
Gat2,078
2 years ago27mitPython
Graph Attention Networks (https://arxiv.org/abs/1710.10903)
Tensorflow2,033
7 years ago1
图解tensorflow 源码
Alternatives To Ccm
Select To Compare


Alternative Project Comparisons
Readme

Commonsense Knowledge Aware Conversation Generation with Graph Attention

Introduction

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.

image

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

Dependencies

  • 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

    python main.py

    The model will achieve the expected performance after 20 epochs.

  • Test

    python main.py --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.

Details

Training

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

Evaluation

image

Paper

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.

Acknowlegments

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

License

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.
Python
Graph
Tensorflow
Generation
Attention