简体   繁体   English

给定一个句子,如何使用机器学习生成与该特定句子相似但含义不同的句子?

[英]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.

相关问题 有没有办法实现机器学习 model 可以预测给定数据集中出现次数最多的句子 - is there any way to implement a machine learning model that can predict most occured sentence in a given dataset 如何使用 Python 提取特定单词周围的当前句子和周围句子? - How extract the current sentence and surrounding sentences around a particular word with Python? 如何使用 python 检查给定的英文句子是否包含所有无意义的单词? - How to check if a given english sentence contains all non-meaning words using python? Python机器学习对句子中的词进行分类 - Python Machine Learning Classifying Words in Sentence 如何使用python简化给定字符串的句子 - how to sentence simplification for given string using python 如何在不破坏句子的情况下将句子中的每个字母替换为句子? - How can I replace each letter in the sentence to sentence without breaking it? 我应该如何弄清楚这句话的确切含义? - How should i figure out the exact meaning of such sentence? 如何在python中反转部分句子? - How can I reverse parts of sentence in python? 如何判断一个句子是否包含特定的词 - How to find if a sentence contains particular word 当所有句子的关键字都包含在字典中时,如何将句子与字典相关联? - How can i associate a sentence to a dictionary when all the sentence's keywords are contained in the dictionary?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM