This repo is just to show how to apply a simple basic analysis.
The script is based on a pretrained backbone taken from keras NPL models, especifically the BertClassifier.
This makes:
- The script very easy to build
- The processing very fast, not even needing GPUs.
First, make sure you are using the latest version of Python. Otherwise, download if from here
Then clone this repository by open a terminal and typing:
git clone https://github.com/BorjaRuizReverter/BasicSentimentAnalysis.git
And move to the repository folder cloned:
cd BasicSentimentAnalysis
Finally, install the required packages:
pip install -r requirements.txt
Once all the above have been installed, run the script by typing this if the SO is Linux
python3 script.py
or this if it is Windows
python script.py