Coder Social home page Coder Social logo

allenfeizz / dualgcn-absa Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ccchenhao997/dualgcn-absa

0.0 0.0 0.0 4.97 MB

Dual Graph Convolutional Networks for Aspect-based Sentiment Analysis

License: MIT License

Shell 0.23% Python 94.12% Makefile 0.01% Scilab 0.37% C 3.60% Perl 0.01% Cython 1.67%

dualgcn-absa's Introduction

DualGCN

Code and datasets of our paper "Dual Graph Convolutional Networks for Aspect-based Sentiment Analysis" accepted by ACL 2021.

Requirements

  • torch==1.4.0
  • scikit-learn==0.23.2
  • transformers==3.2.0
  • cython==0.29.13
  • nltk==3.5

To install requirements, run pip install -r requirements.txt.

Preparation

  1. Download and unzip GloVe vectors(glove.840B.300d.zip) from https://nlp.stanford.edu/projects/glove/ and put it into DualGCN/glove directory.

  2. Prepare vocabulary with:

    sh DualGCN/build_vocab.sh

  3. Download the best model best_parser.pt of LAL-Parser.

Training

To train the DualGCN model, run:

sh DualGCN/run.sh

Credits

The code and datasets in this repository are based on ABSA-PyTorch and CDT_ABSA.

Citation

If you find this work useful, please cite as following.

@inproceedings{li-etal-2021-dual-graph,
    title = "Dual Graph Convolutional Networks for Aspect-based Sentiment Analysis",
    author = "Li, Ruifan  and
      Chen, Hao  and
      Feng, Fangxiang  and
      Ma, Zhanyu  and
      Wang, Xiaojie  and
      Hovy, Eduard",
    booktitle = "Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)",
    month = aug,
    year = "2021",
    address = "Online",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2021.acl-long.494",
}

dualgcn-absa's People

Contributors

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