CN100505664C - Interdynamic question-answering system and realizing method thereof - Google Patents

Interdynamic question-answering system and realizing method thereof Download PDF

Info

Publication number
CN100505664C
CN100505664C CN 200710086961 CN200710086961A CN100505664C CN 100505664 C CN100505664 C CN 100505664C CN 200710086961 CN200710086961 CN 200710086961 CN 200710086961 A CN200710086961 A CN 200710086961A CN 100505664 C CN100505664 C CN 100505664C
Authority
CN
China
Prior art keywords
knowledge
interactive
mode
chat
user
Prior art date
Application number
CN 200710086961
Other languages
Chinese (zh)
Other versions
CN101068177A (en
Inventor
刘云峰
杨海松
Original Assignee
腾讯科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Priority to CN 200710086961 priority Critical patent/CN100505664C/en
Publication of CN101068177A publication Critical patent/CN101068177A/en
Application granted granted Critical
Publication of CN100505664C publication Critical patent/CN100505664C/en

Links

Abstract

本发明公开了一种互动问答系统,该系统包括通信单元、模式管理单元、聊天机器人单元、知识学习单元和知识库。 The present invention discloses an interactive question and answer system includes a communication unit, a mode management unit, the robot unit talking, the learning unit knowledge and knowledge. 通信单元,用于接收用户输入,并将所述用户输入发送到模式管理单元;模式管理单元,用于根据用户输入对所述互动问答系统的当前运行模式进行管理,以在互动游戏模式和聊天模式中进行切换;聊天机器人单元,用于在聊天模式中通过所述通信单元向用户返回聊天输出;知识学习单元,用于在互动游戏模式中从用户输入中学习知识,并将所学习到的知识保存到知识库。 A communication unit for receiving user input and transmitting the user input to the mode management unit; mode management unit for managing the current operating mode of the interactive quiz system according to a user input to interactive games and chat mode mode switching; bot unit for return to the user through the communication unit outputs chat chat mode; knowledge learning unit configured to learn from the user input in the interactive game mode information, and the learned save knowledge into the knowledge base. 本发明还公开了一种互动问答方法。 The present invention also discloses a method for interactive questions and answers. 应用本发明以后,可以在多人互动过程中实现对机器人知识库的扩充,从而使得互动内容更加充分。 After application of the invention, the robot can achieve the expansion of the knowledge base in multiplayer interactive process, making interactive content more fully.

Description

一种互动问答系统及其实现方法 An interactive question and answer system and its implementation method

技术领域 FIELD

本发明涉及网络应用(Application)技术领域,更具体地说,本发明涉及一种互动问答系统及其实现方法。 The present invention relates to the technical field of network applications (the Application), and more particularly, the present invention relates to an interactive question and answer system and its implementation method.

背景技术 Background technique

随着计算机和计算机网络的日益普及,互联网已经深入到人们工作、学习和生活的各个领域,人们开始通过互联网进行各种互动游戏达到娱乐的目的,其中就包括以网络游戏为示例的各种互动问答游戏。 With the increasing popularity of computers and computer networks, the Internet has penetrated into people work, live and study in various fields, people began to achieve a variety of interactive games and entertainment via the Internet, including a variety of interactive online game as an example of quiz.

以网络IQ类游戏为例对现有的互动问答游戏做出示范性分析。 Web-IQ games as an example of the existing interactive quiz made exemplary analysis. 现有的网络IQ问答游戏系统主要包括三类,分别为基于桌面游戏客户端的网络IQ 问答游戏系统、基于聊天机器人系统(IM)的网络IQ问答游戏系统、基于Web页面的网络IQ问答游戏系统。 IQ quiz existing network system including three categories, namely gaming desktop game IQ quiz the client's network-based robot system based chat (IM) network system IQ quiz, quiz game system based on the network Web page IQ. 基于桌面客户端的IQ互动问答游戏互动性较强,用户安装游戏后,需要注册账号,登录游戏,然后再分组进行游戏。 IQ-based interactive desktop client interactive quiz strong, users install the game, you need to register an account, log in the game, and then grouping the game. IQ问题可以由某一个玩家提出,其他玩家抢答;也可以由系统提出问题,所有玩家抢答。 IQ problems can be made by one player, other players answer; you can also ask questions by the system, all players answer. 作答完毕后,由提问玩家或者系统公布正确答案和各个玩家的成绩。 After the answer is completed, the correct answer and the results announced by the various players questioning the players or the system.

然而,基于桌面客户端的IQ互动问答游戏,需要额外安装游戏程序和注册账号。 However, based on IQ quiz interactive desktop client, you need to install the game program and additional registration account. 而且游戏过程中有创意的IQ问答没有很好地保留下来,也不能再次被利用。 And during the game creative IQ quiz is not well preserved, it can not be used again.

另外,即时通信工具是互联网用户使用最多的桌面工具之一,有很好的普及率,而基于即时通信系统的聊天机器人则使用很方便,只要将机器人对应的号码添加为好友,即可与它聊天或者使用它的各种增值服务(如天气预报查询和多种游戏),且无须额外安装任何程序。 In addition, the instant messaging tool is one of the most Internet users use desktop tools, have a good coverage, but the use of robot-based chat instant messaging system is very convenient, as long as the corresponding number to add robot as a friend, and it can be chat or use its various value-added services (such as weather and query a variety of game), and no need to install any additional programs. 目前基于聊天机器人的IQ问答游戏,基本上套用了基于Web的IQ问答游戏模式。 Currently based chat robot IQ quiz, basically apply Web-based IQ quiz mode. 用户首先将该机器人帐号加为好友,然后进入IQ问答游戏模式,机器人从预先设定好的IQ题库中随机抽取若千条,逐条发送给用户,用户作答的方法通常是从机器人提供的若干个备选答案中进行选择。 The user first robot Add Friend account, and then enter the quiz mode IQ, the robot from the preset IQ exam if one thousand randomly selected, one by one to the user, the method is typically from a user to answer a number of robots to provide alternative answers to choose. 作答完毕后,机器人公布正确答案和玩家的成绩。 After the answer is completed, the robot publish the correct answer and the player's score.

然而,基于聊天机器人的技术方案缺乏原创性,所有问题都由系统预先设计,而且玩家只能一个人玩,缺乏多人互动。 However, the lack of originality of technical solutions based chat robot, all the questions in advance by the system design, and players can only play with one person, the lack of multiplayer. 另外,玩家作答方式只能是从备选答案中进行选择,不能挖掘玩家的原创IQ问答,也不能把它转化为机器人的知识库,因此互动内容很贫乏。 In addition, players can only answer mode is an alternative answers to choose from, players can not dig original IQ quiz, nor can it be converted to the knowledge base of the robot, and therefore interactive content is very poor.

实际上,更多的信息和知识是存储在人的大脑中,因此更进一步的获取信息的方式应该利用互联网的通讯功能。 In fact, the more information and knowledge in the human brain, so further access to information should be stored using the Internet communication. 目前,网络上有很多客户端工具可以接受网路上的"推送"信息,如即时通讯工具、E-mail系统以及各种能连上网络的客户端程序。 Currently, the network has a lot of client tool can accept the "push" information, such as instant messaging, E-mail systems, and various client programs can connect to the network on the Internet. 利用即时通信工具来推送个性化信息,信息推送的到达率高,能引起用户更多的注意,并且推送服务的即时性好。 Use instant communication tools to push personalized information, information push at high rates, and can cause the user's attention more, and real-time push service good. 另外,互联网上常见的BBS或论坛也提供了一种基于网页的交互平台,用户可以在这些网站上交流某一领域的知识和经验。 In addition, common on the Internet or BBS forum also provides a web-based interactive platform, users can exchange one area on these sites knowledge and experience. 另外最近还出现了一些综合性的知识问答系统,该系统一般拥有自己的综合性知识库和基于网页的网站交互系统, 用户可以通过网页在该系统提问各种问题,查询所提交的问题状态,并根据问题回答的状况决定采用哪个答案。 Also recently there have been some general knowledge quiz system, which generally has its own comprehensive knowledge base and problem state web-based interactive system website, users can ask all kinds of questions in the system via the web, the submitted query, and decided to answer the questions to which answers situation.

目前机器人大多采用模式匹配的工作机制,模式保存在人工建立的知识库中,机器人智能不足很大程度上是因为知识库建设不够,如果可以通过游戏的方式收集知识库可以减少很多工作量。 Currently they use a robot working mechanism of pattern matching, pattern stored in the repository artificially established, the robot is largely due to lack of intelligent knowledge base construction is not enough, if you can gather knowledge by the way the game can reduce a lot of workload.

发明内容 SUMMARY

有鉴于此,本发明的主要目的是提出一种互动问答系统,以在多人互动过程中实现对机器人知识库的扩充,从而使得互动内容更加充分。 In view of this, the main object of the present invention is to provide an interactive question and answer system to achieve the expansion of the knowledge base of the robot in the multiplayer interactive process, so that more fully interactive content.

本发明的另一目的是提出一种互动问答方法,以在多人互动过程中实现对机器人知识库的扩充,从而使得互动内容更加充分。 Another object of the present invention is to provide an interactive question and answer method, in order to achieve the expansion of the knowledge base of the robot in the multiplayer interactive process, so that more fully interactive content.

一种互动问答系统,该系统包括通信单元、模式管理单元、聊天机器人单元、知识学习单元和知识库,其中 An interactive question and answer system includes a communication unit, a mode management unit, bot unit, and a learning unit knowledge repository, wherein

通信单元,用于接收用户输入,并将所述用户输入发送到模式管理单元; 模式管理单元,用于根据用户输入对所述互动问答系统的当前运行模式 A communication unit for receiving user input and transmitting the user input to the mode management unit; mode management unit, the current operating mode for the interactive user input system according to Q

进行管理,以在互动游戏模式和聊天模式中进行切换; Management, interactive game to switch mode and a chatting mode;

聊天机器人单元,用于在聊天模式中通过所述通信单元向用户返回聊天 Chat robot unit via said communication unit chat chat mode to return to the user

输出; Output;

知识学习单元,用于在互动游戏模式中从用户输入中学习知识,并将所学习到的知识保存到知识库; Knowledge learning unit for learning knowledge from user input in an interactive game mode, and the learned knowledge to save the knowledge base;

知识库,用于保存由知识学习单元所学习的知识; 该系统进一步包括知识审核单元, Knowledge base for storing knowledge from the knowledge learned learning unit; the system further comprises means knowledge review,

知识审核单元,用于根据预先设置的知识审核规则对在游戏模式中由知识学习单元学习的知识进行审核,并将通过审核的知识保存到知识库。 Knowledge audit means configured to audit knowledge game mode by the knowledge learned in the learning unit according to the knowledge audit rules set in advance and stored in the knowledge base through knowledge review. 所述聊天机器人单元包括自然语言理解模块和推理模块,其中自然语言理解模块,用于从用户输入中提取出由关键词组成的语句主千和语义信息; The robot unit includes a chat module natural language understanding and reasoning modules, wherein the natural language understanding module, for extracting a keyword consisting of statements backbones and semantic information from a user input;

推理模块,用于根据所述语句主干和语义信息在知识库中进行模式匹配,并通过所述通信单元向用户返回所匹配的聊天输出。 Inference module for pattern matching according to the statements in the knowledge base and backbone semantic information, and returns the output to the user matching the chat through the communication unit.

所述通信单元,用于通过即时通讯方式、短消息SMS方式、网络界面Web方式中的任一种或其中至少两种的任意组合方式来接收用户输入。 The communication unit for instant communication, a short message SMS mode, any Web-interface network or any combination thereof in at least two ways to receive user input.

该系统进一步包括游戏互动管理单元, The system further includes an interactive game management unit,

游戏互动管理单元,用于在互动游戏模式中控制互动游戏的游戏流程。 Interactive game management unit, for controlling the interaction of the interactive game game game mode process. 一种互动问答方法,该方法包括: An interactive question and answer method, the method comprising:

接收用户输入,根据用户输入对所述互动问答系统当前模式进行管理, 以在互动游戏模式和聊天模式中进行切换; Receiving a user input, to manage the current mode of the interactive answering system based on user input, to switch modes in interactive games and chat mode;

在聊天模式中通过所述通信单元向用户返回聊天输出;在互动游戏模式中从用户输入中学习知识,其中根据预先设置的知识审核规则对在游戏模式中从用户输入所学习的知识进行审核,并将通过审核的知识保存到知识库。 Back in the chat mode through the communication unit outputs to a user talking; learn from the user input in the interactive game mode, in which the knowledge review game mode input from the user based on the knowledge learned audit rules set in advance, and save to the repository through knowledge audit.

所述在聊天模式中通过所述通信单元向用户返回聊天输出包括: 从用户输入中提取出由关键词组成的语句主干和语义信息; 根据所述语句主干和语义信息在知识库中进行模式匹配,并向用户返回所匹配的聊天输出。 The return output to a user in the chat chat mode through the communication unit comprises: extracting from the user input sentence and the semantic information by a keyword backbone thereof; pattern matching according to the statements in the knowledge base and semantic information backbone and returns the matched chat output.

所述接收用户输入包括: The receiving user input comprising:

通过即时通讯方式、短消息SMS方式、网络界面Web方式中的任一种或其中至少两种的任意组合方式来接收用户输入。 By way of instant messaging, short message SMS mode, any Web-interface network or any combination thereof in at least two ways to receive user input.

该方法进一步包括:在互动游戏模式中控制互动游戏的游戏流程。 The method further comprising: controlling a game process in interactive games interactive game mode. 从上述技术方案可以看出,在本发明中的一种互动问答系统中,通信单元,用于接收用户输入,并将所述用户输入发送到模式管理单元;模式管理单元,用于根据用户输入对所述互动问答系统的当前运行模式进行管理,以在互动游戏模式和聊天模式中进行切换;聊天机器人单元,用于在聊天模式中通过所述通信单元向用户返回聊天输出;知识学习单元,用于在互动游戏模式中从用户输入学习知识,并将所学习到的知识保存到知识库;知识库, 用于保存由知识学习单元所学习的知识。 As can be seen from the above technical solutions, the system in an interactive quiz present invention, the communication unit, for receiving user input and transmitting the user input to the mode management unit; mode management unit, according to a user input on the current operating mode of the interactive quiz management system, to switch modes in interactive games and chat mode; chat robot unit, configured to return the user through the communication unit outputs chat chat mode; knowledge learning unit, for inputting a user interactive game from the learn mode, and save the learned knowledge to the knowledge base; knowledge base for storing knowledge from the knowledge learned in the learning unit. 由此可见,在本发明中,通过用户输入丰富机器人的知识库,可以很大程度地减少人工建库的工作量,并且知识库丰富后,进而可以显著提高用户使用聊天机器人的聊天体验。 Thus, in the present invention, the user inputs the knowledge base rich robot, can largely reduce the workload of artificial building a database, and the rich knowledge, in turn, can significantly improve the user experience chat bot.

另外,本发明中不需要用户额外安装游戏客户端,只要将机器人帐号加为好友即可使用,因此应用也非常便利。 In addition, the present invention does not require users to install additional game client, as long as the robot account Add to friends to use, so the application is very convenient.

而且,在本发明中,系统采用聊天机器人扮演主持人角色,机器人可以采用轻松活泼的语言引导玩家完成问答,使用户感觉在面对一位活生生的主持人,而不是呆板的Web页面,使得整个游戏过程互动性更强。 In the present invention, the system uses a bot to play the role of host, the robot can guide the player to complete the quiz using lively language, allowing users to feel in the face of a living host, rather than a rigid a Web page, making the whole the game more interactive.

附图说明 BRIEF DESCRIPTION

图1为根据本发明的互动问答系统的示范性结构示意图;图2为根据本发明的互动问答方法的示范性流程示意图; FIG 1 is a schematic diagram of an exemplary configuration interactive quiz system according to the present invention; FIG. 2 is a schematic diagram of an exemplary method of interactive quiz process according to the invention;

具体实施方式 Detailed ways

为使本发明的目的、技术方案和优点表达得更加清楚明白,下面结合附图及具体实施例对本发明再作进一步详细的说明。 For purposes of the present invention, technical solutions and advantages clearer to obtain expression, in conjunction with the accompanying drawings and specific embodiments of the present disclosure is further described in detail.

图1为根据本发明的互动问答系统的示范性结构示意图。 FIG 1 is a schematic diagram of an exemplary configuration interactive question answering system of the present invention.

如图1所示,该系统包括通信单元101、模式管理单元102、聊天机器人单元103、知识学习单元104和知识库105; As shown, the system 1 includes a communication unit 101, a mode management unit 102, bot unit 103, learning unit 104 and the knowledge repository 105;

其中通信单元IOI,用于接收用户输入,并将所述用户输入发送到模式管理单元102; IOI wherein the communication unit, for receiving user input and transmitting the user input to the mode management unit 102;

模式管理单元102,用于根据用户输入对所述互动问答系统的当前运行模式进行管理,以在互动游戏模式和聊天模式中进行切换; Mode management unit 102 for managing the current operating mode of the interactive quiz system based on user input, to switch modes in interactive games and chat mode;

聊天机器人单元103,用于在聊天模式中通过所述通信单元101向用户返回聊天输出; Chatterbot unit 103, 101 returns a chat for output to the user through the communication unit in the chat mode;

知识学习单元104,用于在互动游戏模式中从用户输入学习知识,并将 Knowledge learning unit 104, a game mode in the interactive input from the user learn and

所学习到的知识保存到知识库10 5; Save the learned knowledge to the knowledge base 105;

知识库105,用于保存由知识学习单元104所学习的知识。 Knowledge base 105 for storing knowledge and learning knowledge by the learning unit 104. 所述聊天机器人103单元可以具体包括自然语言理解模块1031和推理 The chat robot unit 103 may specifically include natural language understanding and reasoning module 1031

模块1032; Module 1032;

自然语言理解模块1031,用于从用户输入中提取出由关键词组成的语句主干以及语义信息; Natural language understanding module 1031 for extracting semantic information and backbone sentence composed by a keyword input from the user;

推理模块1032,用于根据自然语言理解模块1031所提出的语句主干和语义信息在知识库中进行模式匹配,确定匹配的聊天输出,并通过所述通信单元101向用户返回所匹配的聊天输出。 Inference module 1032, module 1031 for understanding the proposed sentence backbone and semantic information in the knowledge base pattern match, a match is determined chat output, and returns the matched output to the user through the chat communication unit 101 according to the natural language.

进一步,该系统还可以包括知识审核单元107, Further, the system may further include a review of knowledge units 107,

知识审核单元107,用于根据预先设置的知识审核规则对在游戏模式中 Knowledge audit unit 107, according to the knowledge of the audit rules previously set in the game mode

8由知识学习单元104学习的知识进行审核,并将通过审核的知识保存到知识 8 knowledge learned by the learning unit 104 review the knowledge and knowledge through knowledge to save the audit

库105。 Library 105.

比如,为了防止在知识库105中写入黄色信息等不健康信息,可以在知识审核单元107中预先设置若干过滤关键字,当知识学习单元104所学习的知识包含过滤关键字时,则知识审核单元107判定该知识不符合知识审核规则,不将该知识写入知识库105;否则,知识审核单元107判定该知识符合知识审核^L则,将该知识写入知识库105。 For example, in order to prevent writing information in the knowledge base 105 as a yellow unhealthy information may be pre-set number of filter keywords knowledge audit unit 107, when the knowledge learned knowledge learning unit 104 comprises a filtering keywords, the knowledge audit unit 107 determines that the knowledge of knowledge does not comply with audit rules, without the knowledge of knowledge base writing 105; otherwise, the unit 107 determines that the knowledge audit compliance knowledge is knowledge audit ^ L, the knowledge of knowledge base 105 is written.

该系统还可以包括游戏互动管理单元106,用于在互动游戏模式中控制互动游戏的游戏流程。 The interactive system may further include a game management unit 106 for controlling gaming process in interactive games interactive game mode. 比如,在IQ互动游戏中,互动管理单元106可以管理在互动游戏模式中用户的游戏流程。 For example, the IQ interactive games, interactive management unit 106 may manage a user's interactive game game mode process. 包括:进入退出游戏控制、互动问题接受发送控制、IQ问题答案的发送接受控制、答案评价发送接受控制。 Including: entry and exit control games, interactive problem accepting transmission control, control problems sending and receiving answers IQ, sending and receiving answers to evaluate control. 游戏互动管理单元106最后将IQ问题以及评价最高的答案,合并后作为知识发送给知识学习单元104。 Interactive game management unit 106 finally IQ issues and top-rated answer, sent to the learning unit 104 of the combined knowledge as knowledge.

可选地,知识学习单元104也可以直接从通信单元101获取IQ问题以及评价最高的答案。 Optionally, knowledge and learning unit 104 may also obtain the highest IQ issue and evaluate the answer directly from the communication unit 101.

当应用本发明到互动IQ游戏中时,可以将本系统分为两大部分,即前端子系统(通信单元101)和服务器子系统(包括模式管理单元102、聊天机器人单元103、知识学习单元104和知识库105)。 When the present invention is applied to the IQ interactive game, the system may be divided into two parts, i.e., front-end subsystem (communication unit 101) and a server subsystem (management unit 102 includes a mode, talking with the robot unit 103, learning unit 104 knowledge and knowledge base 105). 其中前端子系统实现与用户的接口,负责接收用户输入的聊天句子和游戏指令,并转发给后台的服务器子系统;服务器子系统负责用户聊天和/或游戏请求的处理。 Wherein the front-end subsystem interface with users, responsible for receiving game and chat instruction sentences input by the user, and forwards the background to the server sub-system; chat server sub-system is responsible for user and / or a request for a game process.

具体地,前端子系统用于实现与用户的接口,负责接收用户输入的聊天句子和游戏指令(如果即时通讯工具支持Rich模式,还可以接收超链对应的指令),并转发给后台的服务器子系统。 Specifically, the front-end subsystem for implementing a user interface is responsible for receiving game and chat instruction sentences input by the user (if the instant messaging tool support Rich mode, may also receive instructions corresponding hyperlink), and forwarded to the backend server sub system. 前端子系统可以具体包括用户接口单元和网络接口单元,用户接口单元是用户接入聊天机器人系统进行聊天和游戏的入口, 一般是即时通信工具。 Front-end subsystem may include a user interface unit and a particular network interface unit, a user interface unit is a robot system users access the chat chat and gaming inlet, generally instant messaging tool. 网络接口单元负责将接收到的用户句子和指令转发给后台的服务器子系统,当单台服务器子系统的处理能力无法满足应用需求时,可以方便地增加服务器子系统来扩容。 The network interface unit is responsible for receiving user commands and forwards the server sub-sentence to the background, when a single server subsystem processing capacity can not meet the application requirements, you can easily increase the server subsystem to expansion. 如果当前用户处于聊天模式,则服务器子系统对前端子系统转发来的用户句子和指令进行分析理解,并根据理解结果进行推理和统计,然后生成应 If the current user is in a chat mode, the server subsystem forwards the user front-end subsystem for the sentence to be analyzed and instructions understood and appreciated that in accordance with results of statistical reasoning and, should then generate

答返回给前端子系统。 A return to the front-end subsystem.

如果当前用户处于游戏模式,则对前端子系统传来的指令进行解析,控制游戏流程,记录IQ游戏中的问答,并整理为知识库的一部分。 If the current user is in the game mode, the front-end subsystem instructions transmitted by analyzing the control flow of the game, the game records IQ Q, and analyzed as part of the knowledge base.

服务器子系统包括可以包括网络接口单元、用户当前模式管理单元、自然语言理解模块、推理模块、推理知识库、游戏流程控制单元和知识学习单元。 Including server subsystem may include a network interface unit, the current user mode management unit, natural language understanding module, the module reasoning, reasoning knowledge base, knowledge of the game flow control unit and the learning unit.

其中,网络接口单元从前端子系统接收用户句子和指令,并转交给用户 Wherein the network interface unit from the front terminal system receives user instructions and sentences, and forwarded to the user

当前模式管理单元;自然语言理解模块利用计算语言知识库对用户句子进行自然语言理解,即从用户句子中提取出由关键词组成的句子主干以及其他语义信息,然后将这些信息提交给推理模块;推理模块根据自然语言理解模块对用户句子的理解结果,在知识库内进行模式匹配,查找对应的应答;知识库内存储的是对各种问答进行解析理解后产生的知识点,每个知识点可以对应1个或多个应答;游戏流程控制单元管理在IQ互动游戏模式中用户的游戏流程,具体包括进入退出游戏控制、IQ问题发送接受控制、IQ问题答案的发送接受控制、答案评价发送接受控制等;最后游戏流程控制单元将IQ 问题以及评价最高的答案合并传给知识学习单元。 Current mode management unit; natural language understanding module is calculated using the language knowledge user sentences of natural language understanding, i.e., the user is extracted from the sentence and the sentence backbone composed of other semantic information by a keyword, and then submit this information to the logic module; inference module in accordance with the results of the natural language understanding module understood that the user's sentence, the pattern matching performed in the knowledge base, search for a corresponding response; is stored in the knowledge base knowledge Q produced after analyzing the various understood that each knowledge may correspond to one or more transponders; game management process flow of the game control unit in the IQ user interactive game mode, the game comprises entry and exit control, IQ problem of sending and receiving control, receives a control transmission IQ answers to the questions, the answers sent acceptance evaluation control; the last game flow control unit as well as evaluating the highest IQ answer questions passed to merge knowledge learning unit.

待审核知识库中可以存储原始问答文本,等待下一步审核,以判断问答是否可以加入知识库。 Knowledge may be stored pending Q original text, wait for the next examination, to determine whether Q can be added to the knowledge base.

在本发明实施例中问答主要来源于游戏互动管理单元。 It comes mainly from the interactive quiz game management unit embodiment of the present invention. 实际上,本系统的问答来源包含但是不局限于IQ游戏。 In fact, the source of this Q & A systems include but are not limited IQ game.

基于图l和上述分析,本发明还提出了一种互动问答方法。 Based on the above analysis and Figure l, the present invention further provides a method for interactive questions and answers.

图2为根据本发明的互动问答方法的示范性流程示意图。 FIG 2 is a schematic diagram of an exemplary method of interactive quiz process of the present invention. 如图2所示, 该方法包4舌: 2, a tongue 4 which process:

步骤201:接收用户输入,根据用户输入对互动问答系统的当前运行模式进行管理,以在互动游戏模式和聊天模式中进行切换;在这里,接收的用户输入可以是与用户预先约定的文本命令行。 Step 201: receiving a user input, to manage the current operating mode interactive quiz system according to a user input to switch interactive game mode and a chatting mode; here, the user input received may be a user previously agreed text command line . 例如: E.g:

可以约定用户输入"gm"代表进入互动游戏模式;约定在互动游戏模式中用户输入"qt,'表示退出游戏。这样,当用户输入文本"gm,,时,切换到互动游戏模式,当用户输入文本"qt"时,退出互动游戏模式,进入聊天模式。 The user input may agree "GM" representative to interact with game mode; ". Qt, 'represents quit the game so that when the user enters the text" agreement in the interactive game mode user input gm ,,, interactive games to the handover mode, when the user inputs text "qt", to exit the interactive game mode, enter chat mode.

除了命令行之外,用户输入也可以是一个命令链接。 In addition to the command line, the user can input a command link. 命令链接是聊天窗口常用的一种文字超链。 Links chat window command is commonly used as a text hyperlink. 例如:如果用户输入超级链接"进入游戏",那么当用户用鼠标点击上述超链时,则发送进入互动游戏指令到聊天机器人,然后进入互动游戏模式。 For example: If the user enters a hyperlink "into the game", then when the user clicks with the mouse hyperlinks above, the instruction to send the game into the interactive chat robot, then enter the interactive game mode.

另外,根据约定,用户输入还可以是自然语言。 Further, according to the agreement, the user input can be a natural language. 此时可以利用聊天机器人的自然语言处理能力对自然语言进行识别,从而在互动游戏模式和聊天模式中执行切换。 At this time, natural language processing capabilities can be used bot for natural language recognition, thereby performing the mode switching interactive games and chat mode.

步骤202:在聊天模式中通过向用户返回聊天输出;在互动游戏模式中从用户输入学习知识,并将所学习到的知识保存到知识库。 Step 202: the chat chat mode by returning the output to the user; interactive game mode learn from the user input, and to save the learned knowledge into the knowledge base.

其中,可以首先从用户输入中提取出由关^t词组成的语句主千以及语义信息,然后再根据所述语句主干和语义信息在知识库中进行模式匹配,确定 Wherein, the user may be first extracted from a sentence input by a main shut-word ^ t thousand and semantic information, then the pattern matching according to the statements in the knowledge base and backbone semantic information, determining

匹配的聊天举lr出,并向用户返回所匹配的聊天4lr出。 Matching the chat held lr, and returns the matched user chat 4lr out.

在该流程中,还可以进一步根据预先设置的知识审核规则对在游戏模式中从用户输入所学习的知识进行审核,并将通过审核的知识保存到知识库。 In this process, it is also possible to further review of knowledge in game mode input from the user based on the knowledge learned audit rules pre-set and saved to the repository through knowledge audit.

基于上述流程,图3为根据本发明实施例的互动问答方法的示范性流程示意图。 Based on the above process, FIG. 3 is a schematic diagram of an exemplary interactive quiz flow method of the embodiment of the present invention.

在图3所示的该实施例中,基于聊天机器人的多人互动IQ游戏系统的主要操作流程是对用户指令的处理过程和游戏流程的控制过程。 In the embodiment illustrated in FIG. 3, based on interactive multiplayer game system IQ bot is a main operational flow control procedure and the process flow of the game to the user instruction. 在该实施例中,省略了网络IO等无关细节的解释。 In this embodiment, explanation is omitted other irrelevant detail IO network.

在该实施例中,多人互动IQ游戏取名为"IQ打擂",发起游戏的玩家被称为"擂主User",其他参与游戏的玩家被称为"挑战者User",聊天机器人(Robot)扮演主持人的角色。 In this embodiment, IQ multiplayer interactive game named "IQ Da Lei", initiated by the game player known as "The One User", the other players involved in the game known as the "challenger User", chatbot ( Robot) play the role of moderator.

如图3所示,该流程包括:首先发起游戏:当某一用户输入发起"IQ打擂"的命令或者点击相应的链接指令之后,模式管理单元将用户当前模式从聊天模式转换为游戏模式,并向游戏互动管理单元发出指令,指使其发起一个新IQ游戏实例,为了同时支持多组"IQ打擂"游戏的进行,对每一个IQ游戏实例进行编码。 3, the process comprising: a first initiates a game: When a user initiated input "IQ Da Lei" command or after instruction Click the link, the user mode management unit transitions from the current mode is the game mode chat mode, and interactive game management unit issued a directive, it refers to initiate a new game IQ instance, in order to support multiple "Da Lei IQ" in the game, for each instance of the game IQ encoded. 此时该用户成为"4雷主User"。 The user could become a "master 4 Ray the User."

机器人从在线的好友名单中随机抽取一部分发送广播,询问他们是否愿意加入游戏。 Robot randomly selected from one of the transmitting broadcast online buddy list in asking if they are willing to join the game. 选择进入游戏的用户的当前模式也转换为游戏模式,这些玩家成为"挑战者User,,。当加入人数达到一定限制后,将所有已加入游戏玩家信息整理后发给"擂主User"和"挑战者User"。 Select the user to enter the game mode can also be converted to the current game mode, these players become a "challenger User ,,. When adding the number reaches a certain limit, after all players have joined the game information sent to finishing" The One User "and" challenger User ".

一轮IQ问答流程:上述过程完成后,提示"挑战者User"等待"擂主User"出题,提示"擂主User"可以出题。 An IQ quiz process: After this is complete, suggesting that "challengers User" wait "The One User" out of the question, suggesting that "The One User" can be a problem. "擂主User"将问题发送给机器人,机器人单元将问题转发给"挑战者User",并提示其答题。 "The One User" to send the issue to the robot, the robot unit will forward the issue to the "Challenger User", and suggesting the answer. 到达答题限制时间或者所有"挑战者User"已提交答案后,机器人单元将收到的答案整理后一起发送给"擂主User",并提示"擂主User"从中选择一个最佳答案作为本轮竟答的优胜者(可以允许"擂主User"否决所有答案)。 Arrival time limit or answer all the answers after the "Challenger User" has been submitted to the answer, the robot unit will receive is sent to "The One User" with finishing and prompt "The One User" choose a best answer as round actually answer the winners (may be allowed to "the One User" rejected all the answers). "擂主User"选优后,机器人单元将最佳答案转发给"挑战者User",并公布本轮游戏优胜者。 "The One User" after the election excellent, the robot unit forwards the best answer to the "Challenger User", and announced the current round game winner. 最后询问"擂主User"和"挑战者User"是否开始新一轮IQ Finally, ask "The One User" and "Challenger User" whether to begin a new round of IQ

关于问答知识的采集,"擂主User"选择最佳答案后,机器人单元将问答存储在待审核知识库中,经过人工(或者机器自动)审核后,最终通过知识学习单元转换为知识点格式存储到知识库中。 Questions and Answers on the acquisition of knowledge, "The One User" and select the best answer, the questions and answers are stored in the robot cell pending knowledge base, through artificial (or the machine automatically) after review, eventually learning through knowledge storage unit is converted into knowledge format to the knowledge base.

对于用户状态维护过程,游戏过程中,由模式管理单元和游戏互动管理单元共同维护用户状态。 For the user state maintenance process, during the game, by the mode management unit and interactive games to maintain user state management unit together. 允许用户随时通过指令退出游戏,有用户退出游戏时,通知其他玩家,并判断当前游戏是否符合继续进行下去的条件,例如"擂主User"退出或者所有"挑战者User"退出,则游戏结束。 Allow users to quit the game through instruction, there are users out of the game, inform the other players, and to determine whether the conditions of the current game be continued, such as "The One User" or quit all "Challenger User" quit, the game is over.

此处虽然给出了一个具体的实施例,但是在具体实现本发明时,可选择不同的游戏逻辑来设计多人互动IQ问答游戏系统。 While here we give a specific embodiment, but in the specific implementation of the present invention to select a different game logic designed multiplayer interactive quiz IQ system. 例如,当一轮竟答结束后,可以允许更换擂主,由另一个玩家继续出题;还可以允许玩家组队,分 For example, when the end of the round actually answer, it can allow Leizhu replacement by another player continues topic; you can also allow players to team up, points

为两组, 一组作擂主,另一组作挑战者,轮流发问,等等。 Two sets, one set for Leizhu, another group for the challenger, turns to ask questions, and the like.

综上所述,在现有技术中,聊天机器人知识库的缺乏是目前机器人智能不高的重要原因之一。 In summary, in the prior art, bot lack of knowledge is one of the important reasons for the current robot intelligence is not high. 本发明通过吸引用户参与娱乐游戏的方法收集知识点,丰富聊天机器人的推理知识库,可以很大程度地减少人工建库的工作量。 The present invention is collected by attracting users to participate in recreational games of knowledge, reasoning rich knowledge base chat robot can largely reduce the workload of manual construction of the library. 而且知识库丰富后,进而可以显著提高用户使用聊天机器人的聊天体验。 After a rich knowledge base and, in turn, can significantly improve the user bot chat experience.

另外,基于聊天机器人的多人互动IQ问答游戏,本发明不需要用户额 In addition, IQ quiz based multiplayer interactive chat robot, the present invention does not require the amount of users

外安装游戏客户端,只要将机器人帐号加为好友即可使用。 Foreign install the game client, as long as the robot account Add to friends to use.

而且,在本发明中,系统采用聊天机器人扮演主持人角色,机器人可以采用轻松活泼的语言引导玩家完成问答,使用户感觉在面对一位活生生的主 In the present invention, the system uses a bot to play the role of host, the robot can guide the player to complete the quiz using lively language, allowing users to feel in the face of a living master

持人,而不是呆板的Web页面,使得整个游戏过程互动性更强。 Moderator, rather than rigid Web page, which makes the game more interactive process.

以上说明中,虽然以网络IQ游戏为实例对本发明进行了详细描述,但: In the above description, although the network is an example of the IQ game present invention has been described in detail, but:

是本发明并不局限于网络IQ游戏,而是可以适用于任意类型的互动系统中。 That the present invention is not limited IQ game network, but may be applied to any type of interactive systems. 以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护 The above are only preferred embodiments of the present invention and not intended to limit the present invention to protect

范围。 range. 凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等, Within the spirit and principle of the present invention, any modification, equivalent replacement, or improvement,

均应包含在本发明的保护范围之内。 It should be included within the scope of the present invention.

Claims (8)

1、一种互动问答系统,其特征在于,该系统包括通信单元、模式管理单元、聊天机器人单元、知识学习单元和知识库,其中通信单元,用于接收用户输入,并将所述用户输入发送到模式管理单元;模式管理单元,用于根据用户输入对所述互动问答系统的当前运行模式进行管理,以在互动游戏模式和聊天模式中进行切换;聊天机器人单元,用于在聊天模式中通过所述通信单元向用户返回聊天输出;知识学习单元,用于在互动游戏模式中从用户输入学习知识,并将所学习到的知识保存到知识库;知识库,用于保存由知识学习单元所学习的知识;该系统进一步包括知识审核单元,知识审核单元,用于根据预先设置的知识审核规则对在游戏模式中由知识学习单元学习的知识进行审核,并将通过审核的知识保存到知识库。 1, an interactive question and answer system, characterized in that the system includes a communication unit, a mode management unit, bot unit, and a learning unit knowledge repository, wherein the communication means for receiving user input and transmitting the user input the mode management unit; mode management unit, based on user input for current operating mode of the interactive quiz management system, to switch modes in interactive games and chat mode; chat robot unit, configured in the chat mode the chat communication unit returns output to the user; knowledge learning unit, interactive game mode for input from the user learn and to save the learned knowledge into the knowledge base; knowledge base for storing knowledge of the learning unit knowledge of learning; the system further comprises auditing means knowledge, knowledge audit means, for review of the knowledge in the game mode according to the knowledge of the learning unit learning knowledge audit rules set in advance and stored in the knowledge base through knowledge audit .
2、 根据权利要求1所述的互动问答系统,其特征在于,所述聊天机器人单元包括自然语言理解模块和推理模块,其中自然语言理解模块,用于从用户输入中提取出由关键词组成的语句主干以及语义信息;推理模块,用于根据所述语句主干和语义信息在知识库中进行模式匹配, 确定匹配的聊天输出,并通过所述通信单元向用户返回所匹配的聊天输出。 2. The system of claim interactive quiz claim 1, wherein said means comprises a bot natural language understanding module and a logic module, wherein the natural language understanding module, for extracting a keyword from the user input consisting of statement trunk and semantic information; inference module, according to the statements for trunk and semantic information in the knowledge base pattern match, a match is determined chat output, and returns the output to the user matching the chat through the communication unit.
3、 根据权利要求1所述的互动问答系统,其特征在于, 所述通信单元,用于通过即时通讯方式、短消息SMS方式、网络界面Web方式中的任一种或至少两种的任意组合方式来接收用户输入。 3. The system of claim interactive quiz claim 1, wherein the communication unit, for instant communication, a short message SMS mode, any web interface Web manner or any combination of at least two mode to receive user input.
4、 根据权利要求1所述的互动问答系统,其特征在于,该系统进一步包括游戏互动管理单元,游戏互动管理单元,用于在互动游戏模式中控制互动游戏的游戏流程。 4. The system of claim interactive quiz claim 1, characterized in that the system further comprises a management unit interactive games, interactive game management unit, for controlling the interaction of the interactive game game game mode process.
5、 一种互动问答方法,其特征在于,该方法包括:接收用户输入,根据用户输入对互动问答系统的当前运行模式进行管理,以在互动游戏模式和聊天模式中进行切换;在聊天模式中通过向用户返回聊天输出;在互动游戏模式中从用户输入学习知识,其中根据预先设置的知识审核规则对在游戏模式中从用户输入所学习的知识进行审核,并将通过审核的知识保存到知识库。 5. A method for interactive questions and answers, characterized in that, the method comprising: receiving a user input, to manage the current operating mode of the interactive quiz system based on user input, to switch modes in interactive games and chat mode; chat mode by returning the user to the chat output; interactive game mode learn from the user input, wherein the knowledge of the review game mode input from the user based on the knowledge learned audit rules set in advance, and saved to the knowledge of knowledge through the audit library.
6、 根据权利要求5所述的互动问答方法,其特征在于,所述在聊天模式中向用户返回聊天输出包括:从用户输入中提取出由关键词组成的语句主千以及语义信息;根据所述语句主干和语义信息在知识库中进行模式匹配,确定匹配的聊天输出,并向用户返回所匹配的聊天输出。 6. The interactive quiz method according to claim 5, wherein the output comprises a return to the user in a chat chat mode: extracted sentence composed by a keyword input from the user and semantic information backbones; in accordance with the statements and said trunk pattern matching semantic information in the knowledge base, determining a matching chat output, and returns the matched output chat users.
7、 根据权利要求5所述的互动问答方法,其特征在于,所述接收用户输入包括:通过即时通讯方式、SMS方式、Web方式中的任一种或至少两种的任意组合方式来接收用户输入。 7, according to the interactive quiz method according to claim 5, wherein said receiving a user input comprises: instant communication, the SMS mode, any Web-or any combination of at least two receiving user input.
8、 根据权利要求5所述的互动问答方法,其特征在于,该方法进一步包括:在互动游戏冲莫式中控制互动游戏的游戏流程。 8. The interactive quiz method according to claim 5, characterized in that, the method further comprising: controlling a game process in interactive games interactive games formula Mo punch.
CN 200710086961 2007-03-27 2007-03-27 Interdynamic question-answering system and realizing method thereof CN100505664C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200710086961 CN100505664C (en) 2007-03-27 2007-03-27 Interdynamic question-answering system and realizing method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200710086961 CN100505664C (en) 2007-03-27 2007-03-27 Interdynamic question-answering system and realizing method thereof

Publications (2)

Publication Number Publication Date
CN101068177A CN101068177A (en) 2007-11-07
CN100505664C true CN100505664C (en) 2009-06-24

Family

ID=38880621

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200710086961 CN100505664C (en) 2007-03-27 2007-03-27 Interdynamic question-answering system and realizing method thereof

Country Status (1)

Country Link
CN (1) CN100505664C (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102195935B (en) * 2010-03-03 2015-07-29 深圳市腾讯计算机系统有限公司 System and method for hosting the game
US9176947B2 (en) * 2011-08-19 2015-11-03 Disney Enterprises, Inc. Dynamically generated phrase-based assisted input
CN102368246A (en) * 2011-09-15 2012-03-07 张德长 Automatic-answer robot system
CN103684981B (en) * 2012-09-21 2017-12-01 腾讯科技(深圳)有限公司 Instant interactive communication method, system and server
CN103078867A (en) * 2013-01-15 2013-05-01 深圳市紫光杰思谷科技有限公司 Automatic chatting method and chatting system among robots
CN103313138B (en) * 2013-05-17 2016-08-24 四川教云网络科技有限公司 A remote education system based set-top boxes
CN105288999A (en) * 2014-07-23 2016-02-03 姜学强 Implementation method of quiz game based on network platform
CN104462064B (en) * 2014-12-15 2017-11-03 陈包容 A mobile communication terminal prompts the content information method and system
CN104615646A (en) * 2014-12-25 2015-05-13 上海科阅信息技术有限公司 Intelligent chatting robot system
CN105471712A (en) * 2015-11-25 2016-04-06 深圳狗尾草智能科技有限公司 Robot reply system and reply method thereof
CN105435453B (en) * 2015-12-22 2019-02-19 网易(杭州)网络有限公司 A kind of barrage information processing method, device and system
CN105975531A (en) * 2016-04-29 2016-09-28 华南师范大学 Robot dialogue control method and system based on dialogue knowledge base
CN106202284A (en) * 2016-06-29 2016-12-07 珠海金山网络游戏科技有限公司 System and method for fast collecting questionnaire of mobile games
CN106297453A (en) * 2016-08-26 2017-01-04 牡丹江师范学院 Interactive English teaching and learning system
CN106709072A (en) * 2017-02-13 2017-05-24 长沙军鸽软件有限公司 Method of obtaining intelligent conversation reply content based on shared corpora
WO2018157329A1 (en) * 2017-03-01 2018-09-07 Microsoft Technology Licensing, Llc Providing content
CN107133349B (en) * 2017-05-24 2018-02-23 北京无忧创新科技有限公司 A conversational robot system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5890149A (en) 1996-06-20 1999-03-30 Wisdomware, Inc. Organization training, coaching and indexing system
WO2001061542A1 (en) 2000-02-16 2001-08-23 Bea Systems, Inc. Message routing system for enterprise wide electronic collaboration
CN1735027A (en) 2004-08-13 2006-02-15 上海赢思软件技术有限公司 Chat robot system
CN1821991A (en) 2005-02-18 2006-08-23 上海赢思软件技术有限公司 Knowledge question-and-answer quick processing system based on artificial intelligence
CN1928864A (en) 2006-09-22 2007-03-14 浙江大学 FAQ based Chinese natural language ask and answer method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5890149A (en) 1996-06-20 1999-03-30 Wisdomware, Inc. Organization training, coaching and indexing system
WO2001061542A1 (en) 2000-02-16 2001-08-23 Bea Systems, Inc. Message routing system for enterprise wide electronic collaboration
CN1735027A (en) 2004-08-13 2006-02-15 上海赢思软件技术有限公司 Chat robot system
CN1821991A (en) 2005-02-18 2006-08-23 上海赢思软件技术有限公司 Knowledge question-and-answer quick processing system based on artificial intelligence
CN1928864A (en) 2006-09-22 2007-03-14 浙江大学 FAQ based Chinese natural language ask and answer method

Also Published As

Publication number Publication date
CN101068177A (en) 2007-11-07

Similar Documents

Publication Publication Date Title
Kollock et al. Communities in cyberspace
Williams et al. Strengthening the case for pair programming
Huxham et al. Leadership in the shaping and implementation of collaboration agendas: How things happen in a (not quite) joined-up world
Kochanska et al. Mother–child mutually responsive orientation and conscience development: From toddler to early school age
Mennecke et al. Information is what you make of it: The influence of group history and computer support on information sharing, decision quality, and member perceptions
Wegner Interactive foundations of computing
Wohn et al. The" S" in social network games: Initiating, maintaining, and enhancing relationships
Vangen et al. Enacting leadership for collaborative advantage: Dilemmas of ideology and pragmatism in the activities of partnership managers
Shih et al. A collaborative virtual environment for situated language learning using VEC3D
Raban et al. Investigating ownership and the willingness to share information online
Morrow Modeling the forms of international cooperation: distribution versus information
Winter et al. The importance of ‘process’ in rethinking project management: the story of a UK government-funded research network
Lampe et al. Follow the (slash) dot: effects of feedback on new members in an online community
De Leeuw et al. Technological innovations in data collection: acceptance, data quality and costs
CN103189114B (en) Contextual chat message generation in online environments
Southwell et al. The roles of interpersonal communication in mass media campaigns
Mazzoni Analyzing state school policymaking: An arena model
US7814048B2 (en) Knowledge extraction from online discussion forums
Brown-Schmidt Beyond common and privileged: Gradient representations of common ground in real-time language use
US7765478B2 (en) Scheduling and reserving virtual meeting locations in a calendaring application
Limayem et al. Impact of GDSS: Opening the black box
Ramirez, Jr et al. The effect of interactivity on initial interactions: the influence of information valence and modality and information richness on computer‐mediated interaction
Garrod et al. Conversation, co-ordination and convention: An empirical investigation of how groups establish linguistic conventions
Kuznekoff et al. Communication in multiplayer gaming: Examining player responses to gender cues
Smith Problems of conflict management in virtual communities

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model
TR01