Sentiment analysis neural network trained by fine-tuning BERT, ALBERT, or DistilBERT on the Stanford Sentiment Treebank.
git clone https://github.com/barissayil/SentimentAnalysis.git
cd SentimentAnalysis
sudo apt-get update
sudo apt-get install python3.9
python3.9 --version
python3.9 -m venv env
source env/bin/activate
pip install -r requirements.txt
python -m pytest
python evaluate.py
python analyze.py
python server.py
curl localhost:5000 -G -d text=good
python train.py --model_name_or_path bert-base-uncased --output_dir XXX --num_eps 2
bert-base-uncased, albert-base-v2, distilbert-base-uncased, and other similar models are supported.
python evaluate.py --model_name_or_path XXX
python analyze.py --model_name_or_path XXX
python server.py --model_name_or_path XXX