为了提高英语水平坚持 没事的时候 翻译一下这篇文章。

今天 先简单的 翻译一下第一部分。本人英语超级菜,所以请各位看原始英文版,以免误导各位,每天翻译多少就上传多少。

制作一个人工智能聊天机器人教程

一步一步的指导你如何制作你自己的聊天机器人

1:Introduction Chatbot Description (first example)

简介聊天机器人 第一个例子

Basically a chatterbot is a computer program that when you provide it with some inputs in Natural Language (English, French ...) responds with something meaningful in that same language. Which means that the strength of a chatterbot could be directly measured by the quality of the output selected by the Bot in response to the user. By the previous description, we could deduce that a very basic chatterbot can be written in a few lines of code in a given specific programming language. Lets make our first chatterbot (notice that all the codes that will be used in this tutorial will be written in C++. Also, it is assumed that the reader is familiar with the STL library) This tutorial is also available in the following languages:Java,Visual Basic,C#,Pascal,PrologandLisp

基本上一个聊天机器人程序就是当你用自然语言(英语,法语....)提供输入时,它能够用相同的语言做出有意义的应答。

意思是一个健壮的聊天机器人可以的在响应用户时直接判断输出。通过前面的描述,我们可以推断一个非常基础的聊天机器人可以是用一种特定的编程语言写几行代码来完成的。

让我们编写第一个聊天机器人吧(注意:本教程的所有代码全部用C++,并且假定读者已经熟悉STL)。这个教程也可用如下语言编写 :

java vb c# pascal(DELPHI) and Lisp

1 //

2 //Program Name: chatterbot13 //Description: this is a very basic example of a chatterbot program4 //

5 //Author: Gonzales Cenelia6 //7

8 #include

9 #include

10 #include

11

