We have seen two awesome tools Gramformer and Styleformer from the same developer:
The developer comes up with a third new tool called Parrot Paraphraser. This tool is very useful when we develop Conversation AI, Grammar tool, Paraphrasing/Rewording tool, Document editing, Proofreading, etc.
What is Parrot Paraphraser?
Parrot is a paraphrase based utterance augmentation framework purpose built to accelerate training NLU models. A paraphrase framework is more than just a paraphrasing model.
What is the scope of Parrot Paraphraser?
In the space of conversational engines, knowledge bots are to which we ask questions like “when was the Berlin wall teared down?”, transactional bots are to which we give commands like “Turn on the music please” and voice assistants are the ones which can do both answer questions and action our commands. Parrot mainly foucses on augmenting texts typed-into or spoken-to conversational interfaces for building robust NLU models. (So usually people neither type out or yell out long paragraphs to conversational interfaces. Hence the pre-trained model is trained on text samples of maximum length of 32.)
While Parrot predominantly aims to be a text augmentor for building good NLU models, it can also be used as a pure-play paraphraser.
Source of Parrot: Parrot_Paraphraser
Image Source: Parrot_Paraphraser
*************************************************************************** Input_phrase: Celebrate life and be happy *************************************************************************** ('celebrate life and be happy', 12) *************************************************************************** Input_phrase: What is the best movie in Netflix? *************************************************************************** ('show some of the best netflix movies of all time?', 34) ('list some of the best netflix movies?', 30) ('which movie is recommended by netflix?', 29) ('which is the best netflix movie?', 27) ('which are best films on netflix?', 25) ('recommend some of the best movies on netflix?', 18) ('tell me the best movie on netflix?', 18) ('tell me the best movie in netflix?', 17) ('which is the best movie on netflix?', 15) *************************************************************************** Input_phrase: I don't know, how to rate a movie? *************************************************************************** ('what is a method for a film to be rated?', 33) ('how can i rate a movie?', 26) ('how do i rate a movie?', 25) ('how do you rate a movie?', 25) ('why do i have no idea how to rate a movie?', 21) ("what should i do when i don't know how to rate a movie?", 18) ("why don't i know how to rate a movie?", 14) ("i don't know how to rate a movie", 13) ('i dont know how to rate a movie?', 13) ("i don't know how to rate a movie?", 12) *************************************************************************** Input_phrase: I want to eat Pizza. *************************************************************************** ('i want pizza', 20) ('i want to eat pizza', 13) *************************************************************************** Input_phrase: I am not able to hear you properly *************************************************************************** ("i'm not in the right position to hear you", 34) ("i can't hear you properly", 24) ("i'm not able to hear you", 23) ("i'm not able to hear you clearly", 19) ('i am not able to hear you well', 18) ("i'm not able to hear you properly", 14)
We can see it is rewording whatever sentence we entered, however, some sentence gives the same result e-g Celebrate life and be happy.
Let me know your comments on what you like about the Parrot Paraphraser. You can check Google Colab here.
Further Reading
Posts on Artificial Intelligence, Deep Learning, Machine Learning, and Design Thinking articles:
Rasa X Open Source Conversational AI UI Walk-through
Artificial Intelligence Chatbot Using Neural Network and Natural Language Processing
Leave A Comment