Skip to content

shuyuan-lily/absa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aspect-Based Sentiment Analysis for mBio Media Quotations Dataset

Hi! This is the folder that contains the relevant tools to run article analysis with Aspect-Based Sentiment Analysis (ABSA).

Here's a brief overview of the folder:

absa
├── experiment_demos  ## contains .ipynb notebooks for past experiments
│   └── ... 
├── datasets  ## past dataset parsed to trainable format
│   └── ...
├── utils
│   └── ...
├── train.py
└── test.py

The models are largely based on the work by Yang Heng's work on PyABSA. If any of the code in our absa toolkit goes problematic, you might find his guidelines helpful!

What is Aspect-Based Sentiment Analysis?

In plain-old sentiment analysis (classification), we put a sentence as input and obtain a prediction of whether the sentence belongs to the positive, negative, or neutral class.

In Aspect-Based Sentiment Analysis, there is one more task on top. The task involves identifying the aspect term, and outputting a corresponding sentiment that the speaker holds towards that aspect.

In the implementation provided by this repository, the task is carried out in a pipeline manner. We first identify the aspect terms (token classification)and then perform sentiment classification. (The nomenclature below are adapted from the original repository.)

1. Aspect Term Extraction (ATE)

Given a sequence (a sentence),

2. Aspect Polarity Classification (APC)

You might see words like "ATEPC" in this repository--read it as a conjunction of the two tasks.

The

Usage

Getting Started

Example Usage

Possible Next Steps

Improving the integration of this toolkit to our dataset

Use BERT tags to identify crops before feeding into model

Described in this issue.

The idea is that, given that we have a

Aspect Category Detection (ACD)

To enable the model (specifically, aspect term extractor) to be more focused on crops and organizations, it may be a good idea to

Additional Information

Here is the complete structure of this folder.

absa
├── experiment_demos
├── datasets
│   ├── apc_datasets
│   │   └── 160.CustomDataset
│   │       ├── mbio_custom.test.dat.apc
│   │       └── mbio_custom.train.dat.apc
│   └── atepc_datasets
│       └── 160.CustomDataset
├── utils
│   └── csv_to_atepc.py
├── train.py
└── test.py

Further Resources

A Survey on Aspect-Based Sentiment Analysis: Tasks, Methods, and Challenges

  • Covers comprehensively the methods, sub-tasks, and various models in the Aspect-Based Sentiment Analysis field.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published