kandi background
Explore Kits
Paraphrase Generator

Instantly build Python Paraphrase Generator for NLP

Paraphrase Generator is used to build NLP training data in minutes with this fully editable source code that comes along with the Kandi 1-Click Solution kit. The entire solution is available as a package to download from the source code repository.
  • Generate paraphrases for text using this application. The trained model for Google PAWS, ParaNMT, Quora question pairs, SNIPS commands, and MSRP Frames
  • Use Paraphrasers to augment training data for Natural Language Understanding models to build conversational engines.
  • Modify source code to customize as per your requirements
  • While you are downloading this kit, here are other 1-click ready-to-deploy projects to try: ✅ Build AI-Powered Virtual Assistant | ✅ Build AI-Powered Object Detector You can also find popular libraries for: 🔎 Paraphrase Generator | 🔎 NLP | 🔎 AI Libraries

    Training and Certification - How to build Python Paraphrase Generator for NLP

    Watch this self-guided tutorial on an understanding of installing dependent libraries (e.g. PyTorch, sentence transformers, and transformers); load pre-trained models on which this generator is already trained to make use of open source libraries to build your own Python Paraphrase Generator for NLP. Completed the training? Apply for your Participation Certificate and Achievement Certificate now! Tag us on social media with a screenshot or video of your working application for a chance to be featured as an Open Source Champion and get a verified badge.

    Kit Deployment Instructions

    For Windows OS, Download, extract and double-click the kit installer file to install the kit. Note: Do ensure to extract the zip file before running it. The installation may take from 2 to 10 minutes based on bandwidth. If you face any challenges while installing, please refer troubleshooting section of this kit. 1. After successful installation of the kit, press 'Y' to run the kit and execute cells in the notebook. 2. To run the kit manually, press 'N' and locate the zip file 'parrot-paraphrase-generator.zip' 3. Extract the zip file and navigate to the directory 'parrot-paraphrase-generator' 4. Open the command prompt in the extracted directory 'parrot-paraphrase-generator' and run the command 'jupyter notebook' For other Operating System, 1. Click here to install python 2. Click here to download the repository 3. Extract the zip file and navigate to the directory 'parrot-paraphrase-generator-main' 4. Open terminal in the extracted directory 'parrot-paraphrase-generator-main' 5. Install dependencies by executing the command 'pip install -r requirements.txt' 6. Run the command ‘jupyter notebook’ and select the notebook ‘paraphrase_generator.ipynb’ on the browser window.

    Instructions to Run

    Follow the below instructions to run the solution. 1. Locate and open the 'paraphrase_generator.ipynb' notebook from the Jupyter Notebook browser window. 2. Execute cells in the notebook by selecting Cell --> Run All from Menu bar. 3. Once all the cells of the notebook are executed, the last interactive cell (Interactive shell simulation) will be active where input data can be given. Input data
    Enter a phrase (To quit enter exit): How do I become an astronaut?
    Do you want phrasal diversity (y or n): n
    
    Output data
    ----------------------------------------------------------------------------------------------------
    Input_phrase:  How do I become an astronaut?
    ----------------------------------------------------------------------------------------------------
    ('how can i become a successful astronaut?', 26)
    ('how can one become an astronaut?', 16)
    ('how should i become an astronaut?', 14)
    ('how do i become an astronaut?', 12)
    
    For any support, you can reach us at FAQ & Support

    Libraries useful for this solution

    Development Environment

    VSCode and Jupyter Notebook are used for development and debugging. Jupyter Notebook is a web-based interactive environment often used for experiments, whereas VSCode is used to get a typical experience of IDE for developers. Jupyter Notebook is used for our development.

    Machine Learning

    The library offers state-of-the-art pre-trained models for Natural Language Processing (NLP).

    Troubleshooting

    1. If you encounter any error related to MS Visual C++, please install MS Visual Build tools 2. While running batch file, if you encounter Windows protection alert, select More info --> Run anyway. 3. During kit installer, if you encounter Windows security alert, click Allow. 4. If you encounter Memory Error, check if the available memory is sufficient and it is proportion to the size of the data being used. For our dataset, the minimum required memory is 8GB. If your computer doesn't support standard commands from windows 10, you can follow the instructions below to finish the kit installation. 1. Click here to install python 2. Click here to download the repository 3. Extract the zip file and navigate to the directory 'parrot-paraphrase-generator-main' 4. Open terminal in the extracted directory 'parrot-paraphrase-generator-main' 5. Install dependencies by executing the command 'pip install -r requirements.txt' 6. Run the command ‘jupyter notebook’ and select the notebook ‘paraphrase_generator.ipynb’ on the browser window.

    Support

    For any support, you can reach us at FAQ & Support
    • © 2022 Open Weaver Inc.