Skip to content

A PyTorch re-implementation of the persona-based neural conversation model proposed by Jiwei Li, Michel Galley, Chris Brockett, Georgios P. Spithourakis, Jianfeng Gao, Bill Dolan.

License

Notifications You must be signed in to change notification settings

felixwzh/Speaker-pytorch

 
 

Repository files navigation

Neural-Persona-based-Conversation-Model-Python-Version

This code is a PyTorch re-implementation of the persona-based neural conversation model proposed by Jiwei Li, Michel Galley, Chris Brockett, Georgios P. Spithourakis, Jianfeng Gao, Bill Dolan:

J.Li, M.Galley, C.Brockett, J.Gao and B.Dolan. "A persona-based neural conversation model". ACL2016.

Thank them for their great contributions :)

The code was used in our project of "Automatic Evaluation of Neural Personality-based Chatbot":

Y.Xing, R.Fernández. "Automatic Evaluation of Neural Personality-based Chatbot". INLG 2018.

Download Data

Please go to "https://github.com/jiweil/Neural-Dialogue-Generation" for the processed data provided by Jiwei Li.

Training

Similar to the original Lua codes, run

python train.py --(optional parameter)

The parameters could be checked in train.py.

After training, trained models are stored in /save/testing.

Decode

Similar to the original Lua codes, run

python decode.py --(optional parameter)

The parameters could be checked in decode.py.

After decoding, the outputs are stored in /outputs.

Reference

Please refer to https://github.com/jiweil/Neural-Dialogue-Generation for more details.

About

A PyTorch re-implementation of the persona-based neural conversation model proposed by Jiwei Li, Michel Galley, Chris Brockett, Georgios P. Spithourakis, Jianfeng Gao, Bill Dolan.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 75.3%
  • Python 18.1%
  • Shell 6.6%