我想创建一个系统,我给出一个句子,系统会吐出与我给出的输入句子含义相似的句子 [英] I wish to create a system where I give a sentence and the system spits out sentences similar in meaning to the input sentence I gave

查看:24
本文介绍了我想创建一个系统,我给出一个句子,系统会吐出与我给出的输入句子含义相似的句子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个 NLP 问题,我想知道我应该如何进行.

This is an NLP problem and I was wondering how I should proceed.

问题有多难?我可以用同义词替换这个词并检查语法是否正确吗?

How difficult is the problem? Could I replace the word with synonyms and check that the grammar is correct?

推荐答案

用同义词替换单词可能是首先要尝试的事情,但要注意不要错过多个单词的表达和习语.此外,请确保选择具有相同词性的同义词.

Replacing words with synonyms is probably the first thing to try, but be careful not to miss multiple words expressions and idioms. Also, make sure you choose a synonym with the same part of speech.

他们寻找一个好的解决方案 <!>他们查看/盯着/...寻找一个好的解决方案

they look for a good solution < ! > they view/stare/... for a good solution

他们努力工作<!>他们的工作/任务/......很难

they work hard < ! > they job/task/… hard

更复杂的改写只有在您使用某种级别的语法分析时才有可能.你至少应该认出句子中的成分.

More complicated rephrasing is only possible if you use some level of grammatical analysis. You should at least recognize constituents within a sentence.

以下是一些考虑句子语法结构的改写示例:

Here are some examples for rephrasing which take into consideration the grammatical structure of the sentence:

狗吃了我的作业<>我的作业被狗吃掉了(钝化)

the dog ate my homework < > my homework was eaten by the dog (passivisation)

狗的骨头被偷了<>狗的骨头被偷了(占有欲改写)

the bone of the dog was stolen < > the dog’s bone was stolen (possessive rephrasing)

她给他寄了一封信<>她给他写了一封信(动词补语代替)

she sent him a letter < > she sent a letter to him (verb complements replacing)

我的名字是邦德 <>邦德是我的名字(连词)

my name is Bond < > Bond is my name (copular)

猫吃了蛋糕<>是猫吃了蛋糕(裂口)

the cat ate the cake < > it was the cat who ate the cake (cleft)

查看 Contextors API 及其 语音共轭器

这篇关于我想创建一个系统,我给出一个句子,系统会吐出与我给出的输入句子含义相似的句子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