[chatGPT]回答拟人化脚本

news/2024/10/19 15:25:52/

chatGPT已经火挺久了,个人也是经常使用协助日常工作,或者去问答板块答点题。chatGPT出来的一开始,我就想到能不能利用chatGPT干些什么事,除了帮助我以外。这一问一答,就让我想起了csdn的问答板块。

其实我属于第一批使用chatGPT在问答板块进行回答的人,个人感觉chatGPT功能确实很强大。也能帮助不少人解决问题,但是chatGPT回答的答案除了有造假编造以外,个人感觉它的回答不够像个真人,如果是真人回答的话,那被采纳成功的概率会不会变大呢?正好我了解一些vbs脚本,便使用vbs编写了一个可以让回答拟人化点的脚本,里面的关键词也在不断更新。

我是感觉现在问答板块已经被chatGPT席卷了,希望问问题的人有更多辨别是非的能力,毕竟chatGPT的答案始终是仅供参考的,正如我使用chatGPT在回答的时候也会加上“仅供参考”。

下面我贴上我不断更新后的vbs脚本代码,希望能用在合适的地方,或者说是否能对抗chatGPT即将推出的【AI标识】。chatGPT更适合给自己使用,协助自己的工作,那还是勉强可以的。

Const ForReading = 1
Const ForWriting = 2Set objFSO = CreateObject("Scripting.FileSystemObject")' 读取文本文件
Set objFile = objFSO.OpenTextFile("F:\code\test.txt", ForReading)
strText = objFile.ReadAll
objFile.Close' 拟人化智能字典库
' 关键词根:你
strText = Replace(strText, "首先,你可以尝试", "可以先试试")
strText = Replace(strText, "会对你有帮助", "会有帮助")
strText = Replace(strText, "首先,你需要", "需要先")
strText = Replace(strText, "对于你的问题", "对于这个问题")
strText = Replace(strText, "你在尝试", "在")
strText = Replace(strText, "你尝试", "")
strText = Replace(strText, "给你:", ":")
strText = Replace(strText, "你的", "")
strText = Replace(strText, "你", "")' 关键词根:您
strText = Replace(strText, "会对您有帮助", "会有帮助")
strText = Replace(strText, "首先,您需要", "需要先")
strText = Replace(strText, "首先,您", "")
strText = Replace(strText, "您在尝试", "在")
strText = Replace(strText, "给您:", ":")
strText = Replace(strText, "您的", "")
strText = Replace(strText, "您", "")' 关键词根:我
strText = Replace(strText, "我们知道,", "")
strText = Replace(strText, "我们", "")
strText = Replace(strText, "我猜测", "我觉得")
strText = Replace(strText, "首先,我", "可以")' 关键词根:例如
strText = Replace(strText, "。例如:", ":")
strText = Replace(strText, ",例如:", ":")
strText = Replace(strText, "例如,如果", "假如")
strText = Replace(strText, "例如,", "例如")
strText = Replace(strText, "例如:", "")' 关键词类:复杂类
strText = Replace(strText, "所以,", "所以")
strText = Replace(strText, "总之,", "总结就是")
strText = Replace(strText, "但是,", "但是")
strText = Replace(strText, "是的,", "是这样的,")
strText = Replace(strText, "请", "")
strText = Replace(strText, "则", "就")
strText = Replace(strText, "因此,", "因此")
strText = Replace(strText, "首先,需要", "需要先")
strText = Replace(strText, "首先,可以", "可以先")
strText = Replace(strText, "然后,", "然后")
strText = Replace(strText, "最后,", "")
strText = Replace(strText, "这样,", "这样")
strText = Replace(strText, "此外,可以", "还可以")
strText = Replace(strText, "此外,", "此外")
strText = Replace(strText, "另外,", "另外")
strText = Replace(strText, "其次,可以", "接着可以")
strText = Replace(strText, "其次,", "其次")' 关键词根:注意
strText = Replace(strText, "注意:", "这里注意")
strText = Replace(strText, "注意,", "注意下")' 关键词类:没归类
strText = Replace(strText, "Copy code", "```")
strText = Replace(strText, "中国", "我国")' 关键词根:尝试
strText = Replace(strText, "如果尝试打开", "如果打开")
strText = Replace(strText, "已经尝试了", "已经试了")
strText = Replace(strText, "它会尝试", "它会")
strText = Replace(strText, "重新尝试", "试试")
strText = Replace(strText, "并尝试解决", "并试着进一步解决")
strText = Replace(strText, "再次尝试", "再试试")
strText = Replace(strText, "可以尝试", "可以试试")
strText = Replace(strText, "在尝试", "在")' 定义替换列表
replaceList = Array("可以试试", "试试", "试一下", "试着", "试试看", "可以试一下", "可以试着", "可以试试看", "还可以试试")' 随机数生成函数
Function getRandomWord()Randomize' 随机选取一个替换词randomIndex = Int((UBound(replaceList) - LBound(replaceList) + 1) * Rnd + LBound(replaceList))getRandomWord = replaceList(randomIndex)
End Function' 替换文本中的所有"尝试"
Do While InStr(strText, "尝试")replaceWord = getRandomWord()strText = Replace(strText, "尝试", replaceWord, 1, 1, vbTextCompare)
Loop' 写入文本文件
Set objFile = objFSO.OpenTextFile("F:\code\test.txt", ForWriting, True)
objFile.Write strText & vbCrLf & "仅供参考,望采纳,谢谢。"objFile.Close'运行后打开文件
Set objShell = CreateObject("WScript.Shell")
objShell.Run "notepad.exe F:\code\test.txt"

