hrtowii / hnr2024

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hnr2024

RSS Feed reader with sentiment analysis

  • 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

Start python server for SA

Requirements

pip install flask transformers scipy

Starting server

flask --app python/main run

How to use

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 
}
]

About


Languages

Language:Dart 38.9%Language:C++ 29.6%Language:CMake 15.3%Language:Python 4.8%Language:Ruby 4.4%Language:HTML 2.9%Language:Swift 2.5%Language:C 1.2%Language:Shell 0.3%Language:Kotlin 0.2%Language:Objective-C 0.1%