This is a python-based project that classifies sentences' political tendency with BERT language model. Around 45% of accuracy is achieved.
tensorflow, torch, transformers, sklearn, pandas, numpy__
Recommend to use Google Collab notebook__
to test BERT model: run BERT.ipynb to test BERT model with a new sentence: run BERT_withTest.ipynb to see a plot: run data_analysis.ipynb & word_ratio.py (Not required) data.csv / data2.csv / data3.csv :: Sample data files
BERT.ipynb would print the training process and the accuracy score BERT_withTest.ipynb would print the R / D / N according to the test sentences