Code Monkey home page Code Monkey logo

tmm-for-mams's Introduction

Transformer-based Multi-Aspect Modeling for MAMS

Transformer-based Multi-Aspect Modeling for Multi-Aspect Multi-Sentiment Analysis. Zhen Wu, Chengcan Ying, Xinyu Dai, Shujian Huang, Jiajun Chen. NLPCC 2020.

Requirements

  • pytorch=1.7.1
  • python=3.7

Usage

Download the pretrained RoBERTa model (link, password:2fv2) and unzip it into the folder pretrained.

The MAMS data is preprocessed by the script preprocess.py. The original and preprocessed versions of the data are provided in the folder data.

For the ATSA subtask

Run the command python main_ATSA.py to train and test the ATSA model.

You can change training settings in the file configs.py.

For the ACSA subtask

Run the command python main_ACSA.py to train and test the ACSA model.

You can change training settings in the file configs.py.

Citation

If you use the code, please cite our paper:

@InProceedings{10.1007/978-3-030-60457-8_45,
author="Wu, Zhen
and Ying, Chengcan
and Dai, Xinyu
and Huang, Shujian
and Chen, Jiajun",
editor="Zhu, Xiaodan
and Zhang, Min
and Hong, Yu
and He, Ruifang",
title="Transformer-Based Multi-aspect Modeling for Multi-aspect Multi-sentiment Analysis",
booktitle="Natural Language Processing and Chinese Computing",
year="2020",
publisher="Springer International Publishing",
address="Cham",
pages="546--557",
isbn="978-3-030-60457-8"
}

Reference

[1]. Zhen Wu, Chengcan Ying, Xinyu Dai, Shujian Huang, Jiajun Chen. Transformer-based Multi-Aspect Modeling for Multi-Aspect Multi-Sentiment Analysis. NLPCC 2020.

[2]. Qingnan Jiang, Lei Chen, Ruifeng Xu, Xiang Ao, Min Yang. A Challenge Dataset and Effective Models for Aspect-Based Sentiment Analysis. EMNLP-IJCNLP 2019.

tmm-for-mams's People

Contributors

yccalan 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.