WO2008119270A1 - A chatting robot system and a method, a device for chatting automatically - Google Patents

A chatting robot system and a method, a device for chatting automatically Download PDF

Info

Publication number
WO2008119270A1
WO2008119270A1 PCT/CN2008/070217 CN2008070217W WO2008119270A1 WO 2008119270 A1 WO2008119270 A1 WO 2008119270A1 CN 2008070217 W CN2008070217 W CN 2008070217W WO 2008119270 A1 WO2008119270 A1 WO 2008119270A1
Authority
WO
WIPO (PCT)
Prior art keywords
user
statement
server
robot
knowledge base
Prior art date
Application number
PCT/CN2008/070217
Other languages
French (fr)
Chinese (zh)
Inventor
Haisong Yang
Yunfeng Liu
Zhiyuan Liu
Rongling Yu
Original Assignee
Tencent Technology (Shenzhen) Company Limited
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 Tencent Technology (Shenzhen) Company Limited filed Critical Tencent Technology (Shenzhen) Company Limited
Publication of WO2008119270A1 publication Critical patent/WO2008119270A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1813Arrangements for providing special services to substations for broadcast or conference, e.g. multicast for computer conferences, e.g. chat rooms
    • H04L12/1818Conference organisation arrangements, e.g. handling schedules, setting up parameters needed by nodes to attend a conference, booking network resources, notifying involved parties

