Replication package of TOSEM submission: Revisiting Sentiment Analysis for Software Engineering in the Era of Large Language Models
Python
4
3 commits
updated Jun 30, 2024
To install necessary dependencies, run the following command:
conda env create -f environment.yml
Data path: ./data/
args:
python run_slm.py -v distilbert -d app
args:
python run_llm.py -d app -m llama2 -p llama2-1 -s 1
args:
python eval.py -d app -m vicuna -p vicuna-0 -s 0
The results are saved in ./results/.
For instance, for the results of LLaMA2 on the APP dataset, the directory structure is as follows:
📦results
┣ 📂app
┃ ┣ 📂llama2
┃ ┃ ┣ 📂few-shot
┃ ┃ ┃ ┗ 📂llama2
┃ ┃ ┃ ┃ ┣ 📂1
┃ ┃ ┃ ┃ ┣ 📂3
┃ ┃ ┃ ┃ ┣ 📂5
┃ ┃ ┗ 📂zero-shot
┃ ┃ ┃ ┣ 📂llama2-0
┃ ┃ ┃ ┣ 📂llama2-1
┃ ┃ ┃ ┣ 📂llama2-2
draw_figures.py: draw figures for the paper.preprocess.py: preprocess the dataset.analyze_errors.py: analyze the errors of the models.sample_few_shot.py: sample few-shot examples from the dataset.Replication package of TOSEM submission: Revisiting Sentiment Analysis for Software Engineering in the Era of Large Language Models
Python
4
3 commits
updated Jun 30, 2024
To install necessary dependencies, run the following command:
conda env create -f environment.yml
Data path: ./data/
args:
python run_slm.py -v distilbert -d app
args:
python run_llm.py -d app -m llama2 -p llama2-1 -s 1
args:
python eval.py -d app -m vicuna -p vicuna-0 -s 0
The results are saved in ./results/.
For instance, for the results of LLaMA2 on the APP dataset, the directory structure is as follows:
📦results
┣ 📂app
┃ ┣ 📂llama2
┃ ┃ ┣ 📂few-shot
┃ ┃ ┃ ┗ 📂llama2
┃ ┃ ┃ ┃ ┣ 📂1
┃ ┃ ┃ ┃ ┣ 📂3
┃ ┃ ┃ ┃ ┣ 📂5
┃ ┃ ┗ 📂zero-shot
┃ ┃ ┃ ┣ 📂llama2-0
┃ ┃ ┃ ┣ 📂llama2-1
┃ ┃ ┃ ┣ 📂llama2-2
draw_figures.py: draw figures for the paper.preprocess.py: preprocess the dataset.analyze_errors.py: analyze the errors of the models.sample_few_shot.py: sample few-shot examples from the dataset.