Giter VIP home page Giter VIP logo

2021-nlp-aspect-based-sentiment-analysis's Introduction

2021-NLP-Aspect-Based-Sentiment-Analysis

2021

The implementation of Aspect Based Sentiment Analysis (ABSA) framework for an NLP course.

The project was implemented and optimized with Pytorch Lightning.

The ABSA framework consists of two models: Aspect Extraction (AE) and Aspect Sentiment Analysis (ASC). Given a sentence the AE model is used to determine which word or word groups in the sentence have a sentimental association. Then, the ASC model is used to identify said sentiment.

Both the AE and the ASC models in the project employ BERT (Devlin et al., 2018) model to obtain contextual word embeddings, therefore the text data and the target word data need to be processed accordingly. In that order, the text data and the target data (for the ASC module) was processed using BertTokenizer module with the ’bert-base-cased’ configuration, since the targets may contain upper cased words and this information can be exploited. Then, the indices in the tokenized sentence for the tokenized words were extracted. These indices information will be used the optimization of both tasks. Further, the different steps taken for preprocessing for the two tasks are described.

The models for both tasks were built by following the approaches developed by (Karimi et al., 2020).

2021-nlp-aspect-based-sentiment-analysis's People

Contributors

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