Giter VIP home page Giter VIP logo

asa-tgcn's Introduction

ASA-TGCN

This is the implementation of Aspect-based Sentiment Analysis withType-aware Graph Convolutional Networks and Layer Ensemble at NAACL 2021.

You can e-mail Yuanhe Tian at [email protected], if you have any questions.

Visit our homepage to find more our recent research and softwares for NLP (e.g., pre-trained LM, POS tagging, NER, sentiment analysis, relation extraction, datasets, etc.).

Upgrades of ASA-TGCN

We are improving our ASA-TGCN. For updates, please visit HERE.

Citation

If you use or extend our work, please cite our paper at NAACL 2021.

@inproceedings{tian-etal-2021-aspect,
    title = "Aspect-based Sentiment Analysis with Type-aware Graph Convolutional Networks and Layer Ensemble",
    author = "Tian, Yuanhe and Chen, Guimin and Song, Yan",
    booktitle = "Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies",
    month = jun,
    year = "2021",
    address = "Online",
    publisher = "Association for Computational Linguistics",
    pages = "2910--2922"
}

Requirements

Our code works with the following environment.

  • python=3.7
  • pytorch=1.3

Dataset

To obtain the data, you can go to data directory for details.

Downloading BERT and ASA-TGCN

In our paper, we use BERT (paper) as the encoder.

For BERT, please download pre-trained BERT-Base and BERT-Large English from Google or from HuggingFace. If you download it from Google, you need to convert the model from TensorFlow version to PyTorch version.

Training and Testing on Sample Data

Run run_sample.sh to train a model on the small sample data under the sample_data directory.

Here are some important parameters:

  • --do_train: train the model.
  • --do_eval: test the model.

To-do List

  • Release the models.
  • Regular maintenance.

You can leave comments in the Issues section, if you want us to implement any functions.

asa-tgcn's People

Contributors

yuanhetian avatar guiminchen 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.