A neural network dedicated to sentiment classification based on the underlying emotions of a sentence.
- Install the requirements using
pip install -r requirements.txt
- Getting a model
- Using a pretrained model: Move the model to
trained/model.pt
or use the existing model in the repository - Training a model:
- The dataset should placed in
data
. - Run
python3 setupy.py
, it will explain the rest:
- The dataset should placed in
- Using a pretrained model: Move the model to
- Running the classifier: Running the command
python3 setup.py
and hitting enter will start the inference loop.
This is more of a proof of concept so there is no package to install this and directly integrate it. To use it the source code can
be included in your program and once the dataset and model are in the proper location you can include the prediction pipeline
with from {Insert Source Location}.model.Predictor import Predictor
and run Predictor().predict(string)
. Feel free to adapt and modify
the code to your needs.