Skip to content

This is a chrome extension that marks the important words in paragraphs using multi-head attention in BERT transformers.

License

Notifications You must be signed in to change notification settings

AmrSheta22/Spotly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spotly

Asset 4

This is a chrome extension that marks the important words in paragraphs using multi-head attention in transformers inside a webpage, which makes it easier for the user to read and know what to focus on.

The project consists of two parts, the chrome extesion where you can find the front-end and push requests, which are sent to the second part which is the flask api that uses BERT model to get the attension for every word and filter which one to be marked.

requirments

  • python3
  • chrome browser

installation

  • first install the dependencies in requirments.txt.
pip install - r  {download_directory}\requirments.txt
  • open chrome -> type in chrome://settings/ -> extensions -> turn developer mode on -> choose load unpacked -> load the highlighting_extension folder
  • open flask_api.py by running it with python by running the code below, this might take a long time on your first load since it automatically downloads the model.
python {download_directory}\highlighting_api\flask_api.py
  • wait for it till shows that the api is running on the server.
  • Don't close the flask_api.py file as long as you want the extension to work.
  • pin the extension and have fun! <3

About

This is a chrome extension that marks the important words in paragraphs using multi-head attention in BERT transformers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published