12 intmain()13 {14 std::string Response[] ={15 "I HEARD YOU!",16 "SO, YOU ARE TALKING TO ME.",17 "CONTINUE, I’M LISTENING.",18 "VERY INTERESTING CONVERSATION.",19 "TELL ME MORE..."

20 };21

22 srand((unsigned) time(NULL));23

24 std::string sInput = "";25 std::string sResponse = "";26

27 while(1) {28 std::cout << ">";29 std::getline(std::cin, sInput);30 int nSelection = rand() % 5;31 sResponse =Response[nSelection];32 std::cout << sResponse <<:endl>

35 return 0;36 }

View Code

As you can see, it doesn't take a lot of code to write a very basic program that can interact with a user but it would probably be very difficult to write a program that would really be capable of trulyinterpreting(说明)what the user is actually saying and after that would also gene

rate an appropriate response to it. These have been a long term goal since the beginning and even before the very first computers were created. In 1951,the British mathematician(数学家)Alan Turing has came up with the questionCan machines thinkand he has also propose a test which is now known as theTuring Test.In this test, a computer program and also a real person is set to speak to a third person (the judge) and he has to decide which of them is the real person. Nowadays, there is a competition that was named the Loebner Prize and in this competition bots that has successfully fool most of the judge for at list 5 minutes would win a prize of 100.000$. So far no computer program was able to pass this test successfully. One of the major reasons for this is that computer programs written to compute in such contest have naturally the tendency(倾向) of committing a lot oftypo(排印错误) (they are often out of the context of the conversation). Which means that generally, it isn't that difficult for a judge to decide whether he is speaking to a "computer program" or a real person. Also, the direct ancestor of all those program that tries to mimic(模仿) a conversation between real human beings is Eliza,the first version of this program was written in 1966 by Joseph Weizenbaum a professor of MIT.

正如你看到的,他不需要很多的代码去编写一个非常基础的项目,它和用户交互,但是编写一个能够真正理解用户实际所说的话并给出适当的应答的程序是很难的。

甚至从第一台电脑诞生以来,这就一直是一个长期目标。

在1951年,英国数学家 阿兰 图灵提出一个问题 “机器人可以思考”并且提出了一个测试,现在被称为“图灵测试”,

在这个测试中 一个电脑程序和是一个真人,将和第三个人对话。第三个人要分辨出哪个是真人。

如今,有一个被叫做“勒布纳奖"的竞赛。在这个竞赛机器人如果欺骗了大多数”裁判官“将得到10W美金。目前为止还没有任何程序通过测试。

主要原因是,为这个项目写一个有语言倾向的估算有很多错误(他们经常断章取义的交谈)。

意思就是说,区分机器人和真人并不是很难的。

此外,所有这些程序试图模仿真正的人类之间的对话的直接祖先是伊丽莎,这个程序写的第一个版本于1966年由麻省理工学院教授约瑟夫魏泽鲍姆。

Chatbots in general are considered to belong to the weak a.i field (weak artificial intelligence) as opposed to strong a.i who's goal is to create programs that are as intelligent as humans or more intelligent.

But it doesn't mean that chatbots do not have any true potential. Being able to create a program that could communicate the same way humans do would be a great advance for the a.i field.

Chatbot is this part of artificial intelligence which is more accessible to hobbyist (it only take some average programming skill to be a chatbot programmer). So, programmers out there who wanted to create true a.i or some kind of artificial intelligence, writing intelligent chatbots is a great place to start!

聊天机器人一般被认为是属于弱AI场(弱人工智能),而不是强大的AI ,他的目标是创造人类一样聪明或更智能的程序。

这并不意味着聊天机器人没有任何潜力。能够创建一个和人一样沟通的程序,在人工智能领域将是一个巨大进步。

聊天机器人是人工智能这方面爱好者这部分(它只能采取一些普通编程技能是一个的chatbot程序员)

所以,谁想要建立真正的人工智能AI或某种程序员,编写的智能聊天机器人是一个伟大的地方开始!

不认识的陌生词语

1 Interact v. 互相作用; 互动; 互相影响2 probably adv. 大概, 或许3 capable adj. 有能力的, 能干的, 能的4 truly adv 真实的 不假的5 interpretive adj. 作为说明的; 解释的6 actually adv. 实际上, 真的; 竟然7 generate v. 产生, 导致, 发生8 appropriate v. 拨出; 挪用, 盗用; 占用9 adj. 适当的, 恰当的, 相称的10 term goal 长期目标11 propose v. 计划, 建议, 打算; 打算, 求婚12 judge n. 法官, 推事, 审判官13 v. 审理; 判断; 鉴定; 下判断; 作评价14 major n. 主修, 陆军少校, 成年人; 大调15 v. 主修16 adj. 主要的, 大部份的, 较多的; 主修的, 大调的, 成年的17 reason n. 理由, 动机, 原因; 判断力, 推理; 理性, 理智; 道理, 情理18 v. 推论, 思考, 劝说; 说服, 辩论, 推论19 compute v. 计算; 推断; 估算20 contest n. 竞赛, 争论21 v. 竞赛, 争辩, 争取; 争夺22 tendency n. 趋向, 倾向23 conversation n. 会话, 交谈, 说话24 generally adv. 通常, 普遍地, 逐渐地; 一般来说25 direct v. 指示, 命令, 指挥; 指导; 指挥26 adj. 直接的, 坦白的27 adv. 直接地28 ancestor n. 祖宗, 祖先; 先驱; 原型; 被继承人29 tries n. 试验者, 审问者, 试验物30 mimic n. 效颦者; 小丑; 模仿者31 v. 模仿; 摹拟32 adj. 模仿的; 拟态的; 假装的33 conversation n. 会话, 交谈, 说话34 considered adj. 考虑过的; 被尊重的35 belong v. 属于, 住; 合适; 适宜36 weak adj. 不牢固的, 虚弱的, 弱的37 field n. 领域, 范围, 领地; 场地, 田地; 被指定为记录里信息项目的空间 (计算机用语); 表面; 用于运动的场地; 游戏者的作品; 层次; 打仗的场地, 战场; 战斗38 v. 使上场; 担任场外队员39 adj. 田间的; 野外的; 野生的40 artificial adj. 人工的, 人造的; 矫揉造作的, 不自然的; 假的; 人为的41 intelligence n. 智力; 智能; 聪明42 opposed adj. 反对的, 对抗的, 敌对的43 potential n. 潜在性, 可能性44 adj. 有潜力的, 潜在的, 可能的45 communicate vt. 传达,表达;显示:清晰地揭示;表明;传染:扩散;46 vi. 通讯;交际;相连;相通;47 advance n. 前进; 增长; 发展; 增高48 v. 使向前移动; 将...提前; 推进, 促进; 预付; 前进; 进展; 向前移动; 进步49 adj. 先行的; 预先的, 事先的50 accessible adj. 易受影响的, 易接近的, 可进入的51 hobbyist n.沉溺于某种癖好者, 业余爱好者

View Code

chatterbot mysql_Chatbot Tutorial (聊天机器人制作教程) 每日更新 不断学习相关推荐

  1. 写字机器人制作教程2.0

    写字机器人制作教程2.0 在一年前发布了写字机器人1.0,做的比较low,疫情期间在家重新建模,升级了2.0 点击前往写字机器人1.0 文件下载请前往文章末尾. 效果图如下: 视频教程 0基础制作写字 ...

  2. 迷你世界滑动方块机器人怎么做_迷你世界怎么做机器人 机器人制作教程

    迷你世界是款沙盒游戏,在游戏中没有现成的机器人,大家需要通过制作来进行操作.大家都非常好奇怎么做?那么下面小编就与玩家们分享下关于迷你世界机器人制作教程,玩家们一起来看看吧. 机器人教程 电路存档:王 ...

  3. mc有什么红石机器人_我的世界红石机器人怎么做_我的世界红石机器人制作教程...

    我的世界是一款风靡全球的高自由度沙盒游戏,很多玩家都认为在游戏中做一个会动的机器人是一件很有趣的事情,然而还有很多小伙伴不清楚怎么搭建机器人,那么我的世界红石机器人怎么做?下面小编就把我的世界红石机器 ...

  4. 火爆全网的人工智能聊天机器人使用教程

    最近,大家有没有被一款人工智能聊天机器人所刷屏呢?记得之前元宇宙刚出来的时候,也是极其火爆,虽说这二者是不同的性质,但是都是代表着当下互联网发展之迅速. 一.简介 百度百科中给出的解释:美国" ...

  5. chatterbot mysql_离线聊天机器人

    聊天机器人 一.语音识别 MASR是一个基于端到端的深度神经网络的开箱即用的中文普通话语音识别工具. 1.1使用docker安装 docker使用起来就像虚拟机一样,同时有着原生的性能.使用docke ...

  6. 《自己动手做聊天机器人》教程

    开篇在: http://www.shareditor.com/blogshow/?blogId=63 http://www.shareditor.com/blogshow/?blogId=65 htt ...

  7. 手把手QQ机器人制作教程,根据官方接口进行开发,基于Python语言制作的详细教程(更新中)

    第 1 课.注册 QQ 开放平台账户 QQ开放平台官方地址:https://q.qq.com/#/app/bot QQ开放平台包含:QQ机器人.QQ小程序.QQ小游戏,我们这边选择QQ机器人. 机器人 ...

  8. 乐高拉力机器人图纸_乐高MOC图纸分享:乐高MINI机器人制作教程(图文版)

    机器人整体以白色为主,配色较少是为了便于收集材料,方便大家复刻. 类似于高达机器人,DSK3在这款机器人的背部设计了微型的喷射背包,十分给力. 以上是机器人身体部分的零件清单,小编一眼望去应该是不超过 ...

  9. android画机器人,cdr怎么绘制安卓小人?cdr安卓机器人制作教程

    设计是一门很高的学问,它能的功能是非常之大,只有你想不到的没有他做不到的,现在无论是户外还是网络都离不开网络,今天就来和小编一起学习一下cdr怎么制作安卓小人: 1.首先我们需要操作的就是,打开cdr ...

最新文章

  1. Android中windowTranslucentStatus与windowTranslucentNavigation的一些设置(转)
  2. 如何在Android上管理startActivityForResult?
  3. vmware网络模式设置(说的最简单的一篇文章)
  4. cubemx lan8720模块_通过STM32cubeMX将STM32F767+LAN8720+LwIP+FreeRTOS的以太网实现
  5. julia 编程语言_Julia编程语言中的变量
  6. STM32CUBEF4 实现USB 虚拟串口
  7. java网店系统_java网店系统JSPGOU
  8. 数字转换为人民币大写
  9. 如何按要求批量修改Excel工作表名称
  10. Oracle 常用脚本之查看视图、序列、存储过程、触发器、同义词、计划任务等信息
  11. SpringBoot启动失败:出现错误——HikariPool-1 - Shutdown initiated...后立即出现 HikariPool-1 - Shutdown completed.
  12. 故障树手册(Fault Tree handbook)(4)
  13. unity黑白滤镜_unity3D 把图片变黑白的Shader
  14. ubuntu下安装Realtek usb无线网卡驱动(8821cu)
  15. 如何下载西门子产品CAD、3D和EPLAN文件
  16. 未来的电子计算机作文300字,未来的校园科幻作文300字(精选3篇)
  17. JavaScript点击button更改内容,清空页面
  18. git 取消合并与撤销
  19. 热评云厂商:蓝汛4.0亿元,如何扭转乾坤看转型与创新
  20. 《深入理解Android JVM ART》勘误及建立读者交流群的说明

热门文章

  1. PHP实现抓取HTTPS内容
  2. Newman介绍与安装
  3. Android性能优化–Systrace工具,移动网页开发工具
  4. Android修行手册 - Chip监听和ChipGroup监听
  5. 微服务基础模块搭建过程
  6. 蓝桥杯 填字母游戏(博弈论)
  7. 8.Java基础之多线程
  8. labview2048小游戏详细解析+改进
  9. 战五渣系列之四(精通泛型)
  10. 分销小程序开发教你如何分清分销商和代理商