至于如何使用vbs脚本,自己研究吧。


http://www.ppmy.cn/news/950356.html

相关文章

ChatGPT Network Error 在使用chatGPT的过程中回答到一半显示网络错误

目录 问题描述 可能原因 解决办法 官方回复 问题描述 今天在使用ChatGPT的时候,发现它在返回答案是时候有字数限制,在超过一定数量的答案输出以后会显示network error如下图所示: 令人沮丧的是,ChatGPT的这个BUG甚至删除了答…

ChatGPT回答:console.writeline 和 System.out.println区别

这两个函数是用于在控制台输出内容的函数,他们的作用相同,语法也类似,不同之处在于: Console.WriteLine是C#语言中的控制台输出函数,用于在控制台中输出指定的信息,例如:csharpConsole.WriteLi…

ChatGPT 回答什么是敏捷测试

Jenkins 官方文档:https://jenkins.io/doc/JUnit 插件文档:JUnit | Jenkins pluginTestNG 插件文档:https://plugins.jenkins.io/testng-plugin/Jenkins 教程:https://jenkins.io/doc/tutorials/JUnit 教程:JUnit 5 Us…

如何评价 ChatGPT 回答策略的 ensure only ethical usage 特质

有人批评 ChatGPT 的回答策略是 ensure only ethical usage,如何理解这句话? 这句话的意思是,ChatGPT被批评的回答策略只是确保其在伦理上的使用,即遵循道德和法律规范。这意味着ChatGPT的开发者们试图避免ChatGPT被用于违反伦理…

chatGPT回答如何使用axios?

Axios 是一个基于 Promise 的 HTTP 客户端,可以用于浏览器和 node.js 中。 要使用 Axios,首先需要在项目中安装它: npm install axios然后,可以在你的代码中引入 Axios: const axios require(axios);或者&#xf…

ChatGPT不能回答什么问题?

ChatGPT 是一个用于对话的大型自然语言生成模型,它可以用来回答各种问题,但是有些问题可能会超出它的能力范围,例如: 询问 ChatGPT 不存在的事实。询问 ChatGPT 不懂的概念。询问 ChatGPT 没有训练过的话题。 这些问题 ChatGPT 将…

浅谈各知名博客禁止使用chatGPT回答或解决问题

最近一些知名博客和网站禁止使用ChatGPT回答或解决问题,这表明人们对自动化工具在解决问题时的不信任。这对于那些试图使用ChatGPT来自动回答问题的开发者来说可能会是一个挑战,但也说明了人们对质量和可靠性的重视。 ChatGPT可以提供很好的帮助&#x…

利用 ChatGPT 回答 R 相关问题

最近小编也尝试使用了 ChatGPT,下面给出一些知乎上常见 R 语言相关问题的回答。供大家参考: 目录 文章目录 目录经典问题预测数据科学软件排名数据科学的 10 个常用 R 包R 语言入门书籍和网站推荐回答专业问题 绘图绘制正负柱状图动态散点图 构建 Shiny…