Miloo Sentiment Analysis Module
Before you can use the app, you have to set up the virtual env and install dependencies. Run the following command in the project root directory.
bin/setupIt will generate a local virtual environment required to run the app.
To run the app execute the following command without any parameter.
bin/runIt will start the Rest-API server.
There is only one endpoint served by the Rest-API server, which is root ("/"). It takes "text" field as a JSON input and will returns the sentiment class of given text.
{
"text": "Semalang-malangnya nasib lu, masih malang nasib underpass kemayoran."
}{
"message": "sentiment analysis finished",
"data": {
"class": 1,
"description": "neutral"
}
}