- Currently hardcoded to CNA only
- Currently hardcoded to only 1 RSS feed from CNA
- Nothing is cached
- Preferences do not work
- Requires a server at localhost:5000 to be running for scraping CNA news feeds for previews, and for sentiment analysis
pip install flask transformers scipy
flask --app python/main run
Find the development server at http://127.0.0.1:5000
Send a POST
request to localhost/analyse
with a JSON
input, passing a text field.
Example:
{
"text": INPUT
}
The server will respond in the following format:
[
{
'label' : JUDGEMENT, '
score' : CONFIDENCE
}
]