Skip to content

SimoneCaldarella/ABSA_Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Two Stage Aspect-Based Sentiment Analysis: Multi-Target extraction and Polarity Classification

A two stage ABSA span based extraction and classification model, developed in PyTorch, based on the work by Hu et Al., and tested on SemEval2014 (laptop14).

The report of the project can be downloaded here.


Author info:

Other info:

To install the required libraries run the following command:

pip install -r requirements.txt

Usage:

  1. Download the following pre-trained models and put them in the related folders in order to evaluate the results without training:
    • te_net in the folder Data/Previous_training/best_te and also in the folder Data/Jointed;
    • pc_net in the folder Data/Previous_training/best_pc and also in the folder Data/Jointed;
    • bert-base-uncased in the folder Data/bert-base-uncased;
  2. Run the block with all the imports
  3. Be sure to have selected the colab flag to false if you are not using it, and the basepath to your own (path/to/NLU_Project)
  4. All the modalities can be customized from their workspace functions
  5. When you run the evaulation (target extraction or polarity classification) be sure to have added the basepath of the model in the variables of the main function
  6. For a detailed description of all the parameters download the report above

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published