Definitions

  • the present invention relates to the field of artificial intelligence, and more particularly to a chat robot system and an automatic chat method and apparatus. Background of the invention
  • the chat robot system is an artificial intelligence system that can communicate with people through natural language at any time by means of communication.
  • the chat robot system can also have a large number of value-added services, such as weather queries, map queries, life information queries, calculators, dictionaries, etc., and even play games with people.
  • the chat robot system is essentially an automated question answering system.
  • the automatic question answering system is based on natural language understanding technology and involves many disciplines such as computational linguistics, information science and artificial intelligence. It is one of the hotspots of computer application research. Natural language understanding is an important research direction in the field of artificial intelligence. It enables computers to understand and apply human natural language, understand user's conversation content or query intent, and realize effective communication based on natural language between human and computer.
  • the chat robot utilizes natural language processing technology, knowledge base and real-time updated information resources to complete the analysis and processing of user problems on the one hand and the correct answer generation on the other hand.
  • chat robot system in the prior art, which comprises a communication module, a query server, a game server, an artificial intelligence server and a corresponding database.
  • the database is used as a way of recording knowledge points, and the user performs various conversations with the chat robot through an instant messaging platform or a short message platform.
  • the prior art chat robot system architecture lacks an information distribution mechanism, and encounters large difficulties in supporting a large number of users, and thus the scalability of such a system architecture is poor. Summary of the invention
  • the embodiment of the invention provides a chat robot system to meet a large number of users and improve scalability.
  • the embodiment of the invention provides a method and a device for implementing a chat robot system to meet a large number of users and improve scalability.
  • a chat robot system comprising a distribution server and at least two robot servers, wherein:
  • a distribution server configured to receive user statements and distribute the user statements to the corresponding robot server according to a load balancing principle
  • a robot server for automatically feeding back responses to the user in response to a user statement.
  • An automatic chat method comprising:
  • the distribution server receives the user statement and distributes the user statement to the corresponding robot server according to the load balancing principle
  • the robot server automatically returns a reply to the user in response to the user statement.
  • a robot server comprising: a user sentence receiving unit, configured to receive a user statement distributed by a distribution server according to a load balancing principle, and send the user statement to a statement object identification unit;
  • a statement purpose identification unit configured to identify whether the user statement is a formatted statement or an unformatted statement
  • a formatting language execution unit configured to execute the formatting statement when the statement purpose recognition unit recognizes that the user statement is a formatted statement
  • a natural language understanding unit configured to perform natural language understanding on the user statement to determine a statement attribute when the statement purpose recognition unit recognizes that the user statement is an unformatted statement
  • a user attribute management unit configured to manage attribute information of the user
  • the inference engine unit is configured to load the knowledge base, and perform pattern matching in the knowledge base according to the statement attribute and the user attribute information to determine a matching feedback reply.
  • the system proposed by the embodiment of the present invention includes a distribution server and at least two robot servers, wherein the distribution server receives the user statement and distributes the user statement to the corresponding robot server according to the load balancing principle; The response is automatically fed back to the user in response to the user statement. Therefore, after the embodiment of the present invention is applied, the distribution server controls the distribution of the user statement according to the load balancing principle.
  • the number of the distribution servers may be multiple, and each distribution server may be connected to multiple robot servers, and each of the robot servers is independent in function. Therefore, the embodiment of the present invention has high scalability, and is particularly suitable for a large number of users.
  • FIG. 1 is a schematic structural diagram of a chat robot system according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a robot server according to an embodiment of the present invention
  • FIG. 3 is an exemplary diagram of an automatic chat method according to an embodiment of the present invention
  • 4 is a schematic structural diagram of a chat robot system according to an embodiment of the present invention
  • FIG. 5 is a schematic flow chart of an automatic chat method according to an embodiment of the present invention. Mode for carrying out the invention
  • the distribution server receives the user statement, and then according to load balancing The principle distributes the user statement to the corresponding robot server.
  • the robot server then automatically responds to the user in response to the user statement, so that the load of the robot server is balanced, meets the needs of a large number of users, and improves scalability.
  • the embodiment of the present invention uses a knowledge base file instead of a database as a carrier of knowledge points.
  • the knowledge base file is more suitable for reasoning and generating personalized responses in a specially designed format, so that the chat robot is more intelligent.
  • FIG. 1 is a schematic diagram showing an exemplary structure of a chat robot system according to an embodiment of the present invention. As shown in FIG. 1, the system includes a distribution server 101 and at least two robot servers.
  • a distribution server 101 configured to receive a user statement, and distribute the user statement to the corresponding robot server 102 according to a load balancing principle
  • the robot server 102 is configured to automatically feed back a response to the user in response to the user statement.
  • the number of the distribution servers 101 is at least two, thereby supporting more chat bots, and preferably the system further includes a redirect server 103;
  • the redirecting server 103 is configured to receive a user session, and redirect the user session to the distribution server 101 that matches the attribute information according to the attribute information of the user;
  • the attribute information of the user may include the user's IP address and/or the client account number.
  • the redirect server 103 allocates the distribution server in consideration of the user's IP address and/or client account number. For example, the user session can be redirected to a distribution server that is closer to the IP address, or the user session can be redirected to a distribution server corresponding to the client account.
  • the distribution server 101 matching the attribute information is configured to receive the user statement of the user session, and distribute the user statement to the corresponding robot server 102 according to the load balancing principle.
  • the number of the distribution server 101 is at least two, the system further includes a redirect server 103;
  • the redirect server 103 at this time is configured to receive a user session, and distribute the user statement to the corresponding distribution server 101 according to the load balancing principle;
  • the distribution server 101 is configured to receive a user statement of the user session from the redirect server 103, and further distribute the user statement to the corresponding robot server 102 according to the load balancing principle.
  • the distribution server 101 can receive the user statement by any one of the following communication modes or any combination of more than one type: receiving the user statement by means of instant messaging; receiving the user statement by means of email; receiving the user by short message mode Statement.
  • the robot server 102 can automatically feedback the user to the user through any one of the following communication modes or any combination of more than one: receiving the user sentence by means of instant messaging; receiving the user statement by means of email; The way to receive user statements.
  • the robot server 102 includes:
  • the statement purpose identification unit 201 is configured to identify whether the user statement is a formatted statement or a non-formatted statement
  • the formatting language execution unit 202 is configured to execute the formatting statement when the statement purpose identification unit 201 recognizes that the user statement is a formatting statement;
  • the formatting language execution unit 202 is not explicitly shown.
  • the formatting language execution unit may include: any one of an information query module, a dialog education module, and a game module, or any combination of more than one, wherein:
  • An information query module configured to determine a feedback reply of the formatted statement of the information query class
  • a dialog education module configured to determine a feedback reply of the formatted statement of the dialog education class
  • a game module configured to determine feedback of the formatted statement of the game class reply.
  • the information query module 2021 is connected to the utility information database 209 for searching the utility information database 209 to determine a feedback reply of the formatted statement of the information query class.
  • the bot server 102 further includes a natural language understanding unit 203 for performing natural language understanding on the user statement to determine the statement attribute when the statement object recognition unit 201 recognizes that the user statement is an unformatted statement;
  • the bot server 102 may further include a user attribute management unit 204 for managing attribute information of the user;
  • the robot server 102 may further include an inference engine unit 205 for loading the knowledge base 206, and performing pattern matching in the knowledge base 206 according to the statement attribute and the user attribute information to determine a matching feedback reply.
  • the attribute information of the user may include: any one of the user's name, the gender of the user, the city where the user is located, the user's preference, or any combination of more than one.
  • the natural language understanding unit 203 may perform any one of the following operations or any combination of more than one to determine a statement attribute for the user sentence: a word segmentation, a question stem extraction, a question type judgment, and a topic judgment.
  • the bot server may further include an alternate inference engine unit 207 for loading the updated knowledge base 208 when the knowledge base is updated, and converting the function with the inference engine unit 205 after loading the updated knowledge base 208.
  • the chat bot system in FIG. 1 may further include a learning server, and the knowledge base 206 in FIG. 2 may be located in the learning server;
  • the learning server is used to record user conversations and convert the user conversation into a knowledge base file format and save it in the knowledge base 206.
  • the chat bot system may further include an audit server.
  • An audit server that audits user conversations based on pre-set knowledge review rules and sends only the audited user conversations to the learning server. For example, to prevent writing yellow in the knowledge base 206
  • some filtering keywords may be preset in the auditing server.
  • the auditing server determines that the knowledge does not comply with the knowledge review rule, and does not send the user conversation to the learning server; otherwise, The auditing server determines that the knowledge conforms to the knowledge review rules and sends the user session to the learning server.
  • the knowledge base file format may include a question part and a reply part, the question part is saved in the form of a question trunk, and the reply part is saved in a complete reservation manner.
  • the knowledge base 206 is an important part of the chat bot system, storing a large amount of knowledge in a form suitable for reasoning and in the form of a question-and-answer statement pair.
  • the natural language sentence entered by the user matches a certain sentence in the knowledge base, the corresponding response is returned to the user.
  • the knowledge base 206 contains a number of attributes. The following is a description of the properties of the "Questions” section and the “Response” section.
  • the "question, part, stored in the knowledge base 206 is processed by natural language and saved in the manner of the question backbone.
  • question stem extraction There are various rules for question stem extraction, such as replacing synonyms, such as “email” and “email” ", “Capital,” and "Beijing” were replaced by a unified representation.
  • synonyms such as "email” and “email” ", "Capital,” and "Beijing” were replaced by a unified representation.
  • only words that best express the semantics of the question are retained. For example, "Where is the Beijing Railway Station?", the main sentence is "Beijing Railway Station.”
  • the "question, which is stored in the knowledge base 206, also includes the type of the question. For example, “Where is the Beijing Railway Station?" , this question, the type of question that is obtained through natural language processing is “inquiry place”. Combining the “question stem” and “question type” of the "problem”, the two attributes can represent a variety of different expressions of a problem. "Where is the Beijing Railway Station?" Other expressions of ", where is the capital railway station?" "How does the Beijing Railway Station go?, the main questions are "Beijing Railway Station”, the question type is “question type” are “inquiry place” ". So these questions can return the same response.
  • the task of extracting the question type and the question stem when generating the knowledge base is completed by the learning server.
  • the natural language understanding unit 203 of the robot server processes the online user input question using the same rules, and also generates the "question stem” and “question type” of the online user question for matching in the knowledge base.
  • some questions “question trunks, which can contain wildcards, are used to extend the scope of the "question trunk”.
  • questionable topics such as entertainment, military, etc.
  • the "response” part saved in the knowledge base 206 is not saved in the same way as the "problem” part, but a complete response is retained.
  • a "problem” in the knowledge base corresponds to multiple “responses", one from user education.
  • "Answer” will include an "Education User ID” attribute.
  • the inference bow of the robot server After matching the "problem", the engine unit selects one of the multiple responses corresponding to the "problem” and returns it to the user. When selecting, the user's own education response is preferentially selected.
  • a response may also contain some replacements that require the inference engine unit of the robot server to replace before returning a final response, which may represent some user attribute or other information.
  • the "XX” part of the response (“XX” needs to be in a different format to represent different meanings, the specific format is omitted here) needs to be replaced with the information in the user attribute, the user
  • the attribute query is completed by the user attribute management unit of the robot server. For example, if the city attribute of the user is "Shenzhen", the inference engine unit of the robot server replaces the "XX" part with "Shenzhen” in the final response generated, and finally The robot returns a response "I know you are from Shenzhen.”
  • the chat bot system may further include a control server,
  • the control server is configured to send a knowledge base update switching instruction to the robot server 102 and the learning server; and a learning server, configured to convert the accumulated user dialogue into a knowledge base file format to update knowledge after receiving the knowledge base update switching instruction Library
  • the standby inference engine unit in the robot server is configured to load the updated knowledge base after receiving the knowledge base update switching instruction, and convert the function after the updated knowledge base and the inference engine unit.
  • the control server periodically sends a knowledge base update switching instruction to the robot server and the learning server; or
  • the control server sends a knowledge base update switching instruction to the robot server and the learning server when the user session accumulates to a predetermined level.
  • Fig. 3 is a diagram showing an exemplary structure of a robot server according to an embodiment of the present invention.
  • the method includes:
  • Step 301 The distribution server receives the user statement, and distributes the user statement to the corresponding robot server according to the load balancing principle;
  • Step 302 The bot server automatically returns a reply to the user in response to the user statement.
  • the user session request may be received, and the user session is redirected to the distribution server matching the attribute information according to the attribute information of the user; and then the distribution server receives the user statement of the user session. And distribute the user statements to the corresponding robot server according to the load balancing principle.
  • the user session may be received before step 301, and the user statement is distributed to the corresponding distribution server according to the load balancing principle; the distribution server receives the user statement of the user session, and then distributes the user statement to the corresponding according to the load balancing principle.
  • Robot server receives the user statement of the user session, and then distributes the user statement to the corresponding according to the load balancing principle.
  • the chat bot system proposed by the embodiment of the present invention includes five types of servers in addition to the necessary front-end communication system (instant messaging platform, short message platform, etc.): a redirecting (Redirect) server, Dispatch server, robot server, learning server, and control server.
  • a redirecting (Redirect) server Dispatch server
  • robot server robot
  • learning server learning server
  • control server control server
  • the front-end communication system When a new session from the current communication system starts, the front-end communication system first informs the redirect server, and the redirect server is based on the IP address of the client in the front-end communication system or The account used by the client determines which distribution server is used as the processing entry for this session.
  • the redirect server After determining which distribution server is used as the processing entry, all communication in this session is no longer passed through the redirect server. All data sent from the front-end communication system in this session is directly sent to the determined distribution server until this time. The session ends.
  • the redirect server completes the redirection task of the session in the entire chat bot, and considers the load balancing of each distribution server in the redirection process.
  • the distribution server is a general portal for session processing of the chat bot system, and is used for receiving all user statements of the session sent from the front-end communication system such as the instant messaging platform, the short message platform, etc., and distributing the user statements to each according to a certain mechanism.
  • Robot server this mechanism makes the load of each robot server approximately balanced.
  • the robot server is a server in the chat robot system that processes and responds to user statements.
  • the robot server in a chat robot system may be one or more.
  • User statements may be chat statements, information query questions, conversational education, other formatting commands, and the like.
  • the robot server parses the user statement, determines its destination category, and performs different processing, and then returns the response directly to the front-end communication system such as the instant messaging platform or the short message platform.
  • the robot server may include a statement purpose recognition unit, a natural language understanding unit, an inference engine unit, a user attribute management unit, a formatting language execution unit, and the like, wherein the formatting language execution unit may include a game module and information. Query modules, etc.
  • the statement purpose recognition unit of the robot server recognizes the target category of the user statement, and the judgment statement is a formatted statement or an unformatted language statement. If it is a formatted statement, the discriminating is a dialog education formatted statement, an information query formatted statement, Game formatting commands, or other formatting commands (such as setting user properties).
  • the natural language understanding unit of the robot server performs natural language processing on unformatted user sentences, and completes processing including word segmentation, question stem extraction, question type judgment, topic judgment, and the like.
  • the inference engine unit of the robot server loads the knowledge base file generated by the learning server, generates the natural language response based on the user sentence attribute output by the natural language understanding unit, and the user attribute extracted by the user attribute management unit, and completes the processing of the user chat sentence. .
  • a robot server can contain two inference engine units, one for online real-time processing, generate natural language responses, and the other is a backup inference engine unit for loading recently updated knowledge bases.
  • the user attribute management unit of the robot server performs storage and query reading of user attributes. These attributes include the user's name, gender, city, and so on.
  • the inference engine unit returns a personalized response based on these attributes. These attributes are voluntarily submitted by the user and are submitted in a number of ways, including by submitting some formatting commands to the chat bot.
  • the game module of the robot server processes the game formatting commands, and according to the game logic, advances the interactive game.
  • the information query module of the robot server implements practical information query, including weather query, map query, postal code query, mobile phone attribution query, life information query, dictionary query, calculator and other value-added service functions.
  • the learning server is responsible for recording the user education dialogue, which is saved in the user education database, and is left to be edited for manual review. After the manual review, these conversations will be converted into knowledge base files by the learning server.
  • This knowledge base file format is logical reasoning. And specially designed.
  • the knowledge in the knowledge base includes other sources such as self-editing knowledge and knowledge deposited by the knowledge community. These different sources of knowledge are aggregated and merged into the knowledge base during the conversion process.
  • the knowledge base contains question and answer topic attributes, context attributes, and users who educate the Q&A
  • the ID attribute (if the previous paragraph is an instant messaging platform, then the ID is the user using instant messenger The account ID) and other attributes for reasoning, where the user ID attribute is used to implement personalization during the chat process.
  • the knowledge base also contains some semantic wildcards to extend the scope of the applicable questions for the response. Finally, such a knowledge base file is sent to each robot server under the command of the control server.
  • the control server is responsible for sending the knowledge base update switching instruction to the robot server and the learning server.
  • the timing of the update switching instruction may be timed, or may be when the new user education session received by the learning server accumulates to a certain extent.
  • the learning server converts the question and answer dialog in the user education database into a knowledge base file and sends it to each robot server.
  • the control server sends instructions to the robot server, and the backup inference engine unit in the robot server loads the latest knowledge base, and then The roles of the backup inference engine and the online inference engine are exchanged to complete the replacement of the knowledge base.
  • the redirect server Before a new session begins, the redirect server first determines which distribution server is the total entry for the session (considering the load balancing of each distribution server), and then all the users of the session from the previous communication system. The statement is first passed to the distribution server, which passes the user statement to one of the robot servers (when the distribution server chooses to forward to which robot server, the robot server load balancing is also considered), after the robot server finishes processing the user statement The response is returned directly to the front-end communication system.
  • the main operational flow of the chat bot is the processing flow of the user's sentence during system operation. The process is described in detail below.
  • a session is established when a user starts chatting with the chat bot.
  • the front-end communication system retains the redirect server address of the chat bot system.
  • the front-end communication system first informs the redirect server, and the redirect server determines the session. Which distribution server is handed over as a processing entry, and the front-end communication system is notified, after which all user statements transmitted from the front-end communication system of this session are handed over to the redirect server.
  • the redirect server decides which distribution server to process, it considers the load balancing or service characteristics of each distribution server, such as the account ID (such as the account of the instant messaging tool) used by the user when using the front-end communication tool. The number segment is used for distribution.
  • chat bot to process a user question in this session after a session is established.
  • the distribution server of the chat bot first obtains the user sentence from the front-end communication system, and the distribution server transmits the user statement to one of the bot servers (when the distribution server chooses to forward to which bot server, the load balancing of each bot server is considered).
  • the robot server calls the statement destination identification unit to judge the intent of the user statement, and then performs different processing according to the target category, and the robot server returns the response directly to the front-end communication system after the user statement finishes processing.
  • FIG. 5 is a schematic flow chart of an automatic chat method according to an embodiment of the present invention. As shown in Figure 5, the method includes:
  • Step 501 to step 503 The distribution server receives the user statement from the front-end communication system, and the distribution server uses the load balancing mechanism to forward the user statement to a certain robot server, and the machine server determines the intention of the user statement;
  • Step 504 Determine whether the user statement is an unformatted language statement or a formatted statement, if it is a non-formatting language statement, execute step 505, if it is a formatting language statement, execute step 509;
  • Step 505 to step 506 performing segmentation, question stem extraction, question type judgment, topic judgment and the like on the user sentence, and determining whether the user's intention is to perform some information inquiry through natural language according to the question type and the topic judgment result. If yes, go to step 510, otherwise go to step 507;
  • Step 507 to step 508 The user attribute management unit of the robot server reads the user attribute to the inference engine unit, and the inference engine unit searches for a match from the knowledge base according to the user statement. a knowledge point, and generate a personalized response according to the topic attribute, the question type attribute, the user attribute and the like, and then execute step 514 and end the process;
  • Step 509 determining that the formatted statement is an information query, a dialogue education or a game command, if it is an information query, performing step 510; if it is a dialogue education, executing step 512; if it is a game command, executing step 511;
  • Step 510 The information query module of the robot server parses the user query intent, and searches from the utility information database, and takes the search result as a response, and then executes step 514 and ends the process;
  • Step 511 The game module of the robot server parses the user's game command, advances the game according to the game logic, and responds to the current progress of the game.
  • Step 512 ⁇ Step 513 The robot server forwards the dialogue of the user education to the learning server; the learning server records it in the user education database; the robot server responds with a thank-you user education, and then executes step 514 and ends the process;
  • Step 514 The bot server returns the response directly to the front-end communication system, and the user finally receives the chat bot response.
  • the distribution server adopts a distribution mechanism that considers load balancing or service characteristics, for example, adopts a principle similar to redirect server redirection, according to the account ID used by the user when using the front-end communication tool ( The number segment of the instant messaging tool's account number is used for distribution.
  • the formatted statement may be agreed with the user in advance. For example, "tq Shenzhen” means to query Shenzhen weather, "Q: Are you a robot? A: Yes, I am very smart.” Indicates user education dialogue.
  • the statement object class identification unit of the robot server recognizes the format statement according to these pre-agreed formats.
  • the natural language understanding unit of the robot server adopts natural language processing technology to perform lexical analysis, grammar analysis, and semantic division on natural language sentences input by the user. Analysis and other processing.
  • the reason for the decision at step 506 is: Some users are accustomed to querying information in a natural language rather than a formatted statement, such as the user's statement "What is the weather in Shenzhen tomorrow?" In this case, the chat robot is processed through natural language. After the user's true intention is identified, the process is transferred to the information query module to process the information query.
  • the same user question can generate different responses, and the inference engine unit of the robot server searches for the semantic matching knowledge points from the knowledge base according to the user statement, and according to the topic attribute, A question type attribute, a user attribute, and the like generate a personalized response.
  • the user education dialogue is forwarded to the learning server, and a response to the user education is returned directly to the user.
  • the learning server records the user education conversation along with the user's ID—in the user education database.
  • the learning server continuously generates new knowledge bases, and the robot server constantly updates the knowledge base.
  • the above process is completed by the control server by sending an instruction.
  • the beneficial effects of the chat robot system proposed by the embodiment of the present invention include:
  • the chat bot proposed in the embodiment of the present invention may include a plurality of distribution servers, each of which may be connected to a plurality of bot servers, each of which is functionally independent.
  • the distribution server controls the distribution of the user statement according to the load balancing principle.
  • the number of the distribution servers may be multiple, and each distribution server may be connected to multiple robot servers, and each of the robot servers is functionally independent, and thus the present invention is implemented.
  • the example is very scalable and is especially suitable for a large number of users.
  • the embodiment of the present invention preferably further includes a redirect server.
  • the redirect server decides which distribution server is used as the processing entry by one session, and then uses the distribution server as the total portal and distributor of all the user statements of the chat robot in one session, so that the robot server load is basically balanced and the system is expanded. Sexuality makes the chat bot system more suitable for supporting a large number of users.
  • the embodiment of the present invention uses a knowledge base file instead of a database as a carrier of knowledge points.
  • This knowledge base file is more suitable for reasoning and generating personalized responses in a specially designed format, which makes the chat robot more intelligent.
  • the embodiment of the present invention generates a personalized response according to information such as a topic, a question type, a user attribute, and the like, so that the robot is more realistic in imitating the human language.
  • the embodiment of the present invention supports information query (including natural language query) and human-computer interactive game, so that the user can get more services through the chat robot.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

A chatting robot system includes a distribution server and at least two robot servers, wherein the distribution server is used for receiving users' sentences, and distributing the users' sentences to the corresponding robot server according to load balancing principle; and the robot servers are used for responding the users' messages and transmitting automatically feedback replies to the users. The invention also discloses a method and a device for chatting automatically. After implementing the embodiment of the invention, lots of users can be supported, expandability of the system also can be increased, and feedback replies has individuation. Additionally, the embodiment of the invention make the robot server to understand the natrual language and exea chatting robot system and a method, a device for chatting automaticallycute logic consequence more expediently.

Description

一种聊天机器人系统及自动聊天方法、 装置  Chat robot system and automatic chat method and device
技术领域 Technical field
本发明涉及人工智能领域, 更具体地说, 本发明涉及一种聊天机器 人系统及自动聊天方法、 装置。 发明背景  The present invention relates to the field of artificial intelligence, and more particularly to a chat robot system and an automatic chat method and apparatus. Background of the invention
近些年来, 人们之间的通讯手段日益丰富。 即时通信工具、 手机短 信等通讯手段日渐风行。 基于这些通讯手段, 除了实现人与人之间的沟 通交流外, 也使得人与人工智能系统之间的沟通交流成为可能。  In recent years, communication methods between people have become increasingly abundant. Instant messaging tools, mobile phone short messages and other means of communication are becoming more popular. Based on these communication means, in addition to the communication between people, it also makes communication between human and artificial intelligence systems possible.
聊天机器人系统就是一种借助于通讯手段能够时时刻刻在线、 并通 过自然语言与人沟通交流的人工智能系统。 除了聊天功能外, 聊天机器 人系统还可以拥有众多的增值服务, 例如天气查询、 地图查询、 生活信 息查询、 计算器、 词典等, 甚至还可以与人一起作游戏。 聊天机器人系 统实质上是一种自动问答系统。 自动问答系统以自然语言理解技术为核 心, 涉及到计算语言学、 信息科学和人工智能等多门学科, 是计算机应 用研究的热点之一。 自然语言理解是人工智能领域中的一个重要研究方 向, 它使计算机能够理解和运用人类的自然语言, 可以理解用户的谈话 内容或者查询意图, 实现人与计算机之间基于自然语言的有效沟通。  The chat robot system is an artificial intelligence system that can communicate with people through natural language at any time by means of communication. In addition to the chat function, the chat robot system can also have a large number of value-added services, such as weather queries, map queries, life information queries, calculators, dictionaries, etc., and even play games with people. The chat robot system is essentially an automated question answering system. The automatic question answering system is based on natural language understanding technology and involves many disciplines such as computational linguistics, information science and artificial intelligence. It is one of the hotspots of computer application research. Natural language understanding is an important research direction in the field of artificial intelligence. It enables computers to understand and apply human natural language, understand user's conversation content or query intent, and realize effective communication based on natural language between human and computer.
聊天机器人利用自然语言处理技术、知识库和实时更新的信息资源, 一方面完成对用户问题的分析处理, 另一方面完成正确答案的生成。  The chat robot utilizes natural language processing technology, knowledge base and real-time updated information resources to complete the analysis and processing of user problems on the one hand and the correct answer generation on the other hand.
目前现有技术中有一种聊天机器人系统, 包含通讯模块、 查询服务 器、 游戏服务器、 人工智能服务器及相应的数据库。 在这种聊天机器人 系统中, 采用数据库作为知识点的记载方式, 用户通过即时通讯平台或 短信平台与聊天机器人进行各种对话。 然而, 现有技术的这种聊天机器人系统架构缺乏信息分发机制, 在 支持海量用户时会遇到较大的困难, 因此这种系统架构的可扩展性差。 发明内容 At present, there is a chat robot system in the prior art, which comprises a communication module, a query server, a game server, an artificial intelligence server and a corresponding database. In this chat robot system, the database is used as a way of recording knowledge points, and the user performs various conversations with the chat robot through an instant messaging platform or a short message platform. However, the prior art chat robot system architecture lacks an information distribution mechanism, and encounters large difficulties in supporting a large number of users, and thus the scalability of such a system architecture is poor. Summary of the invention
本发明实施例提出一种聊天机器人系统, 以满足海量用户, 提高可 扩展性。  The embodiment of the invention provides a chat robot system to meet a large number of users and improve scalability.
本发明实施例提出一种聊天机器人系统的实现方法和装置, 以满足 海量用户, 提高可扩展性。  The embodiment of the invention provides a method and a device for implementing a chat robot system to meet a large number of users and improve scalability.
本发明实施例的技术方案是这样实现的:  The technical solution of the embodiment of the present invention is implemented as follows:
一种聊天机器人系统, 该系统包括分发服务器和至少两个机器人服 务器, 其中:  A chat robot system, the system comprising a distribution server and at least two robot servers, wherein:
分发服务器, 用于接收用户语句, 并根据负载均衡原理将用户语句 分发到相应的机器人服务器;  a distribution server, configured to receive user statements and distribute the user statements to the corresponding robot server according to a load balancing principle;
机器人服务器, 用于响应于用户语句向用户自动反馈答复。  A robot server for automatically feeding back responses to the user in response to a user statement.
一种自动聊天方法, 该方法包括:  An automatic chat method, the method comprising:
A、 分发服务器接收用户语句, 并根据负载均衡原理将用户语句分 发到相应的机器人服务器;  A. The distribution server receives the user statement and distributes the user statement to the corresponding robot server according to the load balancing principle;
B、 机器人服务器响应于用户语句向用户自动反馈答复。  B. The robot server automatically returns a reply to the user in response to the user statement.
一种机器人服务器, 包括: 用户语句接收单元, 用于接收分发服务 器根据负载均衡原理所分发来的用户语句, 并将所述用户语句发送到语 句目的识别单元;  A robot server, comprising: a user sentence receiving unit, configured to receive a user statement distributed by a distribution server according to a load balancing principle, and send the user statement to a statement object identification unit;
语句目的识别单元, 用于识别用户语句为格式化语句还是非格式化 语句;  a statement purpose identification unit, configured to identify whether the user statement is a formatted statement or an unformatted statement;
格式化语言执行单元, 用于当语句目的识别单元识别出用户语句为 格式化语句时, 执行所述格式化语句; 自然语言理解单元, 用于当语句目的识别单元识别出用户语句为非 格式化语句时, 对用户语句进行自然语言理解以确定语句属性; a formatting language execution unit, configured to execute the formatting statement when the statement purpose recognition unit recognizes that the user statement is a formatted statement; a natural language understanding unit, configured to perform natural language understanding on the user statement to determine a statement attribute when the statement purpose recognition unit recognizes that the user statement is an unformatted statement;
用户属性管理单元, 用于管理用户的属性信息;  a user attribute management unit, configured to manage attribute information of the user;
推理引擎单元, 用于加载知识库, 并根据所述语句属性和用户属性 信息在知识库中进行模式匹配, 确定匹配的反馈答复。  The inference engine unit is configured to load the knowledge base, and perform pattern matching in the knowledge base according to the statement attribute and the user attribute information to determine a matching feedback reply.
从上述技术方案中可以看出, 本发明实施例提出的系统包括分发服 务器和至少两个机器人服务器, 其中分发服务器接收用户语句, 并根据 负载均衡原理将用户语句分发到相应的机器人服务器; 机器人服务器响 应于用户语句向用户自动反馈答复中。 由此可见, 应用本发明实施例以 后, 分发服务器根据负载均衡原理控制用户语句的分发, 分发服务器的 数目可以为多个, 每个分发服务器可以接多个机器人服务器, 每个机器 人服务器功能独立, 因此本发明实施例的可扩展性很高, 尤其适合海量 用户。 附图简要说明  As can be seen from the above technical solution, the system proposed by the embodiment of the present invention includes a distribution server and at least two robot servers, wherein the distribution server receives the user statement and distributes the user statement to the corresponding robot server according to the load balancing principle; The response is automatically fed back to the user in response to the user statement. Therefore, after the embodiment of the present invention is applied, the distribution server controls the distribution of the user statement according to the load balancing principle. The number of the distribution servers may be multiple, and each distribution server may be connected to multiple robot servers, and each of the robot servers is independent in function. Therefore, the embodiment of the present invention has high scalability, and is particularly suitable for a large number of users. BRIEF DESCRIPTION OF THE DRAWINGS
图 1为根据本发明实施例的聊天机器人系统的示范性结构示意图; 图 2为根据本发明实施例的机器人服务器的示范性结构示意图; 图 3为根据本发明实施例的自动聊天方法的示范性流程示意图; 图 4为根据本发明实施例的聊天机器人系统的示范性结构示意图; 图 5为根据本发明实施例的自动聊天方法的示范性流程示意图。 实施本发明的方式  1 is a schematic structural diagram of a chat robot system according to an embodiment of the present invention; FIG. 2 is a schematic structural diagram of a robot server according to an embodiment of the present invention; FIG. 3 is an exemplary diagram of an automatic chat method according to an embodiment of the present invention; 4 is a schematic structural diagram of a chat robot system according to an embodiment of the present invention; FIG. 5 is a schematic flow chart of an automatic chat method according to an embodiment of the present invention. Mode for carrying out the invention
为使本发明的目的、 技术方案和优点表达得更加清楚明白, 下面结 合附图及具体实施例对本发明再作进一步详细的说明。  The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
在本发明实施例中: 分发服务器接收用户语句, 然后根据负载均衡 原理将用户语句分发到相应的机器人服务器, 机器人服务器再响应于用 户语句向用户自动反馈答复, 从而使得机器人服务器的负载均衡, 满足 海量用户的需求, 并提高可扩展性。 In the embodiment of the present invention: the distribution server receives the user statement, and then according to load balancing The principle distributes the user statement to the corresponding robot server. The robot server then automatically responds to the user in response to the user statement, so that the load of the robot server is balanced, meets the needs of a large number of users, and improves scalability.
进一步, 本发明实施例采用知识库文件而不是数据库作为知识点的 载体, 这种知识库文件采用特殊设计的格式更适合推理和生成个性化应 答, 使得聊天机器人更具智能性。  Further, the embodiment of the present invention uses a knowledge base file instead of a database as a carrier of knowledge points. The knowledge base file is more suitable for reasoning and generating personalized responses in a specially designed format, so that the chat robot is more intelligent.
图 1为根据本发明实施例的聊天机器人系统的示范性结构示意图。 如图 1所示, 该系统包括分发服务器 101和至少两个机器人服务器 FIG. 1 is a schematic diagram showing an exemplary structure of a chat robot system according to an embodiment of the present invention. As shown in FIG. 1, the system includes a distribution server 101 and at least two robot servers.
102, 其中: 102, where:
分发服务器 101 , 用于接收用户语句, 并根据负载均衡原理将用户 语句分发到相应的机器人服务器 102;  a distribution server 101, configured to receive a user statement, and distribute the user statement to the corresponding robot server 102 according to a load balancing principle;
机器人服务器 102, 用于响应于用户语句向用户自动反馈答复。 优选地, 所述分发服务器 101的数目至少为两个,从而支持更多的 聊天机器人, 此时优选该系统进一步包括重定向服务器 103;  The robot server 102 is configured to automatically feed back a response to the user in response to the user statement. Preferably, the number of the distribution servers 101 is at least two, thereby supporting more chat bots, and preferably the system further includes a redirect server 103;
重定向服务器 103, 用于接收用户会话, 并根据该用户的属性信息, 将用户会话重定向到与所述属性信息相匹配的分发服务器 101;  The redirecting server 103 is configured to receive a user session, and redirect the user session to the distribution server 101 that matches the attribute information according to the attribute information of the user;
其中, 用户的属性信息可以包括用户的 IP地址和 /或客户端帐号等。 这样, 重定向服务器 103考虑到用户的 IP地址和 /或客户端帐号来分配 分发服务器。 比如,可以将用户会话重定向到与所述 IP地址较接近的分 发服务器, 或者将用户会话重定向到与客户端帐号相对应的分发服务 器。 此时, 所述与属性信息相匹配的分发服务器 101 , 用于接收该用户 会话的用户语句, 并根据负载均衡原理将用户语句分发到相应的机器人 服务器 102。  The attribute information of the user may include the user's IP address and/or the client account number. Thus, the redirect server 103 allocates the distribution server in consideration of the user's IP address and/or client account number. For example, the user session can be redirected to a distribution server that is closer to the IP address, or the user session can be redirected to a distribution server corresponding to the client account. At this time, the distribution server 101 matching the attribute information is configured to receive the user statement of the user session, and distribute the user statement to the corresponding robot server 102 according to the load balancing principle.
针对上述重定向服务器的另一种可选功能, 分发服务器 101的数目 至少为两个, 该系统进一步包括重定向服务器 103; 此时的重定向服务器 103 , 用于接收用户会话, 并根据负载均衡原 理将用户语句分发到相应的分发服务器 101; For another optional function of the above redirect server, the number of the distribution server 101 is at least two, the system further includes a redirect server 103; The redirect server 103 at this time is configured to receive a user session, and distribute the user statement to the corresponding distribution server 101 according to the load balancing principle;
分发服务器 101 , 用于从重定向服务器 103接收该用户会话的用户 语句, 并根据负载均衡原理将进一步将用户语句分发到相应的机器人服 务器 102。  The distribution server 101 is configured to receive a user statement of the user session from the redirect server 103, and further distribute the user statement to the corresponding robot server 102 according to the load balancing principle.
其中, 分发服务器 101 , 可以通过以下通讯方式中的任一种或者多 于一种的任意组合接收用户语句: 通过即时通讯方式接收用户语句; 通 过电子邮件方式接收用户语句; 通过短消息方式接收用户语句。  The distribution server 101 can receive the user statement by any one of the following communication modes or any combination of more than one type: receiving the user statement by means of instant messaging; receiving the user statement by means of email; receiving the user by short message mode Statement.
类似地, 机器人服务器 102, 可以通过以下通讯方式中的任一种或 者多于一种的任意组合向用户自动反馈答复: 通过即时通讯方式接收用 户语句; 通过电子邮件方式接收用户语句; 通过短消息方式接收用户语 句。  Similarly, the robot server 102 can automatically feedback the user to the user through any one of the following communication modes or any combination of more than one: receiving the user sentence by means of instant messaging; receiving the user statement by means of email; The way to receive user statements.
图 2为图 1中的机器人服务器的一种示范性具体结构。如图 2所示, 机器人服务器 102包括:  2 is an exemplary specific structure of the robot server of FIG. 1. As shown in FIG. 2, the robot server 102 includes:
语句目的识别单元 201 , 用于识别用户语句为格式化语句还是非格 式化语句;  The statement purpose identification unit 201 is configured to identify whether the user statement is a formatted statement or a non-formatted statement;
格式化语言执行单元 202, 用于当语句目的识别单元 201识别出用 户语句为格式化语句时, 执行所述格式化语句;  The formatting language execution unit 202 is configured to execute the formatting statement when the statement purpose identification unit 201 recognizes that the user statement is a formatting statement;
在图 1中, 没有明确示出格式化语言执行单元 202。 实质上, 所述 格式化语言执行单元可以包括: 信息查询模块、 对话教育模块和游戏模 块中的任一个或者多于一个的任意组合, 其中:  In Fig. 1, the formatting language execution unit 202 is not explicitly shown. In essence, the formatting language execution unit may include: any one of an information query module, a dialog education module, and a game module, or any combination of more than one, wherein:
信息查询模块, 用于确定信息查询类的格式化语句的反馈答复; 对话教育模块, 用于确定对话教育类的格式化语句的反馈答复; 游戏模块, 用于确定游戏类的格式化语句的反馈答复。  An information query module, configured to determine a feedback reply of the formatted statement of the information query class; a dialog education module, configured to determine a feedback reply of the formatted statement of the dialog education class; a game module, configured to determine feedback of the formatted statement of the game class reply.
为了筒单视图, 图 2中仅示出信息查询模块 2021和游戏模块 2022。 其中信息查询模块 2021与实用信息数据库 209连接, 用于检索实用信 息数据库 209, 以确定信息查询类的格式化语句的反馈答复。 For the single view, only the information query module 2021 and the game module 2022 are shown in FIG. The information query module 2021 is connected to the utility information database 209 for searching the utility information database 209 to determine a feedback reply of the formatted statement of the information query class.
机器人服务器 102进一步包括自然语言理解单元 203 , 用于当语句 目的识别单元 201识别出用户语句为非格式化语句时, 对用户语句进行 自然语言理解以确定语句属性;  The bot server 102 further includes a natural language understanding unit 203 for performing natural language understanding on the user statement to determine the statement attribute when the statement object recognition unit 201 recognizes that the user statement is an unformatted statement;
机器人服务器 102还可以进一步包括用户属性管理单元 204, 用于 管理用户的属性信息;  The bot server 102 may further include a user attribute management unit 204 for managing attribute information of the user;
机器人服务器 102还可以进一步包括推理引擎单元 205 , 用于加载 知识库 206, 并根据所述语句属性和用户属性信息在知识库 206中进行 模式匹配, 确定匹配的反馈答复。 其中用户的属性信息可以包括: 用户 的姓名、 用户的性别、 用户所在城市、 用户爱好中的任一个或者多于一 个的任意组合。  The robot server 102 may further include an inference engine unit 205 for loading the knowledge base 206, and performing pattern matching in the knowledge base 206 according to the statement attribute and the user attribute information to determine a matching feedback reply. The attribute information of the user may include: any one of the user's name, the gender of the user, the city where the user is located, the user's preference, or any combination of more than one.
所述自然语言理解单元 203 , 可以对用户语句执行下列操作中的任 一个或者多于一个的任意组合以确定语句属性: 分词、 问句主干提取、 问句类型判断和话题判断。  The natural language understanding unit 203 may perform any one of the following operations or any combination of more than one to determine a statement attribute for the user sentence: a word segmentation, a question stem extraction, a question type judgment, and a topic judgment.
所述机器人服务器还可以进一步包括备用推理引擎单元 207, 用于 当知识库更新时加载更新的知识库 208, 并在加载完更新的知识库 208 后与所述推理引擎单元 205转换功能。  The bot server may further include an alternate inference engine unit 207 for loading the updated knowledge base 208 when the knowledge base is updated, and converting the function with the inference engine unit 205 after loading the updated knowledge base 208.
图 1中的聊天机器人系统还可以进一步包括学习服务器, 图 2中的 所述知识库 206可以位于该学习服务器中;  The chat bot system in FIG. 1 may further include a learning server, and the knowledge base 206 in FIG. 2 may be located in the learning server;
该学习服务器, 用于记录用户对话, 并将用户对话转化为知识库文 件格式后保存在知识库 206中。  The learning server is used to record user conversations and convert the user conversation into a knowledge base file format and save it in the knowledge base 206.
聊天机器人系统还可以进一步包括审核服务器。 审核服务器, 用于 根据预先设置的知识审核规则对用户对话进行审核, 并仅将通过审核的 用户对话发送到学习服务器。 比如, 为了防止在知识库 206中写入黄色 信息等不健康信息, 可以在审核服务器中预先设置若干过滤关键字, 当 用户对话包含过滤关键字时, 则审核服务器判定该知识不符合知识审核 规则, 不将该用户对话发送到学习服务器; 否则, 审核服务器判定该知 识符合知识审核规则, 将该用户对话发送到学习服务器。 The chat bot system may further include an audit server. An audit server that audits user conversations based on pre-set knowledge review rules and sends only the audited user conversations to the learning server. For example, to prevent writing yellow in the knowledge base 206 For information such as unhealthy information, some filtering keywords may be preset in the auditing server. When the user dialogue includes a filtering keyword, the auditing server determines that the knowledge does not comply with the knowledge review rule, and does not send the user conversation to the learning server; otherwise, The auditing server determines that the knowledge conforms to the knowledge review rules and sends the user session to the learning server.
所述知识库文件格式可以包括问题部分和应答部分, 问题部分以问 句主干的方式保存, 应答部分以完整保留的方式保存。  The knowledge base file format may include a question part and a reply part, the question part is saved in the form of a question trunk, and the reply part is saved in a complete reservation manner.
知识库 206是聊天机器人系统的重要组成部分, 采用特定适合推理 的格式、 以问答语句对的形式存储了大量的知识。 当用户输入的自然语 言句子与知识库中的某一个句子匹配成功的时候, 其对应的应答就会被 返回给用户。  The knowledge base 206 is an important part of the chat bot system, storing a large amount of knowledge in a form suitable for reasoning and in the form of a question-and-answer statement pair. When the natural language sentence entered by the user matches a certain sentence in the knowledge base, the corresponding response is returned to the user.
为了便于推理, 知识库 206中包含了很多属性。 下面分别对"问题" 部分和 "应答 "部分的属性筒单介绍。  To facilitate reasoning, the knowledge base 206 contains a number of attributes. The following is a description of the properties of the "Questions" section and the "Response" section.
知识库 206中保存的 "问题,,部分, 经过自然语言处理, 以问句主干 的方式保存。 问句主干提取可以有多种规则, 例如对同义词作了替换, 如" Email"和"电子邮件", "首都,,和 "北京 "等,被替换为统一的表示方法。 再如,仅保留最能表达问句语义的词语。如一个问句"北京火车站在什么 地方? ", 得到的句子主干为"北京 火车站"。  The "question, part, stored in the knowledge base 206 is processed by natural language and saved in the manner of the question backbone. There are various rules for question stem extraction, such as replacing synonyms, such as "email" and "email" ", "Capital," and "Beijing" were replaced by a unified representation. For another example, only words that best express the semantics of the question are retained. For example, "Where is the Beijing Railway Station?", the main sentence is "Beijing Railway Station."
另外, 知识库 206中保存的"问题,,部分还包括问句的类型。 例如"北 京火车站在什么地方? ,,这个问句,经过自然语言处理得到的问句类型是 "询问地点"。 综合"问题"的"问句主干"和"问句类型,,两个属性可以表示 一个问题的多种不同表述方法。 "北京火车站在什么地方? ,,的其它表述 方式"首都火车站在哪里? ""北京火车站怎么走? ,,的问句主干都是 "北 京 火车站", 问句类型都是 "问句类型"都是"询问地点"。 因此这些问句 可以返回相同的应答。  In addition, the "question, which is stored in the knowledge base 206, also includes the type of the question. For example, "Where is the Beijing Railway Station?" ,, this question, the type of question that is obtained through natural language processing is "inquiry place". Combining the "question stem" and "question type" of the "problem", the two attributes can represent a variety of different expressions of a problem. "Where is the Beijing Railway Station?" Other expressions of ", where is the capital railway station?" "How does the Beijing Railway Station go?, the main questions are "Beijing Railway Station", the question type is "question type" are "inquiry place" ". So these questions can return the same response.
生成知识库时提取问句类型和问句主干的任务是由学习服务器完成 的, 机器人服务器的自然语言理解单元 203采用相同的规则处理在线用 户输入问句, 同样生成在线用户问句的"问句主干"和"问句类型", 用于 在知识库中进行匹配。 另夕卜, 一些问题的"问句主干,,可以包含通配符, 用于扩展 "问句主干"适配范围。还有问句主题(如娱乐、军事等)也是"问 题"的一个属性。 The task of extracting the question type and the question stem when generating the knowledge base is completed by the learning server. The natural language understanding unit 203 of the robot server processes the online user input question using the same rules, and also generates the "question stem" and "question type" of the online user question for matching in the knowledge base. In addition, some questions "question trunks, which can contain wildcards, are used to extend the scope of the "question trunk". There are also questionable topics (such as entertainment, military, etc.) that are also an attribute of "problems."
知识库 206 中保存的"应答"部分, 不像"问题"部分一样以主干的方 式保存, 而是保留完整的应答, 知识库中一个 "问题 "对应多种"应答", 一个来自用户教育的 "应答 "会包括一个 "教育用户 ID"属性。 机器人服务 器的推理弓 I擎单元在匹配了"问题"之后, 要从该 "问题"对应的多个应答 中选择一个返回给用户, 选择时优先选择该用户自己教育的应答。 一个 应答还可能包含一些替换符, 该替换符需要机器人服务器的推理引擎单 元在返回最终应答之前进行替换, 这些替换符可能代表一些用户属性或 其它信息。 例如: 一个应答"我知道你来自 XX。 "该应答中" XX"部分 ( "XX"需要采用不同格式来代表不同的意义, 具体格式此处省略)需要 用用户属性中的信息来替换, 用户属性查询是由机器人服务器的用户属 性管理单元来完成的, 例如用户所在城市属性为"深圳", 则机器人服务 器的推理引擎单元在生成的最终应答中将" XX"部分替换成"深圳",最终 机器人返回应答"我知道你来自深圳。 "  The "response" part saved in the knowledge base 206 is not saved in the same way as the "problem" part, but a complete response is retained. A "problem" in the knowledge base corresponds to multiple "responses", one from user education. "Answer" will include an "Education User ID" attribute. The inference bow of the robot server After matching the "problem", the engine unit selects one of the multiple responses corresponding to the "problem" and returns it to the user. When selecting, the user's own education response is preferentially selected. A response may also contain some replacements that require the inference engine unit of the robot server to replace before returning a final response, which may represent some user attribute or other information. For example: A response "I know you are from XX." The "XX" part of the response ("XX" needs to be in a different format to represent different meanings, the specific format is omitted here) needs to be replaced with the information in the user attribute, the user The attribute query is completed by the user attribute management unit of the robot server. For example, if the city attribute of the user is "Shenzhen", the inference engine unit of the robot server replaces the "XX" part with "Shenzhen" in the final response generated, and finally The robot returns a response "I know you are from Shenzhen."
该聊天机器人系统还可以进一步包括控制服务器,  The chat bot system may further include a control server,
所述控制服务器, 用于向机器人服务器 102和学习服务器发送知识 库更新切换指令; 学习服务器, 用于在收到知识库更新切换指令后, 将 积攒的用户对话转化为知识库文件格式以更新知识库;  The control server is configured to send a knowledge base update switching instruction to the robot server 102 and the learning server; and a learning server, configured to convert the accumulated user dialogue into a knowledge base file format to update knowledge after receiving the knowledge base update switching instruction Library
机器人服务器中的备用推理引擎单元, 用于在收到知识库更新切换 指令后, 加载更新的知识库, 并在加载完更新的知识库后和所述推理引 擎单元转换功能。 控制服务器定时向机器人服务器和学习服务器发送知识库更新切换 指令; 或 The standby inference engine unit in the robot server is configured to load the updated knowledge base after receiving the knowledge base update switching instruction, and convert the function after the updated knowledge base and the inference engine unit. The control server periodically sends a knowledge base update switching instruction to the robot server and the learning server; or
控制服务器在用户对话积攒到预定程度时向机器人服务器和学习服 务器发送知识库更新切换指令。  The control server sends a knowledge base update switching instruction to the robot server and the learning server when the user session accumulates to a predetermined level.
本发明实施例还公开了一种自动聊天方法。 图 3为根据本发明实施 例的机器人服务器的示范性结构示意图。  The embodiment of the invention also discloses an automatic chat method. Fig. 3 is a diagram showing an exemplary structure of a robot server according to an embodiment of the present invention.
如图 3所示, 该方法包括:  As shown in Figure 3, the method includes:
步骤 301 : 分发服务器接收用户语句, 并根据负载均衡原理将用户 语句分发到相应的机器人服务器;  Step 301: The distribution server receives the user statement, and distributes the user statement to the corresponding robot server according to the load balancing principle;
步骤 302: 机器人服务器响应于用户语句向用户自动反馈答复。 以上流程中, 可以在步骤 301之前, 接收用户会话请求, 并根据用 户的属性信息, 将用户会话重定向到与所述属性信息相匹配的分发服务 器; 然后该分发服务器接收该用户会话的用户语句, 并根据负载均衡原 理将用户语句分发到相应的机器人服务器。  Step 302: The bot server automatically returns a reply to the user in response to the user statement. In the above process, before the step 301, the user session request may be received, and the user session is redirected to the distribution server matching the attribute information according to the attribute information of the user; and then the distribution server receives the user statement of the user session. And distribute the user statements to the corresponding robot server according to the load balancing principle.
可选地, 还可以在步骤 301之前接收用户会话, 并根据负载均衡原 理将用户语句分发到相应的分发服务器; 分发服务器接收该用户会话的 用户语句, 再根据负载均衡原理将用户语句分发到相应的机器人服务 器。  Optionally, the user session may be received before step 301, and the user statement is distributed to the corresponding distribution server according to the load balancing principle; the distribution server receives the user statement of the user session, and then distributes the user statement to the corresponding according to the load balancing principle. Robot server.
图 4为根据本发明实施例的聊天机器人系统的示范性结构示意图。 在图 4所示的实施例中, 本发明实施例提出的聊天机器人系统除了 必需的前端通信系统(即时通信平台、 短信平台等)之外, 还包括 5类 服务器: 重定向 (Redirect )服务器、 分发 ( Dispatch )服务器、 机器人 ( Robot )服务器、 学习服务器(Learning )和控制 (Control )服务器。  4 is a schematic diagram showing an exemplary structure of a chat robot system according to an embodiment of the present invention. In the embodiment shown in FIG. 4, the chat bot system proposed by the embodiment of the present invention includes five types of servers in addition to the necessary front-end communication system (instant messaging platform, short message platform, etc.): a redirecting (Redirect) server, Dispatch server, robot server, learning server, and control server.
当前端通信系统中传来的一个新会话开始时, 前端通信系统首先告 知重定向服务器,重定向服务器根据前端通信系统中客户端的 IP地址或 者客户端使用的帐号, 决定本次会话由哪一个分发服务器作为处理的入 口。 When a new session from the current communication system starts, the front-end communication system first informs the redirect server, and the redirect server is based on the IP address of the client in the front-end communication system or The account used by the client determines which distribution server is used as the processing entry for this session.
确定由哪一个分发服务器作为处理的入口之后, 本次会话所有通讯 不再经过重定向服务器, 本次会话内所有从前端通信系统中传来的数据 直接发向该确定的分发服务器, 直至本次会话结束。 重定向服务器在整 个聊天机器人中完成会话的重定向任务, 在重定向过程中考虑到了各分 发服务器的负载均衡。  After determining which distribution server is used as the processing entry, all communication in this session is no longer passed through the redirect server. All data sent from the front-end communication system in this session is directly sent to the determined distribution server until this time. The session ends. The redirect server completes the redirection task of the session in the entire chat bot, and considers the load balancing of each distribution server in the redirection process.
分发服务器是聊天机器人系统的一个会话处理的总入口, 用于接收 从即时通信平台、 短信平台等前端通信系统发送来的本次会话的所有用 户语句, 并将用户语句按照某种机制分发给各机器人服务器, 这种机制 使得各机器人服务器的负载是近似均衡的。 为了便于扩展, 分发服务器 可以有多个, 每个分发服务器可以对应多个机器人服务器。  The distribution server is a general portal for session processing of the chat bot system, and is used for receiving all user statements of the session sent from the front-end communication system such as the instant messaging platform, the short message platform, etc., and distributing the user statements to each according to a certain mechanism. Robot server, this mechanism makes the load of each robot server approximately balanced. In order to facilitate expansion, there may be multiple distribution servers, and each distribution server may correspond to multiple robot servers.
机器人服务器是聊天机器人系统中处理用户语句并作出响应的服务 器, 一个聊天机器人系统中的机器人服务器可以是一个或多个。 用户语 句可能是聊天语句、 信息查询问句、 对话教育、 其它格式化命令等。 机 器人服务器解析用户语句, 判断其目的类别, 并作不同处理, 然后将应 答直接返回给即时通信平台或者短信平台等前段通信系统。  The robot server is a server in the chat robot system that processes and responds to user statements. The robot server in a chat robot system may be one or more. User statements may be chat statements, information query questions, conversational education, other formatting commands, and the like. The robot server parses the user statement, determines its destination category, and performs different processing, and then returns the response directly to the front-end communication system such as the instant messaging platform or the short message platform.
如图 中的示范性分析,机器人服务器可以包含语句目的识别单元、 自然语言理解单元、 推理引擎单元、 用户属性管理单元、 格式化语言执 行单元等, 其中格式化语言执行单元可以包括游戏模块和信息查询模块 等。  As an exemplary analysis in the figure, the robot server may include a statement purpose recognition unit, a natural language understanding unit, an inference engine unit, a user attribute management unit, a formatting language execution unit, and the like, wherein the formatting language execution unit may include a game module and information. Query modules, etc.
机器人服务器的语句目的识别单元对用户语句的目的类别进行辨 识, 判断语句为格式化语句或非格式化语言语句, 如果是格式化语句, 继续判别是对话教育格式化语句、 信息查询格式化语句、 游戏格式化命 令、 还是其他格式化命令 (如设置用户属性 )。 机器人服务器的自然语言理解单元对非格式化用户句子作自然语言 处理, 完成包括分词、 问句主干提取、 问句类型判断、 话题判断等处理。 The statement purpose recognition unit of the robot server recognizes the target category of the user statement, and the judgment statement is a formatted statement or an unformatted language statement. If it is a formatted statement, the discriminating is a dialog education formatted statement, an information query formatted statement, Game formatting commands, or other formatting commands (such as setting user properties). The natural language understanding unit of the robot server performs natural language processing on unformatted user sentences, and completes processing including word segmentation, question stem extraction, question type judgment, topic judgment, and the like.
机器人服务器的推理引擎单元, 加载由学习服务器生成的知识库文 件, 基于自然语言理解单元输出的用户句子属性, 以及用户属性管理单 元提取的用户属性, 生成自然语言应答, 完成对用户聊天语句的处理。  The inference engine unit of the robot server loads the knowledge base file generated by the learning server, generates the natural language response based on the user sentence attribute output by the natural language understanding unit, and the user attribute extracted by the user attribute management unit, and completes the processing of the user chat sentence. .
为了更新知识库, 一个机器人服务器可以包含两个推理引擎单元, 一个用于在线实时的处理、 生成自然语言应答, 另一个是备份推理引擎 单元, 用于加载最近更新过的知识库。  To update the knowledge base, a robot server can contain two inference engine units, one for online real-time processing, generate natural language responses, and the other is a backup inference engine unit for loading recently updated knowledge bases.
机器人服务器的用户属性管理单元完成用户属性的存储和查询读 取。 这些属性包括用户的姓名、 性别、 所在城市等。 推理引擎单元基于 这些属性可返回个性化的应答。 这些属性是用户自愿提交的, 提交的方 法有很多, 包括通过向聊天机器人提交某种格式化命令来设置。  The user attribute management unit of the robot server performs storage and query reading of user attributes. These attributes include the user's name, gender, city, and so on. The inference engine unit returns a personalized response based on these attributes. These attributes are voluntarily submitted by the user and are submitted in a number of ways, including by submitting some formatting commands to the chat bot.
机器人服务器的游戏模块处理游戏格式化命令, 按照游戏逻辑, 推 进互动游戏的进行。  The game module of the robot server processes the game formatting commands, and according to the game logic, advances the interactive game.
机器人服务器的信息查询模块实现实用信息查询, 包括天气查询、 地图查询、 邮编查询、 手机归属地查询、 生活信息查询、 词典查询、 计 算器等增值服务功能。  The information query module of the robot server implements practical information query, including weather query, map query, postal code query, mobile phone attribution query, life information query, dictionary query, calculator and other value-added service functions.
学习服务器负责记录用户教育的对话, 保存在用户教育数据库中, 留待编辑来人工审核, 待人工审核通过后, 这些对话将被学习服务器转 化为知识库文件, 这种知识库文件格式是为逻辑推理而特殊设计的。 知 识库中的知识除了来自用户教育外, 还包括自编辑知识和知识社区沉淀 下来的知识等其他来源。 这些不同来源的知识在转化过程中被汇总合并 在知识库中。  The learning server is responsible for recording the user education dialogue, which is saved in the user education database, and is left to be edited for manual review. After the manual review, these conversations will be converted into knowledge base files by the learning server. This knowledge base file format is logical reasoning. And specially designed. In addition to user education, the knowledge in the knowledge base includes other sources such as self-editing knowledge and knowledge deposited by the knowledge community. These different sources of knowledge are aggregated and merged into the knowledge base during the conversion process.
知识库中包含问答的话题属性、 上下文属性、 教育该问答的用户的 The knowledge base contains question and answer topic attributes, context attributes, and users who educate the Q&A
ID属性(如果前段是即时通信平台, 那么该 ID是用户使用即时通信工 具的帐号 ID )等用于推理的属性, 其中用户 ID属性被用来实现聊天过 程中的个性化。 另外知识库中还包含一些语义通配符, 用于扩展应答可 适用的问句的范围。 最后这种知识库文件在控制服务器的指令下发送到 各机器人服务器。 ID attribute (if the previous paragraph is an instant messaging platform, then the ID is the user using instant messenger The account ID) and other attributes for reasoning, where the user ID attribute is used to implement personalization during the chat process. In addition, the knowledge base also contains some semantic wildcards to extend the scope of the applicable questions for the response. Finally, such a knowledge base file is sent to each robot server under the command of the control server.
控制服务器负责向机器人服务器和学习服务器发送知识库更新切换 指令, 更新切换指令发出的时机可以是定时的, 也可以是当学习服务器 接收到的新用户教育对话积累到一定程度后。 指令发出后, 学习服务器 将用户教育数据库中的问答对话转化为知识库文件, 并发送给各机器人 服务器, 随后控制服务器发送指令给机器人服务器, 机器人服务器中的 备份推理引擎单元加载最新知识库, 而后, 备份推理引擎和在线推理引 擎的角色被交换, 完成知识库的替换。  The control server is responsible for sending the knowledge base update switching instruction to the robot server and the learning server. The timing of the update switching instruction may be timed, or may be when the new user education session received by the learning server accumulates to a certain extent. After the command is issued, the learning server converts the question and answer dialog in the user education database into a knowledge base file and sends it to each robot server. Then the control server sends instructions to the robot server, and the backup inference engine unit in the robot server loads the latest knowledge base, and then The roles of the backup inference engine and the online inference engine are exchanged to complete the replacement of the knowledge base.
一个新会话开始之前, 首先由重定向服务器确定由哪一个分发服务 器作为本次会话的总入口 (考虑了各分发服务器的负载均衡), 此后本 次会话的所有从前段通信系统传来的用户的语句首先传入分发服务器, 分发服务器将用户语句传给其中一个机器人服务器(分发服务器在选择 转发给哪一个机器人服务器时, 同样考虑到了各机器人服务器负载均 衡), 机器人服务器对用户语句完成处理后将应答直接返回给前端通信 系统。  Before a new session begins, the redirect server first determines which distribution server is the total entry for the session (considering the load balancing of each distribution server), and then all the users of the session from the previous communication system. The statement is first passed to the distribution server, which passes the user statement to one of the robot servers (when the distribution server chooses to forward to which robot server, the robot server load balancing is also considered), after the robot server finishes processing the user statement The response is returned directly to the front-end communication system.
聊天机器人的主要操作流程是系统运营时对用户句子的处理流程, 下面对这个过程进行详细描述。  The main operational flow of the chat bot is the processing flow of the user's sentence during system operation. The process is described in detail below.
首先一个会话在一个用户开始与聊天机器人聊天时被建立, 前端通 信系统保留了聊天机器人系统的重定向服务器地址, 新会话开始时, 前 端通信系统首先告知重定向服务器, 重定向服务器决定本次会话交由哪 一个分发服务器作为处理入口, 并且告知前端通信系统, 此后本次会话 所有从前端通信系统传来的用户语句都交由该重定向服务器处理。 重定向服务器在决定由哪一个分发服务器处理时, 考虑了各分发服 务器的负载均衡或是业务特征等信息, 比如根据用户在使用前端通信工 具时使用的帐号 ID (如即时通信工具的帐号) 的号码段来实现分发。 First, a session is established when a user starts chatting with the chat bot. The front-end communication system retains the redirect server address of the chat bot system. When the new session starts, the front-end communication system first informs the redirect server, and the redirect server determines the session. Which distribution server is handed over as a processing entry, and the front-end communication system is notified, after which all user statements transmitted from the front-end communication system of this session are handed over to the redirect server. When the redirect server decides which distribution server to process, it considers the load balancing or service characteristics of each distribution server, such as the account ID (such as the account of the instant messaging tool) used by the user when using the front-end communication tool. The number segment is used for distribution.
下面介绍一个会话建立起来后, 聊天机器人处理本会话中的一个用 户问句的流程。  The following describes the flow of a chat bot to process a user question in this session after a session is established.
首先聊天机器人的分发服务器首先从前端通信系统获得用户句子, 分发服务器将用户语句传给其中一个机器人服务器(分发服务器在选择 转发给哪一个机器人服务器时, 考虑到了各机器人服务器负载均衡)。  First, the distribution server of the chat bot first obtains the user sentence from the front-end communication system, and the distribution server transmits the user statement to one of the bot servers (when the distribution server chooses to forward to which bot server, the load balancing of each bot server is considered).
机器人服务器调用语句目的识别单元对用户语句的意图进行判断, 然后根据目的类别作不同处理, 机器人服务器对用户语句完成处理后将 应答直接返回给前端通信系统。  The robot server calls the statement destination identification unit to judge the intent of the user statement, and then performs different processing according to the target category, and the robot server returns the response directly to the front-end communication system after the user statement finishes processing.
图 5为根据本发明实施例的自动聊天方法的示范性流程示意图。 如图 5所示, 该方法包括:  FIG. 5 is a schematic flow chart of an automatic chat method according to an embodiment of the present invention. As shown in Figure 5, the method includes:
步骤 501~步骤 503: 分发服务器从前端通信系统收到用户语句,分 发服务器采用负载均衡的机制将用户语句转发给某个机器人服务器, 机 器人月良务器判断用户语句的意图;  Step 501 to step 503: The distribution server receives the user statement from the front-end communication system, and the distribution server uses the load balancing mechanism to forward the user statement to a certain robot server, and the machine server determines the intention of the user statement;
步骤 504: 判断用户语句是非格式化语言语句还是格式化语句, 如 果是非格式化语言语句则执行步骤 505 , 如果是格式化语言语句则执行 步骤 509;  Step 504: Determine whether the user statement is an unformatted language statement or a formatted statement, if it is a non-formatting language statement, execute step 505, if it is a formatting language statement, execute step 509;
步骤 505~步骤 506: 对用户句子作分词、 问句主干提取、 问句类型 判断、 话题判断等处理, 并根据问句类型和话题判断结果判断用户的意 图是否是通过自然语言执行某种信息查询, 如果是则执行步骤 510, 否 则执行步骤 507;  Step 505 to step 506: performing segmentation, question stem extraction, question type judgment, topic judgment and the like on the user sentence, and determining whether the user's intention is to perform some information inquiry through natural language according to the question type and the topic judgment result. If yes, go to step 510, otherwise go to step 507;
步骤 507~步骤 508: 机器人服务器的用户属性管理单元读取用户属 性给推理引擎单元, 推理引擎单元根据用户语句, 从知识库中查找匹配 的知识点, 并根据话题属性、 问句类型属性、 用户属性等信息生成个性 化应答, 然后执行步骤 514并结束本流程; Step 507 to step 508: The user attribute management unit of the robot server reads the user attribute to the inference engine unit, and the inference engine unit searches for a match from the knowledge base according to the user statement. a knowledge point, and generate a personalized response according to the topic attribute, the question type attribute, the user attribute and the like, and then execute step 514 and end the process;
步骤 509: 判断格式化语句是信息查询、 对话教育或游戏命令, 如 果是信息查询, 则执行步骤 510; 如果是对话教育, 则执行步骤 512; 如果是游戏命令, 则执行步骤 511;  Step 509: determining that the formatted statement is an information query, a dialogue education or a game command, if it is an information query, performing step 510; if it is a dialogue education, executing step 512; if it is a game command, executing step 511;
步骤 510: 机器人服务器的信息查询模块解析用户查询意图, 并从 实用信息数据库中查找, 将查找结果作为应答, 然后执行步骤 514并结 束本流程;  Step 510: The information query module of the robot server parses the user query intent, and searches from the utility information database, and takes the search result as a response, and then executes step 514 and ends the process;
步骤 511: 机器人服务器的游戏模块解析用户的游戏命令, 根据游 戏逻辑推进游戏进行, 并将游戏当前进行结果作为应答。  Step 511: The game module of the robot server parses the user's game command, advances the game according to the game logic, and responds to the current progress of the game.
步骤 512~步骤 513: 机器人服务器将用户教育的对话转发给学习服 务器; 学习服务器将它记录在用户教育数据库中; 机器人服务器将一句 感谢用户教育的话作为应答, 然后执行步骤 514并结束本流程;  Step 512~Step 513: The robot server forwards the dialogue of the user education to the learning server; the learning server records it in the user education database; the robot server responds with a thank-you user education, and then executes step 514 and ends the process;
步骤 514: 机器人服务器将应答直接返回到前端通信系统, 用户最 终收到聊天机器人应答  Step 514: The bot server returns the response directly to the front-end communication system, and the user finally receives the chat bot response.
如图 5所示, 在步骤 502中, 分发服务器采用考虑了负载均衡或业 务特征的分发机制, 例如采用类似于重定向服务器重定向的原则, 根据 用户在使用前端通信工具时使用的帐号 ID (如即时通信工具的帐号 )的 号码段来实现分发。  As shown in FIG. 5, in step 502, the distribution server adopts a distribution mechanism that considers load balancing or service characteristics, for example, adopts a principle similar to redirect server redirection, according to the account ID used by the user when using the front-end communication tool ( The number segment of the instant messaging tool's account number is used for distribution.
在步骤 504处, 为了便于识别, 可以事先与用户约定格式格式化语 句。 例如" tq深圳"表示查询深圳天气, "Q: 你是机器人? A: 是啊, 我 很聪明的。 "表示用户教育对话。机器人服务器的语句目类别识别单元根 据这些事先约定的格式识别格式化语句。  At step 504, in order to facilitate identification, the formatted statement may be agreed with the user in advance. For example, "tq Shenzhen" means to query Shenzhen weather, "Q: Are you a robot? A: Yes, I am very smart." Indicates user education dialogue. The statement object class identification unit of the robot server recognizes the format statement according to these pre-agreed formats.
在步骤 505处, 机器人服务器的自然语言理解单元采用自然语言处 理技术, 对用户输入的自然语言语句进行词法分析、 语法分析、 语义分 析等处理。 At step 505, the natural language understanding unit of the robot server adopts natural language processing technology to perform lexical analysis, grammar analysis, and semantic division on natural language sentences input by the user. Analysis and other processing.
在步骤 506处作判断的原因是: 有些用户习惯采用自然语言而非格 式化语句的方式来查询信息, 例如用户的语句"明天深圳天气如何? ", 这种情况下, 聊天机器人通过自然语言处理后识别出用户真正意图, 处 理过程转入信息查询模块, 进行信息查询的处理。  The reason for the decision at step 506 is: Some users are accustomed to querying information in a natural language rather than a formatted statement, such as the user's statement "What is the weather in Shenzhen tomorrow?" In this case, the chat robot is processed through natural language. After the user's true intention is identified, the process is transferred to the information query module to process the information query.
在步骤 508处, 为了使得聊天机器人具有个性化, 相同的用户问句 能够产生不同的应答, 机器人服务器的推理引擎单元根据用户语句, 从 知识库中查找语义匹配的知识点, 并根据话题属性、 问句类型属性、 用 户属性等信息生成个性化应答。  At step 508, in order to make the chat robot personalized, the same user question can generate different responses, and the inference engine unit of the robot server searches for the semantic matching knowledge points from the knowledge base according to the user statement, and according to the topic attribute, A question type attribute, a user attribute, and the like generate a personalized response.
在步骤 512处, 如果是对话教育格式化语句, 则把用户教育的对话 转发给学习服务器, 并直接返回一个感谢用户教育之类的应答给用户。 学习服务器将用户教育的对话连同用户的 ID—同记录在用户教育数据 库中。  At step 512, if it is a dialog education formatted statement, the user education dialogue is forwarded to the learning server, and a response to the user education is returned directly to the user. The learning server records the user education conversation along with the user's ID—in the user education database.
由于不断有新的用户教育对话加入知识库, 同时不断有知识类社区 沉淀下来的知识加入知识库, 因此学习服务器不断的生成新知识库, 并 且机器人服务器不断的更新知识库。 以上过程由控制服务器通过发送指 令调度完成。  As new user education conversations are added to the knowledge base, and knowledge accumulated by the knowledge community continues to be added to the knowledge base, the learning server continuously generates new knowledge bases, and the robot server constantly updates the knowledge base. The above process is completed by the control server by sending an instruction.
综上所述,在本发明实施例中, 本发明实施例提出的聊天机器人系 统能够带来的有益效果包括:  In summary, in the embodiment of the present invention, the beneficial effects of the chat robot system proposed by the embodiment of the present invention include:
( 1 )本发明实施例提出的聊天机器人可包含多个分发服务器,每个 分发服务器可接多个机器人服务器, 每个机器人服务器功能独立。 应用 本发明实施例以后, 分发服务器根据负载均衡原理控制用户语句的分 发, 分发服务器的数目可以为多个, 每个分发服务器可以接多个机器人 服务器, 每个机器人服务器功能独立, 因此本发明实施例的可扩展性很 高, 尤其适合海量用户。 而且, 本发明实施例还优选包括重定向服务器, 重定向服务器决定由一次会话由哪一个分发服务器作为处理入口, 随后 采用分发服务器作为聊天机器人的一次会话所有用户语句的总入口和 分发器,使得机器人服务器负载基本均衡,并且提高了系统的可扩展性, 使得聊天机器人系统更适合支持海量用户。 (1) The chat bot proposed in the embodiment of the present invention may include a plurality of distribution servers, each of which may be connected to a plurality of bot servers, each of which is functionally independent. After the embodiment of the present invention is applied, the distribution server controls the distribution of the user statement according to the load balancing principle. The number of the distribution servers may be multiple, and each distribution server may be connected to multiple robot servers, and each of the robot servers is functionally independent, and thus the present invention is implemented. The example is very scalable and is especially suitable for a large number of users. Moreover, the embodiment of the present invention preferably further includes a redirect server. The redirect server decides which distribution server is used as the processing entry by one session, and then uses the distribution server as the total portal and distributor of all the user statements of the chat robot in one session, so that the robot server load is basically balanced and the system is expanded. Sexuality makes the chat bot system more suitable for supporting a large number of users.
( 2 )本发明实施例采用知识库文件而不是数据库作为知识点的载 体, 这种知识库文件采用特殊设计的格式更适合推理和生成个性化应 答, 使得聊天机器人更具智能性。  (2) The embodiment of the present invention uses a knowledge base file instead of a database as a carrier of knowledge points. This knowledge base file is more suitable for reasoning and generating personalized responses in a specially designed format, which makes the chat robot more intelligent.
( 3 )本发明实施例根据话题、 问句类型、 用户属性等信息生成个性 化应答, 使得机器人在模仿人类语言方面更加逼真。  (3) The embodiment of the present invention generates a personalized response according to information such as a topic, a question type, a user attribute, and the like, so that the robot is more realistic in imitating the human language.
( 4 )本发明实施例支持信息查询(包括自然语言查询)和人机互动 游戏, 使得用户通过聊天机器人得到更多服务。  (4) The embodiment of the present invention supports information query (including natural language query) and human-computer interactive game, so that the user can get more services through the chat robot.
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的 保护范围。 凡在本发明的精神和原则之内, 所作的任何修改、等同替换、 改进等, 均应包含在本发明的保护范围之内。  The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims

权利要求书 Claim
1、一种聊天机器人系统, 其特征在于, 该系统包括分发服务器和至 少两个机器人服务器, 其中:  A chat robot system, characterized in that the system comprises a distribution server and at least two robot servers, wherein:
分发服务器, 用于接收用户语句, 并根据负载均衡原理将用户语句 分发到相应的机器人服务器;  a distribution server, configured to receive user statements and distribute the user statements to the corresponding robot server according to a load balancing principle;
机器人服务器, 用于响应于用户语句向用户自动反馈答复。  A robot server for automatically feeding back responses to the user in response to a user statement.
2、根据权利要求 1所述的聊天机器人系统, 其特征在于, 所述分发 服务器的数目至少为两个, 该系统进一步包括重定向服务器;  The chat bot system according to claim 1, wherein the number of the distribution servers is at least two, and the system further comprises a redirect server;
重定向服务器, 用于接收用户会话, 并根据该用户的属性信息, 将 用户会话重定向到与所述属性信息相匹配的分发服务器;  a redirecting server, configured to receive a user session, and redirect the user session to a distribution server that matches the attribute information according to the attribute information of the user;
所述与属性信息相匹配的分发服务器, 用于接收该用户会话的用户 语句, 并根据负载均衡原理将用户语句分发到相应的机器人服务器。  The distribution server matching the attribute information is configured to receive a user statement of the user session, and distribute the user statement to the corresponding robot server according to the load balancing principle.
3、根据权利要求 2所述的聊天机器人系统, 其特征在于, 所述用户 的属性信息包括用户的 IP地址和 /或客户端帐号。  The chat bot system according to claim 2, wherein the attribute information of the user includes an IP address of the user and/or a client account number.
4、根据权利要求 1所述的聊天机器人系统, 其特征在于, 所述分发 服务器的数目至少为两个, 该系统进一步包括重定向服务器;  The chat bot system according to claim 1, wherein the number of the distribution servers is at least two, and the system further comprises a redirect server;
重定向服务器, 用于接收用户会话, 并根据负载均衡原理将用户语 句分发到相应的分发服务器;  a redirecting server, configured to receive a user session, and distribute the user statement to a corresponding distribution server according to a load balancing principle;
分发服务器, 用于接收该用户会话的用户语句, 并根据负载均衡原 理进一步将用户语句分发到相应的机器人服务器。  The distribution server is configured to receive the user statement of the user session, and further distribute the user statement to the corresponding robot server according to the load balancing principle.
5、根据权利要求 1所述的聊天机器人系统, 其特征在于, 所述机器 人服务器包括:  The chat robot system according to claim 1, wherein the robot server comprises:
语句目的识别单元, 用于识别用户语句为格式化语句还是非格式化 语句;  a statement purpose identification unit, configured to identify whether the user statement is a formatted statement or an unformatted statement;
格式化语言执行单元, 用于当语句目的识别单元识别出用户语句为 格式化语句时, 执行所述格式化语句; a formatting language execution unit for identifying that the user statement is The formatting statement is executed when the statement is formatted;
自然语言理解单元, 用于当语句目的识别单元识别出用户语句为非 格式化语句时, 对用户语句进行自然语言理解以确定语句属性;  a natural language understanding unit, configured to perform natural language understanding on the user statement to determine a statement attribute when the statement purpose recognition unit recognizes that the user statement is an unformatted statement;
用户属性管理单元, 用于管理用户的属性信息;  a user attribute management unit, configured to manage attribute information of the user;
推理引擎单元, 用于加载知识库, 并根据所述语句属性和用户属性 信息在知识库中进行模式匹配, 确定匹配的反馈答复。  The inference engine unit is configured to load the knowledge base, and perform pattern matching in the knowledge base according to the statement attribute and the user attribute information to determine a matching feedback reply.
6、根据权利要求 5所述的聊天机器人系统, 其特征在于, 所述用户 的属性信息包括: 用户的姓名、 用户的性别、 用户所在城市、 用户爱好 中的任一个或者多于一个的任意组合。  The chat bot system according to claim 5, wherein the attribute information of the user includes: any one of a user's name, a user's gender, a user's city, a user's hobby, or any combination of more than one. .
7、 根据权利要求 5所述的聊天机器人系统, 其特征在于, 所述自然语言理解单元, 用于对用户语句执行下列操作中的任一个 或者多于一个的任意组合以确定语句属性:  The chat bot system according to claim 5, wherein the natural language understanding unit is configured to perform any one of the following operations or any combination of more than one on the user statement to determine a statement attribute:
分词;  Participle;
问句主干提取;  Question stem extraction;
问句类型判断;  Question type judgment;
话题判断。  Topic judgment.
8、根据权利要求 5所述的聊天机器人系统, 其特征在于, 所述机器 人服务器进一步包括备用推理引擎单元,  The chat robot system according to claim 5, wherein said robot server further comprises a standby inference engine unit,
所述备用推理引擎单元, 用于当知识库更新时加载更新的知识库, 并在加载完更新的知识库后与所述推理弓 )擎单元转换功能。  The standby inference engine unit is configured to load an updated knowledge base when the knowledge base is updated, and convert the function with the inference unit after loading the updated knowledge base.
9、根据权利要求 5所述的聊天机器人系统, 其特征在于, 该系统进 一步包括学习服务器, 所述知识库位于学习服务器中;  The chat bot system according to claim 5, wherein the system further comprises a learning server, wherein the knowledge base is located in the learning server;
所述学习服务器, 用于记录用户对话, 并将用户对话转化为知识库 文件格式后保存在知识库中。  The learning server is configured to record a user conversation, and convert the user conversation into a knowledge base file format and save it in the knowledge base.
10、 根据权利要求 9所述的聊天机器人系统, 其特征在于, 该系统 进一步包括审核服务器, 10. The chat robot system according to claim 9, wherein the system Further including an audit server,
所述审核服务器, 用于根据预先设置的知识审核规则对用户对话进 行审核, 并仅将通过审核的用户对话发送到学习服务器。  The audit server is configured to audit the user dialogue according to a preset knowledge review rule, and only send the audited user dialog to the learning server.
11、 根据权利要求 9所述的聊天机器人系统, 其特征在于, 所述知 识库文件格式包括问题部分和应答部分,  11. The chat bot system according to claim 9, wherein the knowledge library file format includes a question portion and a response portion,
问题部分以问句主干的方式保存,应答部分以完整保留的方式保存。 The problem part is saved in the way of the question trunk, and the response part is saved in a complete reservation.
12、根据权利要求 11所述的聊天机器人系统, 其特征在于, 所述格 式化语言执行单元包括: 信息查询模块、 对话教育模块和游戏模块中的 任一个或者多于一个的任意组合, 其中: The chat bot system according to claim 11, wherein the formatting language execution unit comprises: any one of an information query module, a dialog education module, and a game module, or any combination of more than one, wherein:
所述信息查询模块,用于确定信息查询类的格式化语句的反馈答复; 所述对话教育模块,用于确定对话教育类的格式化语句的反馈答复; 所述游戏模块, 用于确定游戏类的格式化语句的反馈答复。  The information query module is configured to determine a feedback reply of the formatted statement of the information query class; the dialog education module is configured to determine a feedback reply of the formatted statement of the dialogue education class; and the game module is configured to determine the game class Feedback reply to the formatted statement.
13、 根据权利要求 1所述的聊天机器人系统, 其特征在于, 所述分发服务器, 用于通过以下通讯方式中的任一种或者多于一种 的任意组合接收用户语句:  The chat bot system according to claim 1, wherein the distribution server is configured to receive a user statement by any one of the following communication methods or any combination of more than one:
通过即时通讯方式接收用户语句;  Receiving user statements by means of instant messaging;
通过电子邮件方式接收用户语句;  Receiving user statements by email;
通过短消息方式接收用户语句。  Receive user statements by short message.
14、 根据权利要求 1所述的聊天机器人系统, 其特征在于, 所述机器人服务器, 用于通过以下通讯方式中的任一种或者多于一 种的任意组合向用户自动反馈答复:  The chat robot system according to claim 1, wherein the robot server is configured to automatically feed back a response to the user by any one of the following communication modes or any combination of more than one:
通过即时通讯方式接收用户语句;  Receiving user statements by means of instant messaging;
通过电子邮件方式接收用户语句;  Receiving user statements by email;
通过短消息方式接收用户语句。  Receive user statements by short message.
15、 根据权利要求 9所述的聊天机器人系统, 其特征在于, 该系统 进一步包括控制服务器, 15. The chat robot system according to claim 9, wherein the system Further including a control server,
所述控制服务器, 用于向机器人服务器和学习服务器发送知识库更 新切换指令;  The control server is configured to send a knowledge base update switching instruction to the robot server and the learning server;
所述学习服务器, 用于在收到知识库更新切换指令后, 将积攒的用 户对话转化为知识库文件格式以更新知识库;  The learning server is configured to convert the accumulated user dialogue into a knowledge base file format to update the knowledge base after receiving the knowledge base update switching instruction;
机器人服务器中的备用推理引擎单元, 用于在收到知识库更新切换 指令后, 加载更新的知识库, 并在加载完更新的知识库后和所述推理引 擎单元转换功能。  An alternate inference engine unit in the robot server is configured to load the updated knowledge base after receiving the knowledge base update switching instruction, and convert the function after the updated knowledge base and the inference engine unit.
16、根据权利要求 15所述的聊天机器人系统, 其特征在于, 控制服 务器定时向机器人服务器和学习服务器发送知识库更新切换指令; 或 所述控制服务器在用户对话积攒到预定程度时向机器人服务器和学 习服务器发送知识库更新切换指令。  The chat robot system according to claim 15, wherein the control server periodically transmits a knowledge base update switching instruction to the robot server and the learning server; or the control server sends the robot session to the robot server when the user dialogue is accumulated to a predetermined degree. The learning server sends a knowledge base update switching instruction.
17、 一种自动聊天方法, 其特征在于, 该方法包括:  17. An automatic chat method, the method comprising:
分发服务器接收用户语句, 并根据负载均衡原理将用户语句分发到 相应的机器人服务器;  The distribution server receives the user statement and distributes the user statement to the corresponding robot server according to the load balancing principle;
机器人服务器响应于用户语句向用户自动反馈答复。  The bot server automatically feeds back the replies to the user in response to the user statement.
18、根据权利要求 17所述的自动聊天方法, 其特征在于, 该方法在 分发服务器接收用户语句之前进一步包括: 接收用户会话请求, 并根据 用户的属性信息, 将用户会话重定向到与所述属性信息相匹配的分发服 务器。  The automatic chat method according to claim 17, wherein the method further comprises: receiving a user session request, and redirecting the user session to the user session according to the attribute information of the user before the distribution server receives the user statement The distribution server whose attribute information matches.
19、根据权利要求 17所述的自动聊天方法, 其特征在于, 该方法在 分发服务器接收用户语句之前进一步包括: 接收用户会话, 并根据负载 均衡原理将用户语句分发到相应的分发服务器。  The automatic chat method according to claim 17, wherein the method further comprises: receiving a user session before the distribution server receives the user statement, and distributing the user statement to the corresponding distribution server according to the load balancing principle.
20、 根据权利要求 17-19中任一项所述的自动聊天方法, 其特征在 于, 所述用户语句为聊天语句、 信息查询问句、 对话教育语句或格式化 命令。 The automatic chat method according to any one of claims 17 to 19, wherein the user statement is a chat statement, an information query question, a dialogue education statement or a format Command.
21、 一种机器人服务器, 其特征在于, 包括:  21. A robot server, comprising:
用户语句接收单元, 用于接收分发服务器根据负载均衡原理所分发 来的用户语句, 并将所述用户语句发送到语句目的识别单元;  a user statement receiving unit, configured to receive a user statement distributed by the distribution server according to a load balancing principle, and send the user statement to a statement destination identification unit;
语句目的识别单元, 用于识别用户语句为格式化语句还是非格式化 语句;  a statement purpose identification unit, configured to identify whether the user statement is a formatted statement or an unformatted statement;
格式化语言执行单元, 用于当语句目的识别单元识别出用户语句为 格式化语句时, 执行所述格式化语句;  a formatting language execution unit, configured to execute the formatting statement when the statement purpose recognition unit recognizes that the user statement is a formatted statement;
自然语言理解单元, 用于当语句目的识别单元识别出用户语句为非 格式化语句时, 对用户语句进行自然语言理解以确定语句属性;  a natural language understanding unit, configured to perform natural language understanding on the user statement to determine a statement attribute when the statement purpose recognition unit recognizes that the user statement is an unformatted statement;
用户属性管理单元, 用于管理用户的属性信息;  a user attribute management unit, configured to manage attribute information of the user;
推理引擎单元, 用于加载知识库, 并根据所述语句属性和用户属性 信息在知识库中进行模式匹配, 确定匹配的反馈答复。  The inference engine unit is configured to load the knowledge base, and perform pattern matching in the knowledge base according to the statement attribute and the user attribute information to determine a matching feedback reply.
22、根据权利要求 21所述的机器人服务器, 其特征在于, 所述自然 语言理解单元, 用于对用户语句执行下列操作中的任一个或者多于一个 的任意组合以确定语句属性:  The robot server according to claim 21, wherein the natural language understanding unit is configured to perform any one of the following operations or any combination of more than one on the user statement to determine a statement attribute:
分词;  Participle;
问句主干提取;  Question stem extraction;
问句类型判断;  Question type judgment;
话题判断。  Topic judgment.
PCT/CN2008/070217 2007-03-30 2008-01-30 A chatting robot system and a method, a device for chatting automatically WO2008119270A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CNA200710090636XA CN101076060A (en) 2007-03-30 2007-03-30 Chatting robot system and automatic chatting method
CN200710090636.X 2007-03-30

Publications (1)

Publication Number Publication Date
WO2008119270A1 true WO2008119270A1 (en) 2008-10-09

Family

ID=38976870

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2008/070217 WO2008119270A1 (en) 2007-03-30 2008-01-30 A chatting robot system and a method, a device for chatting automatically

Country Status (2)

Country Link
CN (1) CN101076060A (en)
WO (1) WO2008119270A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104598445A (en) * 2013-11-01 2015-05-06 腾讯科技(深圳)有限公司 Automatic question-answering system and method
CN107231393A (en) * 2016-03-24 2017-10-03 阿里巴巴集团控股有限公司 A kind of conversation processing method and device
CN109710772A (en) * 2018-11-13 2019-05-03 国云科技股份有限公司 A kind of question and answer library Knowledge Management System and its implementation based on deep learning
CN110462676A (en) * 2017-03-23 2019-11-15 三星电子株式会社 Electronic device, its control method and non-transient computer readable medium recording program performing
US11720759B2 (en) 2017-03-23 2023-08-08 Samsung Electronics Co., Ltd. Electronic apparatus, controlling method of thereof and non-transitory computer readable recording medium
CN116737964A (en) * 2023-08-04 2023-09-12 联想新视界(北京)科技有限公司 Artificial intelligence brain system

Families Citing this family (49)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101076060A (en) * 2007-03-30 2007-11-21 腾讯科技(深圳)有限公司 Chatting robot system and automatic chatting method
CN102737049A (en) * 2011-04-11 2012-10-17 腾讯科技(深圳)有限公司 Method and system for database query
CN102868664B (en) * 2011-07-04 2017-07-14 南京中兴新软件有限责任公司 Service system and service distribution method based on service delivery network
CN103187051A (en) * 2011-12-28 2013-07-03 上海博泰悦臻电子设备制造有限公司 Vehicle-mounted interaction device
CN103686723A (en) * 2012-09-19 2014-03-26 镇江诺尼基智能技术有限公司 System and method for processing complex SMS (short message service) message of mobile customer hotline SMS messaging service hall
CN103684981B (en) * 2012-09-21 2017-12-01 腾讯科技(深圳)有限公司 Instant communication interdynamic method, system and server
CN103078867A (en) * 2013-01-15 2013-05-01 深圳市紫光杰思谷科技有限公司 Automatic chatting method and chatting system among robots
CN103390047A (en) * 2013-07-18 2013-11-13 天格科技(杭州)有限公司 Chatting robot knowledge base and construction method thereof
CN104518951B (en) * 2013-09-29 2017-04-05 腾讯科技(深圳)有限公司 A kind of method and device for replying social networking application information
CN104796313B (en) * 2014-01-20 2020-10-16 腾讯科技(深圳)有限公司 Method and device for accessing third party by automatic conversation tool
CN103736231A (en) * 2014-01-24 2014-04-23 成都万先自动化科技有限责任公司 Fire rescue service robot
US10291597B2 (en) 2014-08-14 2019-05-14 Cisco Technology, Inc. Sharing resources across multiple devices in online meetings
US10542126B2 (en) 2014-12-22 2020-01-21 Cisco Technology, Inc. Offline virtual participation in an online conference meeting
CN104731895B (en) * 2015-03-18 2018-09-18 北京京东尚科信息技术有限公司 The method and apparatus of automatic-answering back device
US20160284011A1 (en) 2015-03-25 2016-09-29 Facebook, Inc. Techniques for social messaging authorization and customization
US9948786B2 (en) 2015-04-17 2018-04-17 Cisco Technology, Inc. Handling conferences using highly-distributed agents
CN105138710B (en) * 2015-10-12 2019-02-19 金耀星 A kind of chat agency plant and method
CN105554154A (en) * 2015-12-31 2016-05-04 广州多益网络科技有限公司 Method and system for dynamically adjusting people flow load balance
CN105824935A (en) * 2016-03-18 2016-08-03 北京光年无限科技有限公司 Method and system for information processing for question and answer robot
CN105930367B (en) * 2016-04-12 2020-06-09 华南师范大学 Intelligent chat robot control method and control device
CN107623620B (en) * 2016-07-14 2021-10-15 腾讯科技(深圳)有限公司 Processing method of random interaction data, network server and intelligent dialogue system
CN106055718B (en) * 2016-07-15 2019-09-27 北京光年无限科技有限公司 A kind of output content filtering method and robot for robot autonomous study
US10592867B2 (en) 2016-11-11 2020-03-17 Cisco Technology, Inc. In-meeting graphical user interface display using calendar information and system
CN107065600A (en) * 2016-11-23 2017-08-18 河池学院 It is a kind of that there is the robot control method for addressing function
CN106557590A (en) * 2016-12-01 2017-04-05 同方知网(北京)技术有限公司 A kind of intelligent Answer System
US10516707B2 (en) 2016-12-15 2019-12-24 Cisco Technology, Inc. Initiating a conferencing meeting using a conference room device
CN106716934B (en) * 2016-12-23 2020-08-04 深圳前海达闼云端智能科技有限公司 Chat interaction method and device and electronic equipment thereof
CN107135143A (en) * 2017-03-27 2017-09-05 厦门快商通科技股份有限公司 Many chat robots switching systems and its dialogue method
US10440073B2 (en) 2017-04-11 2019-10-08 Cisco Technology, Inc. User interface for proximity based teleconference transfer
US10375125B2 (en) 2017-04-27 2019-08-06 Cisco Technology, Inc. Automatically joining devices to a video conference
US10375474B2 (en) 2017-06-12 2019-08-06 Cisco Technology, Inc. Hybrid horn microphone
US10477148B2 (en) 2017-06-23 2019-11-12 Cisco Technology, Inc. Speaker anticipation
CN109145096A (en) * 2017-06-27 2019-01-04 中国海洋大学 The daily robot automatically request-answering system of accompanying and attending to of personalization in rule-based library
US10516709B2 (en) 2017-06-29 2019-12-24 Cisco Technology, Inc. Files automatically shared at conference initiation
US10706391B2 (en) 2017-07-13 2020-07-07 Cisco Technology, Inc. Protecting scheduled meeting in physical room
US10091348B1 (en) 2017-07-25 2018-10-02 Cisco Technology, Inc. Predictive model for voice/video over IP calls
CN110019693B (en) * 2017-07-25 2021-12-24 百度在线网络技术(北京)有限公司 Information recommendation method, server and computer readable medium for intelligent customer service
CN108810187B (en) * 2018-03-01 2021-05-07 赵建文 Network system for butting voice service through block chain
CN108491486B (en) * 2018-03-14 2020-11-24 东软集团股份有限公司 Method, device, terminal equipment and storage medium for simulating patient inquiry dialogue
JP7155605B2 (en) * 2018-05-22 2022-10-19 富士フイルムビジネスイノベーション株式会社 Information processing device and program
CN109033342B (en) * 2018-07-24 2023-01-31 北京京东尚科信息技术有限公司 Service providing method and device applied to service system and service model
CN109271498B (en) * 2018-09-14 2022-02-22 南京七奇智能科技有限公司 Natural language interaction method and system for virtual robot
CN115499395B (en) * 2018-09-29 2024-01-16 创新先进技术有限公司 Social method, device and equipment
CN111901220B (en) * 2019-05-06 2021-12-03 华为技术有限公司 Method for determining chat robot and response system
CN110392446B (en) * 2019-08-22 2021-03-12 珠海格力电器股份有限公司 Method for interaction between terminal and virtual assistant server
US11159457B2 (en) 2019-11-12 2021-10-26 International Business Machines Corporation Chatbot orchestration
CN111178489B (en) * 2019-12-30 2021-02-19 深圳集智数字科技有限公司 Conversation robot engine flow distribution method and device
CN111857880B (en) * 2020-07-23 2022-12-13 中国平安人寿保险股份有限公司 Dialogue configuration item information management method, device, equipment and storage medium
CN115665326A (en) * 2022-10-17 2023-01-31 上海浦东发展银行股份有限公司 Stateless-based robot dialogue method, equipment and medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040094237A (en) * 2003-05-02 2004-11-09 에스케이 텔레콤주식회사 The method for teaching a chatting avatar
US20050015350A1 (en) * 2003-07-15 2005-01-20 Foderaro John K. Multi-personality chat robot
CN1591569A (en) * 2003-07-03 2005-03-09 索尼株式会社 Speech communiction system and method, and robot apparatus
CN1756172A (en) * 2004-09-29 2006-04-05 上海赢思软件技术有限公司 Short message robot system
KR20070008477A (en) * 2006-12-06 2007-01-17 주식회사 아이오. 테크 Motion operable robot chatting system capable of emotion transmission
CN101076060A (en) * 2007-03-30 2007-11-21 腾讯科技(深圳)有限公司 Chatting robot system and automatic chatting method
CN101076061A (en) * 2007-03-30 2007-11-21 腾讯科技(深圳)有限公司 Robot server and automatic chatting method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040094237A (en) * 2003-05-02 2004-11-09 에스케이 텔레콤주식회사 The method for teaching a chatting avatar
CN1591569A (en) * 2003-07-03 2005-03-09 索尼株式会社 Speech communiction system and method, and robot apparatus
US20050015350A1 (en) * 2003-07-15 2005-01-20 Foderaro John K. Multi-personality chat robot
CN1756172A (en) * 2004-09-29 2006-04-05 上海赢思软件技术有限公司 Short message robot system
KR20070008477A (en) * 2006-12-06 2007-01-17 주식회사 아이오. 테크 Motion operable robot chatting system capable of emotion transmission
CN101076060A (en) * 2007-03-30 2007-11-21 腾讯科技(深圳)有限公司 Chatting robot system and automatic chatting method
CN101076061A (en) * 2007-03-30 2007-11-21 腾讯科技(深圳)有限公司 Robot server and automatic chatting method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104598445A (en) * 2013-11-01 2015-05-06 腾讯科技(深圳)有限公司 Automatic question-answering system and method
CN104598445B (en) * 2013-11-01 2019-05-10 腾讯科技(深圳)有限公司 Automatically request-answering system and method
CN107231393A (en) * 2016-03-24 2017-10-03 阿里巴巴集团控股有限公司 A kind of conversation processing method and device
CN110462676A (en) * 2017-03-23 2019-11-15 三星电子株式会社 Electronic device, its control method and non-transient computer readable medium recording program performing
US11720759B2 (en) 2017-03-23 2023-08-08 Samsung Electronics Co., Ltd. Electronic apparatus, controlling method of thereof and non-transitory computer readable recording medium
CN109710772A (en) * 2018-11-13 2019-05-03 国云科技股份有限公司 A kind of question and answer library Knowledge Management System and its implementation based on deep learning
CN116737964A (en) * 2023-08-04 2023-09-12 联想新视界(北京)科技有限公司 Artificial intelligence brain system
CN116737964B (en) * 2023-08-04 2023-11-17 联想新视界(北京)科技有限公司 Artificial intelligence brain system

Also Published As

Publication number Publication date
CN101076060A (en) 2007-11-21

Similar Documents

Publication Publication Date Title
WO2008119270A1 (en) A chatting robot system and a method, a device for chatting automatically
US11030412B2 (en) System and method for chatbot conversation construction and management
CN107943998B (en) Man-machine conversation control system and method based on knowledge graph
US11860913B2 (en) Streaming real-time dialog management
CN107135247B (en) A kind of service system and method for the intelligent coordinated work of person to person's work
CN106649704B (en) Intelligent conversation control method and system
WO2018157700A1 (en) Method and device for generating dialogue, and storage medium
CN106407178B (en) A kind of session abstraction generating method, device, server apparatus and terminal device
CN102163198B (en) A method and a system for providing new or popular terms
CN111090727B (en) Language conversion processing method and device and dialect voice interaction system
CN101076061A (en) Robot server and automatic chatting method
CN105930367B (en) Intelligent chat robot control method and control device
WO2008128423A1 (en) An intelligent dialog system and a method for realization thereof
CN102073704B (en) Text classification processing method, system and equipment
CN112131885A (en) Semantic recognition method and device, electronic equipment and storage medium
CN111813900B (en) Multi-round dialogue processing method and device, electronic equipment and storage medium
CN108306813B (en) Session message processing method, server and client
CN110069606A (en) Man-machine conversation's method, apparatus, electronic equipment and storage medium
CN111178081A (en) Semantic recognition method, server, electronic device and computer storage medium
CN108304561B (en) A kind of semantic understanding method, equipment and robot based on finite data
CN113132214B (en) Dialogue method, dialogue device, dialogue server and dialogue storage medium
CN110795547B (en) Text recognition method and related product
CN111858874A (en) Conversation service processing method, device, equipment and computer readable storage medium
CN113420058B (en) Conversational academic conference recommendation method based on combination of user historical behaviors
CN103064885B (en) One realizes the synchronous input system of multi-key word and method

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 1619/CHENP/2008

Country of ref document: IN

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 08706594

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC DATED 03-02-2010

122 Ep: pct application non-entry in european phase

Ref document number: 08706594

Country of ref document: EP

Kind code of ref document: A1