-1

Can u please give some hint how can we create utterances for example I have input say - "I want my account details" The output should be like

  • Can I get my account details
  • Please provide me my account details
  • Can I get my account information
Daniel Möller
  • 84,878
  • 18
  • 192
  • 214
  • 1
    It's confusing what you are asking. Are you looking for a way to handle variations on a natural language command or query? – Matt Mar 16 '20 at 20:37
  • I'm not too familiar with some of the specific technologies you tagged. Maybe you want to take a look at word vectors. If you create word vectors for the original phrase and then look for the most similar vectors you should get phrases that are similar in meaning. – David Cram Mar 16 '20 at 23:00

1 Answers1

0

The problem you are describing here is called paraphrasing: taking an input phrase and producing an output phrase with the same meaning.

To get the taste of it, you can try an online paraphraser, like https://quillbot.com/.

And one way to create your own paraphraser (if you really really want it) is to get a pretrained translation model, and translate your phrase into some other language and then back into the original language. If your translator generates multiple hypotheses, then you'll have multiple paraphrases.

Another (simpler!) way is just to replace some of your words with their synonyms, obtained from WordNet, Wiktionary, or another linguistic resource.

Some more details you can find in this question.

David Dale
  • 10,958
  • 44
  • 73