对话模拟数据 - 从哪里获取或如何生成

发布于 2024-08-01 14:52:19 字数 442 浏览 1 评论 0 原文

我正在编写一种特殊的聊天/论坛软件,需要一个模拟对话源以在屏幕截图、演示和测试中使用。

它们不应包含真实姓名或其他潜在有害信息,应为 100% 正确的英语,并且彼此之间至少应具有某种意义。

例子:

消息 #1 主题:你好,约翰,怎么样? 大约一品脱柠檬水? 文字:嗨 约翰,只是想看看你是否有 下周某个时候晚上有空。 我们 可以出去喝点柠檬水。 你怎么认为? 最好,苏

消息 #2 文本:嗨,苏,怎么样? 星期二。

等等,但是有数百个......

有此类事情的在线资源吗? 我考虑过删除自己的电子邮件并删除姓名,但这需要大量工作。 也想过让两个聊天机器人互相对抗,但不知道从哪里开始。 有什么线索吗?

I'm writing a special sort of chat/forum software and need a source of mock conversations to use in screenshots, demos and tests.

They should contain no real names or other potentially harmful information, should be 100% correct English and should make at least some sense in relation to each other.

Example:

Message #1 Subject: Hello John, how
about a pint of lemonade? Text: Hi
John, just wanted to check if you have
a free evening sometime next week. We
could go out and have some lemonade.
What do you think? Best, Sue

Message #2 Text: Hi Sue, what about
Tuesday.

etc., but hundreds of those...

Is there an online source for this sort of thing? I thought about scraping my own email and removing names, but that's a lot of work. Also thought about putting two chat bots against each other, but don't know where to start. Any clues?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

很酷又爱笑 2024-08-08 14:52:19

您可以下载现成的聊天机器人脚本之一,并将其​​改编为使用 HTTP 聊天界面,示例之一是 Chatbot-Elisa perl 模块,其中甚至包括两个机器人交谈的示例:

Sally:  Do you think coming here will help you not to be sad?
Harry:  We were discussing you -- not me.
Sally:  Does someone else believe I -- not you?
Harry:  You're not really talking about me -- are you?
Sally:  Do you sometimes wish you were not really talking about you -- are me?
Harry:  Why do you think I -- are you?
Sally:  Oh, I?
Harry:  Do you say you for some special reason?
Sally:  You're not really talking about me -- are you?
Harry:  What makes you think I am not really talking about you -- are me?

因此您只需添加将它们粘合到聊天引擎的代码,然后看看它们会出现什么结果与:)(或者,如果您正在寻找的只是“内容”,您可以使用“twobots”示例。

You can download one of the readily available chat bot scripts and adapt them to use the HTTP chat interface, one of the examples is Chatbot-Elisa perl module, which even includes the example that has two bots talking:

Sally:  Do you think coming here will help you not to be sad?
Harry:  We were discussing you -- not me.
Sally:  Does someone else believe I -- not you?
Harry:  You're not really talking about me -- are you?
Sally:  Do you sometimes wish you were not really talking about you -- are me?
Harry:  Why do you think I -- are you?
Sally:  Oh, I?
Harry:  Do you say you for some special reason?
Sally:  You're not really talking about me -- are you?
Harry:  What makes you think I am not really talking about you -- are me?

So you will just need to add the code that will glue them to your chat engine and look what they can come up with :) (Or, if all you are looking is the "content", you can just use that "twobots" example.

记忆之渊 2024-08-08 14:52:19

你想要:

  • 一场戏剧,分成(说话者,单词)元组。 使用(例如)古腾堡的麦克白(Macbeth)和一点正则表达式将文本转换为这种格式应该足够简单。 要么直接使用场景作为聊天线程,要么...
  • 马尔可夫链文本生成器,根据每个角色的语音进行训练,这将为您提供无限量的数据可供使用。

You want:

  • A play, split into (speaker,words) tuples. It should be simple enough to use (f'rinstance) Macbeth, from Gutenberg, and a little bit of regexery to get the text into this format. Either use the scenes directly as chat threads, or...
  • A Markov Chain text generator, trained on each character's speech, which will give you an infinite amount of data to play with.
可爱咩 2024-08-08 14:52:19

让您的朋友和兄弟姐妹使用您的聊天软件。

Have your friends and siblings use your chat software.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文