Repository of the paper: Mental-Health Topic Classification employing D-vectors of Large Language Models
Python
0
4 commits
updated Jul 2, 2024
Repository of the paper presented at CBMS2024 conference: Mental-Health Topic Classification employing D-vectors of Large Language Models
Python 3.10.12
To install the python packages, create a new virtual environment and run:
pip install -r requirements.txt
** If problems installing certain libraries, try to update your pip version: pip3 install --upgrade pip and run again the previous command
Dataset released under MIT license, if you use this dataset, cite it as:
@misc{bertagnolli2020counsel, title={Counsel chat: Bootstrapping high-quality therapy data}, author={Bertagnolli, Nicolas}, year={2020}, publisher={Towards Data Science. https://towardsdatascience. com/counsel-chat~…} } More information in: (https://huggingface.co/datasets/nbertagnolli/counsel-chat)
Question and answers from: https://www.7cups.com/qa/ (In process of cleaning and evaluating for being released)
The code for generating the splits of the dataset is available in:
src/DSprocessor/TopicChatProcessor.py
Remember to change the parameter, before running it:
ROOT_PATH = "../../CBMS_MentalHealth_FeatureSelection"
In case of problems, re-use the data-splits that appear in:
data/counseilChat/dataSplits/complete_all_TopicClassification.csv
Select the dataset to use: e.g. (DS = "counseilChat")
Select the model to use: e.g (MODEL_PATH = 'word2Vec')
Select the number of features (dimension of the embeddings) to use with Word2Vec: n_embs = 768
python3 CBMS_MentalHealth_FeatureSelection/src/models/embs_Experiments/word2Vec.py
Go to src/embs_Experiments/embs_Llama.py
Once embeddings are generated, go to src/models/classification.py
Perform feature selection & training of the top classifiers with different number of features:
python3 src/models/embs_Experiments/feature_selection/featureSelection.py
--dataset_name counseilChat --model_name meta-llama/Llama-2-7b-chat-hf --feature_selection 1
Plot graphics for comparing models:
python3 src/models/embs_Experiments/feature_selection/top_features_study.py
python3 src/models/embs_Experiments/feature_selection/top_ratio_results.py
TO ADD ONCE PUBLISHED WITH THE REST OF THE CODE
Apache 2.0.
Repository of the paper: Mental-Health Topic Classification employing D-vectors of Large Language Models
Python
0
4 commits
updated Jul 2, 2024
Repository of the paper presented at CBMS2024 conference: Mental-Health Topic Classification employing D-vectors of Large Language Models
Python 3.10.12
To install the python packages, create a new virtual environment and run:
pip install -r requirements.txt
** If problems installing certain libraries, try to update your pip version: pip3 install --upgrade pip and run again the previous command
Dataset released under MIT license, if you use this dataset, cite it as:
@misc{bertagnolli2020counsel, title={Counsel chat: Bootstrapping high-quality therapy data}, author={Bertagnolli, Nicolas}, year={2020}, publisher={Towards Data Science. https://towardsdatascience. com/counsel-chat~…} } More information in: (https://huggingface.co/datasets/nbertagnolli/counsel-chat)
Question and answers from: https://www.7cups.com/qa/ (In process of cleaning and evaluating for being released)
The code for generating the splits of the dataset is available in:
src/DSprocessor/TopicChatProcessor.py
Remember to change the parameter, before running it:
ROOT_PATH = "../../CBMS_MentalHealth_FeatureSelection"
In case of problems, re-use the data-splits that appear in:
data/counseilChat/dataSplits/complete_all_TopicClassification.csv
Select the dataset to use: e.g. (DS = "counseilChat")
Select the model to use: e.g (MODEL_PATH = 'word2Vec')
Select the number of features (dimension of the embeddings) to use with Word2Vec: n_embs = 768
python3 CBMS_MentalHealth_FeatureSelection/src/models/embs_Experiments/word2Vec.py
Go to src/embs_Experiments/embs_Llama.py
Once embeddings are generated, go to src/models/classification.py
Perform feature selection & training of the top classifiers with different number of features:
python3 src/models/embs_Experiments/feature_selection/featureSelection.py
--dataset_name counseilChat --model_name meta-llama/Llama-2-7b-chat-hf --feature_selection 1
Plot graphics for comparing models:
python3 src/models/embs_Experiments/feature_selection/top_features_study.py
python3 src/models/embs_Experiments/feature_selection/top_ratio_results.py
TO ADD ONCE PUBLISHED WITH THE REST OF THE CODE
Apache 2.0.