paraphrase.ia is a Chrome extension that let's you make paraphrases of a highlighted text in your browser.
Many languages are supported!
It's an app that harnesses the power of pre-trained transformers and their natural language processing capabilities to create a few paraphrases from any given text you have highlighted in your browser.
Why only highlighted texts? Well, we thought it would be a better UX than just throwing an input box :)
- Highlight any text inside your browser.
- Click the extension icon.
- Click paraphrase now and wait a few seconds.
You'll receive a list with a few paraphrases that you may use to enhance your writting experience. Clicking any result paraphrase will copy it's text so you can paste it anywhere you want.
- Download any of the extension_XX folders based on your desired UI language. (Either portuguese or english at the moment).
- Go to your chrome extensions settings and then activate developer mode.
- Then click load unpack and select the whole extension_XX folder in your downloads.
Now you'll be able to access paraphrase.ia by clicking it's icon on the top right corner of your browser.
Note: This process assumes our server is still running and you haven't hosted your own.
Our application uses a transformers language model and a translation api.
- Paraphrasing model.
- Translation API.
At the time of writting this readme, the model is being hosted by a flask web server running in a Google Cloud VM with 4 cores and 16 GiB RAM. It's service costs around $170 monthly not counting for the translation costs, we're currently affording it, but it won't be up for long. You may host it for yourself!
- Create a folder for our web server.
- Download the API folder of this repository.
- Make sure to have a Google Cloud Translate API key.
- Place the Translate API key JSON in the API folder.
- Install required libraries and Parrot.
pip install flask flask-cors pandas google-cloud-translate git+https://github.com/PrithivirajDamodaran/Parrot_Paraphraser.git- Run
main.pyand your server should be running.
Finally, inside the popup.js file, replace the api_url variable with your Flask server ip address and now all paraphrase.ia requests should be headed there.
- Selection feature doesn't work within applications where it's text is written inside a canvas tag.
- Bigger phrases aren't being paraphrased correctly.
- Sometimes paraphrases come duplicated.
- Depending of which text you chose, it may not be able to paraphrase.