Sentiment analysis neural network trained by fine-tuning BERT, ALBERT, or DistilBERT on the Stanford Sentiment Treebank.
pip install numpy pandas torch transformers
python analyze.py
python train.py --model_name_or_path bert-base-uncased --output_dir my_model --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 my_model
python analyze.py --model_name_or_path my_model
pip install flask flask_cors
python server.py --model_name_or_path my_model
cd client
npm install
cd client
npm run serve