This is a Pytorch implementation and released dataset of "FaiMA: Feature-aware In-context Learning for Multi-Domain Aspect-based Sentiment Analysis" accepted by LREC-COLING 2024.
More details of the paper and dataset will be released after it is published.
Following is the suggested way to install the dependencies:
pip install -r requirements.txt
└── SA-LLM
├── data # Contains the datasets
│ ├── inst/ASPE # Our MD-ASPE instruction data
│ ├── raw/ASPE # MD-ASPE raw data
├── checkpoints # Contains the trained checkpoint for model weights
├── src
│ ├── gnnencoder # The code related to MGATE
│ ├── Icl # The code related to Feature-aware In-context Learning
│ ├── llmtuner # The code related to LLM train, predict etc.
├── run_gnn.py # The code for training MGATE
├── run_aspe.py # The code for training FaiMA and baselines
└── README.md # This document
- Run
run_gnn.py
to train MGATE model. - Run
run_aspe.py
to train FaiMA and baselines, replecemodel_name_or_path
with your llama model weight path.