Giter Site home page Giter Site logo

rfm's Introduction

RFM: response-aware feedback mechanism for background based conversation

The code for the paper RFM: response-aware feedback mechanism for background based conversation.

RFM model figure

Reference

If you use any source code included in this repo in your work, please cite the following paper.

@article{chen2022rfm,
  title={RFM: response-aware feedback mechanism for background based conversation},
  author={Chen, Jiatao and Zeng, Biqing and Du, Zhibin and Deng, Huimin and Xu, Mayi and Gan, Zibang and Ding, Meirong},
  journal={Applied Intelligence},
  year={2022},
  publisher={Springer},
  doi={10.1007/s10489-022-04056-4}
}

Requirements

  • python 3.7
  • pytorch 1.7.0

Datasets

  • Download the raw data version of Holl-E, and put the raw data files (train_data.json, dev_data.json and test_data.json) in the directory dataset/holl/raw_data/.
  • Then, run the preprocessing script:
python Prepare_holl.py
  • As for Wizard of Wikipedia(WoW) dataset, we use the DukeNet version. Download the Wizard of Wikipedia dataset, and put data files in the directory dataset/wizard_of_wikipedia/.
  • Download the glove.6B.300d.txt and put it in dataset/holl_e/oracle/, dataset/holl_e/mixed/ and dataset/wizard_of_wikipedia/.

Run training, validation, and testing

To train or test your model, run:

# Holl-E dataset
python -m torch.distributed.launch --nproc_per_node=num_GPU Run_RFM_Holl.py --mode='train/test'

# Wizard of Wikipedia dataset
python -m torch.distributed.launch --nproc_per_node=num_GPU Run_RFM_WoW.py --mode='train/test'

If you want to run multiple references(MR) test version in Holl-E dataset, please add --test='MR' in the run script.

Model checkpoint

We upload our model checkpoints on two datasets, you can manually download them at here.

rfm's People

Contributors

chenchenjt avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.