Discover and explore top open-source AI tools and projects—updated daily.
songyouweiPyTorch implementations for aspect-based sentiment analysis
Top 21.2% 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.txtdata_utils.py).requirements_rtx30.txt due to potential CUDA/PyTorch version conflicts.python train.py --model_name bert_spc --dataset restaurantinfer_example.pytrain_k_fold_cross_val.pyHighlighted 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
1 day
allenai