[英]Given a sentence, how can I generate similar sentences of that particular sentence but not with the same meaning using machine learning?
I want to generate similar sentences of a particular sentence but not with the same meaning from the text corpus I have.我想从我拥有的文本语料库中生成特定句子的相似句子,但含义不同。 How can I do it using machine learning?我如何使用机器学习来做到这一点? Any suggestions?有什么建议么?
generative adversarial networks (GANs) are a good selection for it.生成对抗网络(GAN)是一个很好的选择。 (May you need remove generated sentences with high similarity measure to remove same meaning sentences). (可能您需要删除具有高相似度的生成句子以删除相同含义的句子)。 By this way u can use other similar sentence generation methods and remove sentences with high similarity measures to remove sentences with same meaning.通过这种方式,您可以使用其他相似的句子生成方法并删除具有高相似度的句子以删除具有相同含义的句子。 Besides I suggest using mean of word2vec representation of words of each sentence to compute similarity of sentences as a simple method.此外,我建议使用每个句子的单词的 word2vec 表示的平均值来计算句子的相似度作为一种简单的方法。 Also, you can use parser to replace objects, verbs, subjects or other part of the sentence.此外,您可以使用解析器来替换句子的对象、动词、主语或其他部分。
As u asked your question in a general way, I answered it in a simple and easy to implement method.当您以一般方式提出您的问题时,我以一种简单易行的方法回答了它。 Other better methods are available if you want to know them plz mention me.如果您想了解其他更好的方法,请提及我。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.