PyTorch implementations for aspect-based sentiment analysis
Top 22.0% on sourcepulse
This repository provides PyTorch implementations for Aspect-Based Sentiment Analysis (ABSA), a task focused on identifying sentiment towards specific aspects within text. It targets researchers and practitioners in Natural Language Processing (NLP) and sentiment analysis, offering a collection of state-of-the-art models for experimentation and development.
How It Works
The project implements both BERT-based and non-BERT-based neural network architectures for ABSA. BERT-based models leverage pre-trained transformer architectures for enhanced contextual understanding, while non-BERT models utilize architectures like Graph Convolutional Networks (GCNs), Attention mechanisms, and LSTMs. This dual approach allows users to compare performance and choose models suited to their specific data and computational resources.
Quick Start & Requirements
pip install -r requirements.txt
data_utils.py
).requirements_rtx30.txt
due to potential CUDA/PyTorch version conflicts.python train.py --model_name bert_spc --dataset restaurant
infer_example.py
train_k_fold_cross_val.py
Highlighted Details
Maintenance & Community
The project acknowledges several contributors and follows the all-contributors specification. Contributions are welcomed.
Licensing & Compatibility
Limitations & Caveats
Non-BERT-based model training stability can be an issue. BERT-based models require careful hyperparameter tuning, especially learning rate, on smaller datasets. Fine-tuning on specific tasks is recommended to maximize BERT's potential.
2 years ago
Inactive