Giter Club home page Giter Club logo

fyp_mcr's Introduction

MCR: Multi-perspective Coherent Reasoning for Helpfulness Prediction of Multimodal Reviews

Code for the paper "Multi-perspective Coherent Reasoning for Helpfulness Prediction of Multimodal Reviews" (ACL 2021).

If you use this code, please cite the paper using the BibTeX reference below.

@inproceedings{mcr,
    title={Multi-perspective Coherent Reasoning for Helpfulness Prediction of Multimodal Reviews},
    author={Junhao Liu, Zhen Hai, Min Yang, and Lidong Bing},
    booktitle={Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics, {ACL} 2021},
    year={2021},
}

Requirements

  • Python >= 3.7
  • PyTorch >= 1.6

You can install all required Python packages with

pip install -r requirements.txt

Datasets

To obtain the multimodal datasets of Lazada-MRHP and Amazon-MRHP, please read the details provided here.

Running the code

Train

Use the following commands to train the model based on the specific configuration file.

# single gpu or data parallel, [ckpt] is optional for continual training
sh scripts/train.sh device_ids config_file [ckpt]

# or distributed training
sh scripts/train_dist.sh device_ids n_procs config_file [ckpt]

Sample configuration files are provided in the config folder.

Evaluate

Do evaluation on a specific dataset based on the saved model checkpoint and corresponding configuration file.

sh scripts/eval.sh device_ids config_file ckpt

Contact

If you have any questions, please feel free to email me at [email protected].

Acknowledgments

Our code is built based on the text matching library MatchZoo and the PyTorch version bottom-up-attention.

fyp_mcr's People

Contributors

jhliu17 avatar dependabot[bot] 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.