Skip to content

What's the HackerNews opinion on a specific subject?

License

Notifications You must be signed in to change notification settings

stianlaa/byte-barometer

Repository files navigation

Byte Barometer

Gauge the sentiment of HackerNews on any topic.

Try it out here!

Current UI of the Byte Barometer From a subject chosen by the user a sentiment poll is done using natural language processing and aspect based sentiment analysis.

This project is intended to provide a useful tool for finding out what the general opinion of other developers is about a given subject. This is done using hybrid semantic search search and aspect based sentiment analysis.

Application structure

Like many web applications the Byte Barometer can be split into three layers, a frontend, backend and a data storage. Details and instructions to run the various segments can be found within their respective directories.

Caveats

This is one of my side projects, so there might be a bug or two hiding around. The code will be kept open source and hosting, storage and GPU specs will intentionally be kept quite small for sake of costs. If you do happen to find it interesting and want to throw in a PR you are very welcome to do so!

Future work

  • Improve sentence split by adjusting decoding to remove htmltags and other non-ascii character, Add use of https://pypi.org/project/semantic-text-splitter/ instead
  • Format comments, allow links etc.
  • Add query DB and cache for results, show list of some of the chosen subjects and their results by default on loading.
  • Replace build pipeline with less hardcoded config, perhaps terraform https://github.com/Paperspace/terraform-provider-paperspace?ref=blog.paperspace.com , should support both paperspace and digital ocean
  • Update cuda in use to 12.2.2 on Dockerfile and host platform, perhaps hindered by nvidia driver
  • Test lower gunicorn timeout, 30 is default, 300 is current
  • Tighten CORS
  • Consider adding tqdm wrapper around populate action, and cleaning up populate action.

About

What's the HackerNews opinion on a specific subject?

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published