All Projects → chongyangtao → MRFN

chongyangtao / MRFN

Licence: MIT license
Tensorflow implementation for MRFN in Retrieval-based Chatbots

Programming Languages

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

Multi-Representation Fusion Network (MRFN)

This is an implementation of [Multi-Representation Fusion Network for Multi-turn Response Selection in Retrieval-based Chatbots, WSDM 2019].

Requirements

  • Ubuntu 16.04
  • Tensorflow 1.4.0
  • Python 2.7
  • NumPy

Usage

To download and preprocess the data, run

# download ubuntu corpus and word/char dictionaries and pre-trained embeddings 
sh download.sh
# preprocess the data
python data_utils_record.py

All hyper parameters are stored in config.py. To train, run

python main.py --log_root=logs_ubuntu --batch_size=100

To evaluate the model, run

python evaluate.py --log_root=logs_ubuntu --batch_size=100
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].