Giter VIP home page Giter VIP logo

robertaabsa's Introduction

RoBERTaABSA

This repo contains code for NAACL 2021 paper titled Does syntax matter? A strong baseline for Aspect-based Sentiment Analysis with RoBERTa.

The summarized information is here:

For any questions about the implementation, feel free to create an issue or email me via [email protected].

Update 05.21.2021

The SOTA on RoBERTa

I have received some questions about the reproduction issues. After the re-check of the code and some discussions, we conjecture that the problem may be caused by the different usage of RoBERTa Tokenizer and some pre-processing. We release the datasets in the Dataset folder.

To get our RoBERTa results, simply run the finetune.py in Train folder. Before the code running, make sure the --data_dir and --dataset arguments are filled in correct file path.

The Usage

  1. This section is for the reproduction of experiments in the original paper; for the reproduction of RoBERTa SOTA results in Paperwithcode, please refer to the next section.
  2. Fine-tuning the model on ABSA datasets using the code from the Train folder, which will save the fine-tuned models.
  3. Generate the induced trees using the code from the Perturbed-Masking folder, which will output the input datasets for different models.
  4. Run the code in ASGCN, PWCN and RGAT.

Disclaimer

We made necessary changes based on the original code. We believe all the changes are under the MIT License permission. And we opensource all the changes we have made.

robertaabsa's People

Contributors

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