All Projects → bzantium → Posterior-Knowledge-Selection

bzantium / Posterior-Knowledge-Selection

Licence: other
Learning to Select Knowledge for Response Generation in Dialog Systems

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to Posterior-Knowledge-Selection

Variational-Transformer
Variational Transformers for Diverse Response Generation
Stars: ✭ 79 (+146.88%)
Mutual labels:  dialogue-systems
distributed-architecture-of-moba-game-server
分布式服务器架构下的3v3团队对抗游戏
Stars: ✭ 31 (-3.12%)
Mutual labels:  dialogue-systems
permuted-bAbI-dialog-tasks
Dataset for 'Learning End-to-End Goal-Oriented Dialog with Multiple Answers' EMNLP 2018
Stars: ✭ 17 (-46.87%)
Mutual labels:  dialogue-systems
few shot dialogue generation
Dialogue Knowledge Transfer Networks (DiKTNet)
Stars: ✭ 24 (-25%)
Mutual labels:  dialogue-systems
DialoFlow
Code for ACL 2021 main conference paper "Conversations Are Not Flat: Modeling the Dynamic Information Flow across Dialogue Utterances".
Stars: ✭ 85 (+165.63%)
Mutual labels:  dialogue-systems
explicit memory tracker
[ACL 2020] Explicit Memory Tracker with Coarse-to-Fine Reasoning for Conversational Machine Reading
Stars: ✭ 35 (+9.38%)
Mutual labels:  dialogue-systems
Dialogue
Node based dialogue system
Stars: ✭ 207 (+546.88%)
Mutual labels:  dialogue-systems
dialogue-datasets
collect the open dialog corpus and some useful data processing utils.
Stars: ✭ 24 (-25%)
Mutual labels:  dialogue-systems
ADEM
TOWARDS AN AUTOMATIC TURING TEST: LEARNING TO EVALUATE DIALOGUE RESPONSES
Stars: ✭ 25 (-21.87%)
Mutual labels:  dialogue-systems
TalkerMakerDeluxe
A FOSS Branching Game Dialogue Editor
Stars: ✭ 90 (+181.25%)
Mutual labels:  dialogue-systems
Wisty.js
🧚‍♀️ Chatbot library turning conversations into actions, locally, in the browser.
Stars: ✭ 24 (-25%)
Mutual labels:  dialogue-systems
RECCON
This repository contains the dataset and the PyTorch implementations of the models from the paper Recognizing Emotion Cause in Conversations.
Stars: ✭ 126 (+293.75%)
Mutual labels:  dialogue-systems
DlgSystem
Dialogue Plugin System for Unreal Engine | 🪞 Mirror of https://bit.ly/DlgSource
Stars: ✭ 136 (+325%)
Mutual labels:  dialogue-systems
DialogueGraph
Open-source node-based tool for developing branching conversation trees
Stars: ✭ 133 (+315.63%)
Mutual labels:  dialogue-systems
YarnGdx
YarnGdx is a Libgdx Library for interactive dialogue in games! This is a port of [YarnSpinner](https://github.com/thesecretlab/YarnSpinner) by thesecretlab
Stars: ✭ 25 (-21.87%)
Mutual labels:  dialogue-systems
Whiskers
A Visual Dialogue Editor made using the Godot Engine
Stars: ✭ 229 (+615.63%)
Mutual labels:  dialogue-systems
deeplearning-papernotes
Краткое изложение статей по NLP, Deep Learning и диалоговым агентам
Stars: ✭ 17 (-46.87%)
Mutual labels:  dialogue-systems
TEXTOIR
TEXTOIR is a flexible toolkit for open intent detection and discovery. (ACL 2021)
Stars: ✭ 31 (-3.12%)
Mutual labels:  dialogue-systems
SpaceFusion
NAACL'19: "Jointly Optimizing Diversity and Relevance in Neural Response Generation"
Stars: ✭ 73 (+128.13%)
Mutual labels:  dialogue-systems
HINT3
This repository contains datasets and code for the paper "HINT3: Raising the bar for Intent Detection in the Wild" accepted at EMNLP-2020's Insights Workshop https://insights-workshop.github.io/ Preprint for the paper is available here https://arxiv.org/abs/2009.13833
Stars: ✭ 27 (-15.62%)
Mutual labels:  dialogue-systems

PostKS (Posterior Knowledge Selection)

Pytorch implementation of Learning to Select Knowledge for Response Generation in Dialog Systems

For decoder, I apply Hierarchical Gated Fusion Unit (HGFU) [Yao et al. 2017] and I only use three number of knowledges for the sake of code simplicity.



prerequisite

1. Install required packages

sh install.sh

2. Download and extract glove files and pickle as torch tensors.

sh download_glove.sh



Train model

If you run train, vocab.json and trained parameters will be saved. Then you can play demo.

python train.py --pre_epoch 5 --n_epoch 15 --n_batch 128



Play demo

python demo.py

You need to type three knowledges and utterance. Then bot will reply!

# example
Type first Knowledge: i'm very athletic.
Type second Knowledge: i wear contacts.
Type third Knowledge: i have brown hair.

you: hi ! i work as a gourmet cook .
bot(response): i don't like carrots . i throw them away . # reponse can change based on training.
  • If you type "change knowledge" at (you), you can retype three knowledges.
  • If you type "exit" at (you), you can terminate demo.



DataSet

  • I only use "self_original_no_cands" in Persona-chat released by ParlAI
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].