CN115640386A - Method and apparatus for conducting dialogs based on recommended dialogs - Google Patents
Method and apparatus for conducting dialogs based on recommended dialogs Download PDFInfo
- Publication number
- CN115640386A CN115640386A CN202211047003.1A CN202211047003A CN115640386A CN 115640386 A CN115640386 A CN 115640386A CN 202211047003 A CN202211047003 A CN 202211047003A CN 115640386 A CN115640386 A CN 115640386A
- Authority
- CN
- China
- Prior art keywords
- dialogue
- dialog
- real
- conversation
- time
- Prior art date
- Legal status (The legal status 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 status listed.)
- Granted
Links
Images
Landscapes
- Machine Translation (AREA)
Abstract
本申请提出用于基于推荐话术进行对话的方法和设备。该方法包括:针对实时对话涉及的一个或多个对话主题中的当前对话主题,基于实时对话数据和对话参与者的先验信息从与当前对话主题对应的至少一个推荐话术模板中选择第一推荐话术模板,其中对话主题为实时对话的意图或目的;基于第一推荐话术模板生成对话内容;获取对话参与者针对所生成的对话内容的回复,以及基于回复更新实时对话数据以生成下一对话内容,其中,对话主题和与对话主题对应的至少一个推荐话术模板基于历史对话的历史对话数据确定。
The present application proposes a method and device for dialogue based on recommended utterances. The method includes: for the current dialogue topic among one or more dialogue topics involved in the real-time dialogue, based on the real-time dialogue data and the prior information of the dialogue participants, selecting the first one from at least one recommended speech template corresponding to the current dialogue topic Recommending a speech template, wherein the dialogue topic is the intention or purpose of the real-time dialogue; generating dialogue content based on the first recommended speech template; obtaining responses from dialogue participants to the generated dialogue content, and updating real-time dialogue data based on the reply to generate the following A dialog content, wherein the dialog topic and at least one recommended speech template corresponding to the dialog topic are determined based on historical dialog data of historical dialogs.
Description
技术领域technical field
本申请涉及智能信息交互,更特别地,涉及基于推荐话术进行智能对话的方法、设备和计算机可读介质。The present application relates to intelligent information interaction, and more particularly, to a method, device, and computer-readable medium for intelligent dialogue based on recommended speech techniques.
背景技术Background technique
随着语音识别和语义匹配技术的发展,在与人类用户进行对话时使用对话机器人基于话术推荐算法完成沟通的应用越来越多。常见的智能对话方案往往采用固定的推荐话术,无法实时获得人类用户的对话需求并及时作出反应,使得自动化对话的效果不够理想。With the development of speech recognition and semantic matching technology, there are more and more applications of using dialogue robots to communicate with human users based on speech recommendation algorithms. Common intelligent dialogue solutions often use fixed recommended speech techniques, which cannot obtain the dialogue needs of human users in real time and respond in a timely manner, making the effect of automated dialogue unsatisfactory.
因此,存在对现有的智能对话方案进行改进的需求。Therefore, there is a need to improve existing intelligent dialog solutions.
发明内容Contents of the invention
本申请提出基于历史对话数据中的先验信息和实时对话数据选择推荐话术的方法和设备。The present application proposes a method and device for selecting recommended words based on prior information in historical dialogue data and real-time dialogue data.
根据本申请的一方面,提出一种基于推荐话术进行对话的方法,包括:According to one aspect of the present application, a method for dialogue based on recommended speech is proposed, including:
针对实时对话涉及的一个或多个对话主题中的当前对话主题,基于实时对话数据和对话参与者的先验信息从与当前对话主题对应的至少一个推荐话术模板中选择第一推荐话术模板,其中对话主题用于指示实时对话的意图或目的;For the current dialogue topic among the one or more dialogue topics involved in the real-time dialogue, based on the real-time dialogue data and the prior information of the dialogue participants, a first recommended speech template is selected from at least one recommended speech template corresponding to the current conversation topic , where the conversation topic is used to indicate the intent or purpose of the live conversation;
基于第一推荐话术模板生成对话内容;Generate dialogue content based on the first recommended speech template;
获取对话参与者针对所生成的对话内容的回复,以及基于回复更新实时对话数据以生成下一对话内容,Obtaining responses from dialogue participants to the generated dialogue content, and updating real-time dialogue data based on the responses to generate the next dialogue content,
其中,对话主题和与对话主题对应的至少一个推荐话术模板基于历史对话的历史对话数据确定。Wherein, the dialog topic and at least one recommended utterance template corresponding to the dialog topic are determined based on historical dialog data of historical dialogs.
根据本申请的另一方面,提出一种用于基于推荐话术进行对话的设备,包括:交互单元,被配置为获取实时对话数据以及向对话参与者输出对话内容;以及推荐单元,被配置为针对实时对话涉及的一个或多个对话主题中的当前对话主题,基于实时对话数据和对话参与者的先验信息从与当前对话主题对应的至少一个推荐话术模板中选择第一推荐话术模板,其中对话主题用于指示实时对话的意图或目的;基于第一推荐话术模板生成对话内容;以及获取对话参与者针对所生成的对话内容的回复,以及基于回复更新实时对话数据以生成下一对话内容,According to another aspect of the present application, a device for dialogue based on recommended speech techniques is proposed, including: an interaction unit configured to acquire real-time dialogue data and output dialogue content to dialogue participants; and a recommendation unit configured to For the current dialogue topic among the one or more dialogue topics involved in the real-time dialogue, based on the real-time dialogue data and the prior information of the dialogue participants, a first recommended speech template is selected from at least one recommended speech template corresponding to the current conversation topic , wherein the dialogue topic is used to indicate the intention or purpose of the real-time dialogue; generate the dialogue content based on the first recommended speech template; and obtain the reply of the dialogue participants to the generated dialogue content, and update the real-time dialogue data based on the reply to generate the next conversation content,
其中,对话主题和与对话主题对应的至少一个推荐话术模板基于历史对话的历史对话数据确定。Wherein, the dialog topic and at least one recommended utterance template corresponding to the dialog topic are determined based on historical dialog data of historical dialogs.
根据本申请的又一方面,提出一种计算机可读存储介质,其上存储有计算机程序,该计算机程序包括可执行指令,当该可执行指令被处理器执行时,实施如上所述的方法。According to still another aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored, and the computer program includes executable instructions. When the executable instructions are executed by a processor, the method as described above is implemented.
根据本申请的再一方面,提出一种电子设备,包括处理器;以及存储器,用于存储所述处理器的可执行指令;其中,处理器被配置为执行可执行指令以实施如上所述的方法。According to yet another aspect of the present application, an electronic device is proposed, including a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the executable instructions to implement the above-mentioned method.
本申请所提出的基于推荐话术进行对话的方案,可以结合与对话参与者和对话场景相关联的先验信息以及当前对话的实时对话数据及时准确地获取人类对话参与者的对话需求和反馈信息,选择更合适的推荐话术模板来向对话参与者提问或回复对话参与者的问题,快速从对话中获取对话任务所需的信息,并且在对话任务完成前持续保持与人类对话参与者的良好沟通效果。在即时准确地获取对话者的需求并进行响应的基础上,本申请的方案还可以根据推荐话术模板的对话效果定期返回实时对话数据来更新历史对话数据,迭代更新和改进推荐话术模板数据库,从而获得更优的智能对话效果。The dialogue scheme based on recommended speech techniques proposed in this application can combine the prior information associated with the dialogue participants and dialogue scenes and the real-time dialogue data of the current dialogue to timely and accurately obtain the dialogue needs and feedback information of human dialogue participants , choose a more appropriate recommended speech template to ask or reply to the dialogue participants, quickly obtain the information needed for the dialogue task from the dialogue, and continue to maintain a good relationship with the human dialogue participants until the dialogue task is completed. communication effect. On the basis of instantly and accurately obtaining and responding to the interlocutor's needs, the solution of this application can also periodically return real-time dialogue data to update historical dialogue data according to the dialogue effect of the recommended speech template, and iteratively update and improve the recommended speech template database. , so as to obtain a better intelligent dialogue effect.
附图说明Description of drawings
通过参照附图详细描述其示例性实施例,本申请的上述和其它特征及优点将变得更加明显。The above and other features and advantages of the present application will become more apparent by describing in detail exemplary embodiments thereof with reference to the accompanying drawings.
图1为根据本申请的一个实施例的用于生成推荐话术模板数据库的过程的示意性流程图。Fig. 1 is a schematic flowchart of a process for generating a database of recommended speech templates according to an embodiment of the present application.
图2为根据本申请的一个实施例的用于基于推荐话术进行对话的方法的示意性流程图。Fig. 2 is a schematic flow chart of a method for dialogue based on recommended utterances according to an embodiment of the present application.
图3为根据本申请的一个实施例的用于基于推荐话术进行对话的设备的示意性框图。Fig. 3 is a schematic block diagram of a device for dialogue based on recommended utterances according to an embodiment of the present application.
图4为根据本申请的一个实施例的电子设备的示意性框图。Fig. 4 is a schematic block diagram of an electronic device according to an embodiment of the present application.
具体实施方式Detailed ways
现在将参考附图更全面地描述示例性实施例。然而,示例性实施例能够以多种形式实施,且不应被理解为限于在此阐述的实施方式;相反,提供这些实施方式使得本申请的内容变得全面和完整,并将示例性实施例的构思全面地传达给本领域的技术人员。在图中,为了清晰的目的,可能会夸大部分元件的尺寸或加以变形。在图中相同的附图标记表示相同或类似的结构,因而将省略它们的详细描述。Exemplary embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many forms and should not be construed as limited to the embodiments set forth herein; rather, these The concepts of are fully conveyed to those skilled in the art. In the drawings, the size of some elements may be exaggerated or deformed for clarity. The same reference numerals in the drawings denote the same or similar structures, and thus their detailed descriptions will be omitted.
此外,所描述的特征、结构或特性可以以任何合适的方式结合在一个或更多实施例中。在下面的描述中,提供许多具体细节从而给出对本申请的实施例的充分理解。然而,本领域技术人员将意识到,可以实践本申请的技术方案而没有所述特定细节中的一个或更多,或者可以采用其它的方法、元件等。在其它情况下,不详细示出或描述公知结构、方法或者操作以避免模糊本申请的各方面。Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided in order to give a thorough understanding of the embodiments of the application. However, those skilled in the art will appreciate that the technical solutions of the present application may be practiced without one or more of the specific details, or that other methods, elements, etc. may be employed. In other instances, well-known structures, methods, or operations are not shown or described in detail to avoid obscuring aspects of the application.
本申请所提出的基于话术推荐算法的智能对话方案可以应用于多种智能对话场景。例如,在智能招聘场景中,招聘方首先向公众或特定候选人群发送关于招聘职位的招聘信息(例如招聘广告等),人力资源专员(HR)在与候选人进行电话或面对面的对话或沟通前,可以使用诸如对话机器人的智能对话系统与候选人进行初步沟通,从而尽可能获得招聘所需的候选人信息以及候选人对招聘职位的需求和看法。因此,可以将智能招聘中的自动化对话作为补充候选人信息和进行候选人与招聘职位之间的初步匹配和筛选的手段。再例如,在诸如智能处理报修和投诉的智能客户服务场景中,为了减少客服专员的工作压力并提高服务的准确性和专业性,可以使用智能对话系统先与用户进行初步沟通并引导用户准确描述报修信息或投诉内容,以便找到能够解决问题的专业人员。甚至可以通过智能对话系统解决用户的客户服务需求而减少客服专员的工作负担。另外,智能对话系统还可以用于识别用户的情绪,妥善解决用户的需求并提高用户的沟通体验。The intelligent dialogue solution based on the speech skill recommendation algorithm proposed in this application can be applied to various intelligent dialogue scenarios. For example, in a smart recruitment scenario, the recruiter first sends recruitment information (such as job advertisements, etc.) about the job to the public or a specific group of candidates. , You can use an intelligent dialogue system such as a dialogue robot to conduct initial communication with candidates, so as to obtain the candidate information required for recruitment as well as the candidate's needs and views on the recruitment position as much as possible. Therefore, automated dialogue in intelligent recruitment can be used as a means of supplementing candidate information and performing preliminary matching and screening between candidates and recruiting positions. For another example, in intelligent customer service scenarios such as intelligent handling of repair reports and complaints, in order to reduce the work pressure of customer service specialists and improve the accuracy and professionalism of services, an intelligent dialogue system can be used to communicate with users first and guide users to describe accurately Repair information or complaint content, in order to find professionals who can solve the problem. It is even possible to solve the customer service needs of users through the intelligent dialogue system and reduce the workload of customer service specialists. In addition, the intelligent dialogue system can also be used to identify the user's emotions, properly address the user's needs and improve the user's communication experience.
智能对话场景根据其目的可以包括闲聊类型,任务类型和其他对话类型的对话场景。本申请涉及的基于推荐话术的对话方案需要在对话场景中尽可能地从人类对话参与者获取与对话主题相关联的信息,属于任务类型的智能对话场景。在实时对话过程中,至少包括两个对话参与方,一方是人类对话参与者(例如智能招聘场景中的候选人,或者智能客服场景中的用户或顾客),另一方是基于推荐话术模板生成对话内容来向人类对话参与者提问或回答人类对话参与者的问题的智能对话系统(例如对话机器人)。实时对话过程也可以包括更多的参与方。在本文中,对话参与者专指与智能对话系统进行对话沟通的人类对话参与者,即智能对话系统的对话方。The intelligent dialogue scene may include chatting type, task type and other dialogue type dialogue scenes according to its purpose. The dialog scheme based on recommended speech involved in this application needs to obtain as much information as possible from human dialog participants associated with the dialog topic in the dialog scenario, which belongs to the intelligent dialog scenario of the task type. In the real-time dialogue process, at least two dialogue participants are included, one is a human dialogue participant (such as a candidate in a smart recruitment scenario, or a user or customer in a smart customer service scenario), and the other is generated based on a recommended speech template An intelligent dialogue system (such as a dialogue robot) that uses dialogue content to ask questions of human dialogue participants or answer questions from human dialogue participants. The real-time dialog process can also include more parties. In this paper, the dialogue participant specifically refers to the human dialogue participant who communicates with the intelligent dialogue system, that is, the dialogue partner of the intelligent dialogue system.
在本申请所提及的智能招聘场景的先验信息指与对话参与者相关的信息和与智能对话场景相关的信息。对话参与者相关的信息可以表征对话参与者自身的属性。例如,在智能招聘场景中,候选人的简历信息可以是先验信息中与对话参与者(候选人)自身相关的信息部分,招聘信息(例如招聘广告)则是先验信息中与对话场景相关的信息部分。候选人可以在智能招聘的自动化对话过程之前已经向招聘方发送简历,假设该简历数据已经发送给智能对话系统。在智能客服场景中,用户在与智能对话系统对话之前已经通过调查问卷或模板以电子化方式提交了关于故障描述和投诉内容的初步信息作为先验信息。The prior information of the intelligent recruitment scenario mentioned in this application refers to the information related to the dialogue participants and the information related to the intelligent dialogue scenario. The information related to the dialogue participants can represent the attributes of the dialogue participants themselves. For example, in an intelligent recruitment scenario, the candidate’s resume information can be the information part of the prior information related to the dialogue participant (candidate) himself, and the recruitment information (such as a job advertisement) is the part of the prior information related to the dialogue scene information section of the . The candidate may have sent the resume to the recruiter before the automated dialogue process of the intelligent recruitment, assuming that the resume data has been sent to the intelligent dialogue system. In the intelligent customer service scenario, the user has electronically submitted preliminary information about the fault description and complaint content as prior information through a questionnaire or template before talking to the intelligent dialogue system.
先验信息和历史对话的历史对话数据二者中的至少一项用于生成由智能对话系统使用的默认推荐话术模板数据库。先验信息和历史对话数据可以具有多种数据类型。例如,诸如候选人简历的先验信息可以是纸质简历,也可以是在招聘方提供的网页界面或移动程序(APP)获取的数字化简历数据。纸质简历等非数字化信息可以通过数字化处理转换为数字数据。还可以将不同的数字化数据的类型转换为智能对话系统所需的特定类型的数字化数据。例如,包括人类对话参与者之间的对话(例如HR与候选人之间的电话或面对面面试数据)或者智能对话系统与人类对话参与者之间的对话的历史对话数据通常是录制的语音或视频数据,也可以是对语音或视频数据进行处理的文本或图像数据,那么可以将图形、图像或语音/视频数据转换为文本数据以供系统分析和使用。At least one of the prior information and the historical dialog data of the historical dialog is used to generate a default recommended utterance template database used by the intelligent dialog system. Prior information and historical dialogue data can be of various data types. For example, the prior information such as a candidate's resume may be a paper resume, or it may be digital resume data acquired through a web interface or a mobile program (APP) provided by the recruiter. Non-digital information such as paper resumes can be converted into digital data through digital processing. It is also possible to convert different types of digitized data into specific types of digitized data required by the intelligent dialogue system. For example, historical conversation data that includes conversations between human conversation participants (such as phone calls or face-to-face interview data between HR and candidates) or conversations between intelligent conversation systems and human conversation participants is often recorded voice or video Data can also be text or image data that processes voice or video data, then graphics, images, or voice/video data can be converted into text data for system analysis and use.
在任务类型的智能对话场景中,可以根据场景需求设定默认的对话流程。在对话流程中,智能对话系统需要向人类对话参与者提问以获取对话任务期望获取的足够信息。同时,智能对话系统也要根据人类对话参与者提出的问题给出对应的回复,满足人类对话参与者获取信息的对等需求。以智能招聘场景为例,智能对话系统(对话机器人)的角色相当于人类HR,在对话中需要完成人类HR在面试过程中所实施的提问候选人以及答复候选人询问的任务。In intelligent dialogue scenarios of task type, the default dialogue process can be set according to the scene requirements. In the dialogue process, the intelligent dialogue system needs to ask questions to the human dialogue participants to obtain enough information expected from the dialogue task. At the same time, the intelligent dialogue system should also give corresponding responses according to the questions raised by the human dialogue participants, so as to meet the peer-to-peer needs of the human dialogue participants to obtain information. Taking the intelligent recruitment scenario as an example, the role of the intelligent dialogue system (dialogue robot) is equivalent to that of human HR. During the dialogue, human HR needs to complete the tasks of asking candidates and answering candidate inquiries during the interview process.
在对话过程中,对话机器人可能需要针对至少一个议题与候选人进行对话。在此,实时对话过程中的一个或多个议题是对话场景中的对话主题,也可以称为对话意图,用于指示该对话的意图或目的。例如在智能招聘场景下,先由对话机器人代替HR针对每个对话主题向候选人(对话参与者)提问或在每个对话节点由机器人(HR)先提问,等待候选人回复后视该对话主题期望获取的信息的获取程度和候选人的状态,继续该对话主题下的再次提问,或等待候选人向对话机器人提问以及给出针对性的回复。在此,对话节点的概念也可以称为主题节点或意图节点,是用于获取与某个对话主题相关的信息的对话时机或环节,其包括与该对话主题对应的来自对话机器人和/或候选人的一个或多个提问和相应回复。因此,每个对话节点中可由对话机器人使用的提问类型或回答类型的推荐话术模板的数量是一个或更多个。多个推荐话术模板用于解决单次提问不足以获取所有与该对话主题相关的信息,或者用于针对该对话主题提问或回复时使用推荐话术模板生成的对话内容被候选人否定时而需要更换推荐话术模板再次生成对话内容的情况。During the conversation, the chatbot may need to talk to the candidate on at least one topic. Here, one or more topics in the real-time dialogue process are dialogue topics in the dialogue scene, which may also be called dialogue intent, and are used to indicate the intention or purpose of the dialogue. For example, in an intelligent recruitment scenario, a dialogue robot replaces HR to ask candidates (dialogue participants) questions about each dialogue topic, or a robot (HR) asks questions at each dialogue node first, and waits for the candidate to reply before viewing the dialogue topic. Depending on the degree of information expected to be obtained and the status of the candidate, continue to ask questions again under the topic of the dialogue, or wait for the candidate to ask the dialogue robot a question and give a targeted reply. Here, the concept of a dialog node can also be called a topic node or an intent node, which is a dialog opportunity or link used to obtain information related to a certain dialog topic, which includes information from the dialog robot and/or candidate nodes corresponding to the dialog topic. One or more questions and corresponding responses from a person. Therefore, the number of question-type or answer-type recommended utterance templates that can be used by the dialogue robot in each dialogue node is one or more. Multiple recommended speech templates are used to solve the problem that a single question is not enough to obtain all the information related to the conversation topic, or when the conversation content generated by using the recommended speech template is rejected by the candidate when asking or replying to the conversation topic. Replace the recommended speech template to generate the dialogue content again.
如果当前的对话主题所期望获取的所有信息都已获取并且候选人也没有需要进一步向对话机器人提问的问题,则针对该对话主题的实时对话环节结束,对话过程进入下一对话主题,也就是说当前的实时对话进入下一对话主题的对话节点。否则,实时对话仍然处于当前的对话节点。If all the information expected by the current dialogue topic has been obtained and the candidate has no further questions to ask the dialogue robot, the real-time dialogue session for this dialogue topic ends, and the dialogue process enters the next dialogue topic, that is to say The current real-time dialogue enters the dialogue node of the next dialogue topic. Otherwise, the real-time dialog remains at the current dialog node.
如上所述,智能对话场景的默认对话流程可以由对话节点分为针对一个或多个对话主题的一个或多个对话环节组成。智能对话系统(对话机器人)针对对话所涉及的一个或多个对话主题中的当前对话主题,在相应对话节点中基于当前对话主题的实时对话数据和与对话参与者相关的先验信息,选择推荐话术模板生成对话内容完成对对话参与者的提问或答复。在各个对话节点中重复执行对每个对话主题的对话环节,直至所有对话主题所期望获取的信息都被获得,或者该对话在满足预设终止条件的情况下被智能对话系统或对话参与者终止。As mentioned above, the default dialogue flow of the intelligent dialogue scene may be divided into one or more dialogue links for one or more dialogue topics by dialogue nodes. The intelligent dialogue system (dialogue robot) selects and recommends one or more dialogue topics involved in the dialogue based on the real-time dialogue data of the current dialogue topic and the prior information related to the dialogue participants in the corresponding dialogue node. The speech template generates dialogue content to complete questions or answers to dialogue participants. Repeat the dialog link for each dialog topic in each dialog node until all the desired information of the dialog topic is obtained, or the dialog is terminated by the intelligent dialog system or the dialog participants when the preset termination conditions are met .
根据本申请的实施例,与人类对话参与者的对话过程通常采用语音或视频方式进行,但是基于推荐话术生成对话内容的技术通常采用基于文本数据的算法或模型。因此,在对话机器人向对话参与者提问或回复后者的提问时,可以将生成的对话内容(即来自智能对话系统/对话机器人的历史对话数据或实时对话数据)转化为语音数据或信息。对应地,获取来自人类对话参与者的回复或提问(即来自对话参与者的历史对话数据或实时对话数据)时,可以将音频/视频数据转化为文本数据。文本数据与音频/视频数据之间存在数据格式的双向转换。According to the embodiment of the present application, the dialogue process with human dialogue participants is usually carried out in the form of voice or video, but the technology for generating dialogue content based on recommended words usually adopts an algorithm or model based on text data. Therefore, when the dialogue robot asks the dialogue participants or replies to the latter's questions, the generated dialogue content (that is, historical dialogue data or real-time dialogue data from the intelligent dialogue system/dialogue robot) can be converted into voice data or information. Correspondingly, when obtaining replies or questions from human dialogue participants (that is, historical dialogue data or real-time dialogue data from dialogue participants), the audio/video data can be converted into text data. There is a two-way conversion of data formats between text data and audio/video data.
下文中参照附图1至3以智能招聘场景中的对话机器人与人类候选人之间的招聘对话过程为例介绍本申请的方案。本领域技术人员将理解,该实施例仅仅是示例性的,而不是对本申请方案的保护范围的限制。The solution of this application will be introduced below by taking the recruitment dialogue process between a dialogue robot and a human candidate in an intelligent recruitment scene as an example with reference to accompanying drawings 1 to 3 . Those skilled in the art will understand that this embodiment is only exemplary, rather than limiting the protection scope of the scheme of the present application.
本申请的基于推荐话术进行对话的方法首先结合历史对话的历史对话数据和/或先验信息生成默认的推荐话术模板数据库,然后在实时对话过程中基于实时对话数据和先验信息选择推荐话术模板以实时生成对话内容。同时,可以定期或在满足预设条件时返回实时对话过程的实时对话数据来离线训练并更新默认的推荐话术模板数据库从而实现推荐话术的闭环迭代更新。The method for dialogue based on recommended speech skills of the present application first generates a default recommended speech template database based on historical dialogue data and/or prior information of historical dialogues, and then selects recommendations based on real-time dialogue data and prior information during the real-time dialogue process Speech templates to generate dialogue content in real time. At the same time, the real-time dialogue data of the real-time dialogue process can be returned periodically or when the preset conditions are met to train offline and update the default recommended speech template database to achieve closed-loop iterative update of recommended speech.
图1示出默认推荐话术模板数据库的生成和更新过程。本领域技术人员将理解,在首次使用对话机器人进行智能招聘对话(也可以称为智能对话系统的冷启动)时,可以根据过往记录的(例如人类HR与候选人之间的)将音频或视频数据处理为文本形式的历史对话的历史对话数据,生成初版的默认推荐话术模板数据库。在使用默认推荐话术模板数据库生成的推荐话术进行智能对话后,可以将不断记录的实时对话的实时对话数据作为新的历史对话数据101加入历史对话数据集合中,更新以获得新版本的推荐话术模板数据库。Figure 1 shows the process of generating and updating the default recommended speech template database. Those skilled in the art will understand that when using a dialogue robot for an intelligent recruitment dialogue for the first time (also referred to as a cold start of an intelligent dialogue system), audio or video The data is processed into the historical dialogue data of the historical dialogue in the form of text, and the first version of the default recommended speech template database is generated. After using the recommended speech skills generated by the default recommended speech template database for intelligent dialogue, the real-time dialogue data of the continuously recorded real-time dialogue can be added to the historical dialogue data collection as new
采用默认推荐话术生成算法的默认推荐话术模板数据库的过程主要包括从历史对话数据中提取对话主题,对话标签和历史对话语料的步骤S110,确定槽位以及对应关系的步骤S120,以及移除历史对话语料中的内容项以生成默认推荐话术模板数据库的步骤S130。The process of using the default recommended speech generation algorithm for the default recommended speech template database mainly includes the step S110 of extracting the conversation topic, the conversation label and the historical conversation data from the historical conversation data, the step S120 of determining the slot and the corresponding relationship, and removing The step S130 is to generate a default recommended speech template database through content items in the historical dialogue data.
在步骤S110中,使用诸如无监督聚类的聚类和关键词捞取等算法对HR和候选人在历史对话中提出过的问题和对应的答复进行提取和总结,获得招聘对话场景下的相关对话主题,与对话主题相关的对话标签以及与对话主题对应的历史对话语料。In step S110, use algorithms such as unsupervised clustering and keyword mining to extract and summarize the questions and corresponding answers raised by HR and candidates in historical dialogues, and obtain relevant dialogues in the recruitment dialogue scene Topics, conversation tags related to conversation topics, and historical conversation materials corresponding to conversation topics.
在默认的对话流程中,一般以对话的某一方的提问开始,然后是另一方的回复。因此,从(历史或实时)对话数据中提取相关数据和信息需要检测历史对话数据或实时对话数据中的当前对话内容的类型,即对话内容是来自提问的对话参与方(历史对话中可以是提问的HR或候选人,智能对话过程的实时对话中可以是对话机器人或候选人)还是来自回答的对话参与方(历史对话中可以是提问的HR或候选人,智能对话过程的实时对话中可以是对话机器人或候选人)。在本文中,以提问类型和回答类型来区分实时对话的对话类型。在对话过程中,候选人对HR或对话机器人的提问可以给出包括具体信息的回复,也可以针对诸如询问倾向性意见的提问给出肯定或否定的回复以表示候选人是否同意来自HR或对话机器人的相关询问。通常HR或对话机器人在收到候选人的肯定或非否定回复表示刚才所提出的问题中需要确认的信息都得到验证,但是在收到否定回复则说明这些需要确认的信息中的至少一项是不正确或是候选人否定的。同时,否定回复也可能表明对话方(候选人)对本次对话过程的对话主题或当前的实时对话内容并不感兴趣或存在负面情绪。在人类对话过程中,HR还可以针对刚才的否定回复,向候选人给出诸如招聘信息(例如工作内容、薪资福利、工作时间等)的介绍性对话内容以引起候选人的注意或扭转其负面情绪,从而将对话保持到本次对话结束。介绍性对话内容通常采用介绍性话术类型的模板,其本质上仍然是上一提问或回复的修正性的对话内容,因此可以将介绍性对话内容归类到与上一提问或回复的实时对话相同的对话类型,例如仍然认定为提问类型或回答类型的对话内容。In the default dialogue flow, it usually starts with a question from one party to the dialogue, followed by a reply from the other party. Therefore, extracting relevant data and information from (historical or real-time) dialogue data needs to detect the type of the current dialogue content in the historical dialogue data or real-time dialogue data, that is, the dialogue content is from the dialogue participant who asks the question (in the historical dialogue, it can be a question In the real-time dialogue of the intelligent dialogue process, it can be a dialogue robot or candidate) or from the answering dialogue participant (in the historical dialogue, it can be the HR or candidate who asked the question, in the real-time dialogue of the intelligent dialogue process, it can be conversational bot or candidate). In this paper, the dialogue types of real-time dialogues are distinguished by question types and answer types. During the dialogue, the candidate can give a reply including specific information to questions from HR or the dialogue robot, and can also give affirmative or negative responses to questions such as asking for tendentious opinions to indicate whether the candidate agrees to come from HR or the dialogue Bot-related inquiries. Usually, when HR or the dialogue robot receives a positive or non-negative reply from the candidate, it means that the information that needs to be confirmed in the question just raised has been verified, but if it receives a negative reply, it means that at least one of the information that needs to be confirmed is Incorrect or Candidate Negative. At the same time, a negative reply may also indicate that the interlocutor (candidate) is not interested in or has negative emotions in the conversation topic of the conversation process or the current real-time conversation content. In the process of human dialogue, HR can also give introductory dialogue content to candidates such as recruitment information (such as job content, salary benefits, working hours, etc.) in response to the negative reply just now, so as to attract the candidate's attention or reverse its negative emotions, thereby maintaining the conversation until the end of this conversation. The content of the introductory dialogue usually adopts the template of the introductory speech type, which is still the revised dialogue content of the previous question or reply in essence, so the content of the introductory dialogue can be classified as a real-time dialogue with the previous question or reply The same dialogue type, such as dialogue content that is still considered a question type or an answer type.
从历史对话数据(以及下文描述的实时对话数据)中提取信息时,需要从记录的连续语音或视频数据中分离出属于提问类型或回复类型的由提问方或回复方给出的完整对话数据。这种由同一对话参与方输出的完整连续的一次提问或回复所涵盖的完整对话数据被称为对话数据中的对话语料,作为对话过程的最小对话单位。对话语料可以包括一个或多个语句,甚至是包括具有多个语句的一个或多个语段。对话语料可以通过相关的语音识别算法从包括连续语音或视频数据(以及由其转换的连续文本类型的对话数据)中准确地分割出来。例如,可以通过识别对话数据是否由同一对话方输出,或者识别对话数据中的语气词(例如疑问词)和/或标点符号(例如句号或问号)来确定一个完整的对话语料。通常,在对话双方甚至多方进行交互中,由同一对话方连续输出的多个问句可以从对话数据中分割为同一对话语料。When extracting information from historical dialogue data (and real-time dialogue data described below), it is necessary to separate the complete dialogue data given by the questioning party or the replying party belonging to the question type or reply type from the recorded continuous voice or video data. The complete dialogue data covered by a complete and continuous question or reply output by the same dialogue participant is called the dialogue material in the dialogue data, which is the smallest dialogue unit of the dialogue process. A dialogue material may include one or more sentences, or even include one or more paragraphs with multiple sentences. Dialogue materials can be accurately segmented from continuous speech or video data (and converted from continuous text-type dialogue data) through relevant speech recognition algorithms. For example, a complete dialogue material can be determined by identifying whether the dialogue data is output by the same dialogue partner, or identifying modal particles (such as interrogative words) and/or punctuation marks (such as periods or question marks) in the dialogue data. Usually, in the interaction between two parties or even multiple parties in a dialogue, multiple questions continuously output by the same dialogue party can be divided into the same dialogue data from the dialogue data.
在对话语料分割完成后,可以分别针对提问类型和回答类型的两种不同的对话语料的集合,使用诸如无监督类型的聚类算法进行对话语料聚类,将对话语料划分到不同主题的类中,并确定每个主题类的名称,即该类中的对话语料所涉及的对话主题,从而确定历史对话数据中所涉及的一个或多个对话主题以及该对话主题下的历史对话语料。该步骤用于确定对话过程中需要有哪几大类问题需要与候选人沟通,并且每类问题的主题是什么。由于分别对提问类型和回答类型的两种不同类型的对话语料集合进行聚类,因此在属于同一对话主题类下的历史对话语料中分为提问类型的历史对话语料(提问类型历史对话数据)和回答类型的历史对话语料(回答类型历史对话数据),这种分类方式便于后续的推荐话术模板的生成和使用。After the dialogue material segmentation is completed, the dialogue material can be clustered using an unsupervised clustering algorithm for two different sets of dialogue material of question type and answer type, and the dialogue material can be divided into different topic categories. , and determine the name of each topic category, that is, the dialogue topics involved in the dialogue materials in this class, so as to determine one or more dialogue topics involved in the historical dialogue data and the historical dialogue materials under the dialogue topics. This step is used to determine which categories of questions need to be communicated with candidates during the dialogue process, and what is the theme of each category of questions. Since the two different types of dialogue material collections of question type and answer type are clustered respectively, the historical dialogue materials belonging to the same dialogue theme category can be divided into historical dialogue materials of question type (question type historical dialogue data) and Answer type historical dialogue data (answer type historical dialogue data), this classification method facilitates the generation and use of subsequent recommended speech templates.
对于智能招聘对话场景,聚类后的对话主题可以包括工作内容,薪资福利,工作时间,晋升机制等。其中,薪资福利可以进一步细分为保险和薪资两个对话主题。在聚类中,可以将涉及诸如四险一金和五险一金等主题的历史对话语料都聚类为保险的对话主题类,将涉及年薪、月薪、时薪、奖金等的历史对话语料都聚类为薪资的对话主题类。例如,询问工作内容或询问候选人对工作内容满意度的提问类型的历史对话语料,以及回复候选人的工作内容问题的回答类型的历史对话语料都属于工作内容的对话主题类。For intelligent recruitment dialogue scenarios, the clustered dialogue topics can include job content, salary and benefits, working hours, promotion mechanism, etc. Among them, salary and benefits can be further subdivided into two dialogue topics, insurance and salary. In clustering, the historical dialogue materials involving topics such as four insurances and one housing fund and five insurances and one housing fund can be clustered into insurance dialogue topic categories, and historical dialogue materials involving annual salary, monthly salary, hourly salary, bonus, etc. Conversation topic classes clustered into payroll. For example, historical dialogue materials of the question type asking about job content or candidates’ satisfaction with the job content, and historical dialogue materials of the answer type responding to candidates’ job content questions all belong to the dialogue topic category of job content.
对于聚类后的对话主题以及每个对话主题的类中的历史对话语料,使用关键词捞取算法提取与该对话主题相关的至少一个对话标签。对话标签用于表征对话主题的各个维度的属性,相当于对话主题或意图的关键词。例如,对于保险的对话主题,可以提取五险一金和四险一金作为相应的对话标签。例如,与工作时间相关的对话主题中,相关的对话标签可以包括时间相关的关键词和其他相关的高频关键词等。For the clustered conversation topics and the historical conversation data in each conversation topic class, at least one conversation label related to the conversation topic is extracted using a keyword harvesting algorithm. Dialogue labels are used to characterize the attributes of each dimension of the dialogue topic, which is equivalent to the keywords of the dialogue topic or intent. For example, for the dialogue topic of insurance, five insurances and one housing fund and four insurances and one housing fund can be extracted as corresponding dialogue tags. For example, in a conversation topic related to working time, related conversation tags may include time-related keywords and other related high-frequency keywords.
步骤S110将经过聚类和关键词捞取的历史对话数据转换为具有对应的对话主题和相关对话标签的历史对话语料集合组成的历史对话语料库。本申请的历史对话语料库在获得更新的历史对话数据后可以再次执行聚类和关键词捞取算法来更新对话主题、相关的对话标签以及对应的历史对话语料,从而为默认的推荐话术模板数据库的更新提供数据支持。Step S110 converts the historical dialogue data obtained through clustering and keywords into a historical dialogue corpus consisting of a collection of historical dialogue materials with corresponding dialogue topics and related dialogue labels. After obtaining updated historical dialogue data, the historical dialogue corpus of this application can perform clustering and keyword retrieval algorithms again to update dialogue topics, related dialogue labels, and corresponding historical dialogue materials, so as to be the default recommended speech template database. The update provides data support.
接下来,在步骤S120中,针对聚类和关键词捞取结果,利用NER(命名实体识别,Named Entity Recognition)和RE(Relation Extractio,关系抽取)算法提取和识别历史对话语料中的与对话标签相关的实体。实体指示用于从提问类型和回答类型二者的历史对话语料中移除的槽位的内容和位置。进一步,可以通过NER确定和提取槽位,以及通过RE算法确定槽位与对话标签的对应关系。Next, in step S120, for the results of clustering and keyword extraction, use NER (Named Entity Recognition) and RE (Relation Extractio, relationship extraction) algorithms to extract and identify the dialogue tags in the historical dialogue materials. entity. The entity indicates the content and location of the slot for removal from the historical conversation corpus for both the question type and the answer type. Further, the slot can be determined and extracted through NER, and the corresponding relationship between the slot and the dialogue label can be determined through the RE algorithm.
NER算法可以识别历史对话语料(提问或回答类型)中由对话标签指代的对话语料中的实体。实体是与对话标签对应或指代的内容项,可以是字符串形式的文本数据。将这些实体从历史对话语料中移除,获得历史对话语料中与对话标签对应的槽位。The NER algorithm can identify entities in the historical dialogue material (question or answer type) in the dialogue material referred to by the dialogue label. An entity is a content item corresponding to or referred to by a dialog tag, and may be text data in the form of a character string. These entities are removed from the historical dialogue data, and the slots corresponding to the dialogue labels in the historical dialogue data are obtained.
RE算法用于找到槽位在历史对话语料中的上下文关系。上下文关系包括指代关系和修饰关系。例如,对于对话标签A,NER算法确定对话标签A在历史对话语料中的对应槽位A1和A2之后,由RE算法找到槽位A1与A2的上下文关系。指代关系包括A1指代A2或A2指代A1,修饰关系包括A1修饰A2或A2修饰A1。可以通过RE算法确定的上下文关系找到与对话标签A对应的槽位。The RE algorithm is used to find the context of the slot in the historical dialogue data. Contextual relations include referential relations and modification relations. For example, for the dialog tag A, after the NER algorithm determines the corresponding slots A1 and A2 of the dialog tag A in the historical dialog data, the RE algorithm finds the context relationship between the slots A1 and A2. The reference relationship includes A1 referring to A2 or A2 referring to A1, and the modification relationship includes A1 modifying A2 or A2 modifying A1. The slot corresponding to the dialog label A can be found through the context determined by the RE algorithm.
因此,可以通过NER提取对话语料中的对话标签对应的槽位,并且通过RE算法确定槽位与对话标签的对应关系。根据本申请的实施例,槽位的确定和槽位与对话标签之间的对应关系都针对同一对话主题类下的属于同一对话类型的历史对话语料进行,使得根据槽位生成的推荐话术模板具有相同对话主题和对话类型的属性。这种筛选机制只在同一对话主题和同一对话类型的对话语料中标记对话标签,只对固定的上下文关系确定与对话标签对应的槽位,其作用在于可以更方便准确地生成推荐话术模板,减少计算负担。例如,对于候选人不接受诸如倒班的工作时间安排的情况下的推荐话术,可以只在不接受工作时间的历史对话语料中寻找推荐话术模板,从而提高话术推荐的准确性和效率。Therefore, the slots corresponding to the dialog tags in the dialog data can be extracted through NER, and the corresponding relationship between the slots and the dialog tags can be determined through the RE algorithm. According to the embodiment of the present application, the determination of the slot and the corresponding relationship between the slot and the dialogue label are all carried out for the historical dialogue materials belonging to the same dialogue type under the same dialogue topic category, so that the recommended speech template generated according to the slot Properties with the same conversation topic and conversation type. This screening mechanism only marks the dialogue tags in the dialogue material of the same dialogue topic and the same dialogue type, and only determines the slot corresponding to the dialogue label for a fixed context relationship. Its role is to generate recommended speech templates more conveniently and accurately. Reduce computational burden. For example, for candidates who do not accept work schedules such as shifts, the recommended script templates can be found only in the historical dialogue materials that do not accept working hours, thereby improving the accuracy and efficiency of the script recommendation.
确定的槽位可以由业务专家复核,辅助核查历史对话语料中的槽位设置是否符合语言习惯。The determined slots can be reviewed by business experts to assist in checking whether the slot settings in the historical dialogue data conform to the language habits.
在步骤S130中,基于确定的槽位移除历史对话语料中的相应实体(内容项)以形成待填充的槽位,从而将历史对话语料转换为推荐话术模板。这样,从历史对话语料库生成具有槽位的默认的推荐话术模板数据库。推荐话术模板数据库中不仅包括推荐话术模板,还包括推荐话术模板所对应的对话主题,对话类型,以及与对话主题相关的对话标签以及对话标签与槽位的对应关系。In step S130, the corresponding entity (content item) in the historical dialogue material is removed based on the determined slot to form a slot to be filled, thereby converting the historical dialogue material into a recommended speech template. In this way, a default recommended speech template database with slots is generated from the historical dialogue corpus. The recommended speech template database includes not only the recommended speech templates, but also the dialogue topics and dialogue types corresponding to the recommended speech templates, as well as the dialogue labels related to the dialogue topics and the correspondence between dialogue labels and slots.
所生成的默认推荐话术模板的示例如下:An example of the generated default recommended speech template is as follows:
如果候选人针对关于工作时间的提问给出否定回复,即不接受诸如倒班的工作时间制度,则生成的默认推荐话术模板可以是:“看到您____相关的工作经验,相信您也能理解服务行业的时间几乎都是这样,但是我们能确保____,倒班的话上班时间就比较灵活,刚好有时间可以做一些其他的事情。虽然我们的上班时间比较早,但是也是在____点左右上班,下午____点就下班。其实晚班也是下午____点开始上班,一般也就上到____点左右。而且看到您现在也是居住在:____,我们的工作地点也是就近分配,减少通勤时间和难度,您可以综合考虑一下?”其中下划线为与工作时间的对话主题相关的对话标签对应的槽位。If the candidate gives a negative reply to the question about working hours, that is, does not accept the working hours system such as shift work, the default recommended speech template generated can be: "Seeing your ____ related work experience, I believe you also I can understand that the time in the service industry is almost the same, but we can ensure that ____, the working hours are more flexible when shifting shifts, just have time to do other things. Although our working hours are relatively early, it is also in ____ Go to work around 10:00, and leave work at ____ in the afternoon. In fact, the evening shift also starts to work at ____ in the afternoon, and usually goes up to around ____. And I see that you are also living in: ____, our working place It is also allocated nearby to reduce commuting time and difficulty, can you give it a comprehensive consideration?" The underline is the slot corresponding to the conversation label related to the conversation topic during working hours.
如果在后续过程中将来自实时对话的实时对话数据作为历史对话数据101的更新数据,可以再次实施步骤S110至S130,获得更新的默认推荐话术模板数据库。根据本申请的实施例,所更新的默认推荐话术模板数据库中,不仅包括更新的推荐话术模板,还包括经过再次聚类后的更新对话主题,与更新对话主题相关的对话标签,该对话主题类下的更新历史对话语料,以及包括更新的槽位设置以及槽位与对话标签的对应关系。If the real-time dialog data from the real-time dialog is used as the update data of the
图2示出根据本申请的实施例的用于基于推荐话术进行对话的方法的示意性流程。Fig. 2 shows a schematic flow of a method for dialogue based on recommended speech according to an embodiment of the present application.
方法流程主要包括针对当前实时对话涉及的一个或多个对话主题中的当前对话主题,基于实时对话数据和对话参与者的先验信息选择推荐话术模板以便实时生成对话内容的步骤S210和获取对话参与者(例如候选人)针对所生成的对话内容的回复,基于该回复更新实时对话数据以便为智能对话系统(例如对话机器人)实时生成下一对话内容的步骤S220。The method flow mainly includes the step S210 of selecting a recommended speech template based on the real-time dialogue data and the prior information of the dialogue participants for the current dialogue topic among one or more dialogue topics involved in the current real-time dialogue so as to generate the dialogue content in real time and acquiring the dialogue content. A step S220 of updating real-time dialogue data based on the responses of the participants (such as candidates) to the generated dialogue content so as to generate the next dialogue content in real time for the intelligent dialogue system (such as a dialogue robot).
例如,步骤S210可以针对诸如学历、年龄、毕业时间等对话主题,分别在对应的对话节点处提问候选人,获取或确认候选人学历、年龄、毕业时间等信息。具体地,步骤S210首先在子步骤S211中根据当前对话主题确定实时对话的对话类型,例如提问类型和回答类型。从实时对话数据确定对话类型的过程与上文中参照图1介绍的从历史对话数据中确定对话类型的过程类似,在此不再详述。For example, step S210 may ask candidates at corresponding dialogue nodes for dialogue topics such as education background, age, and graduation time, and obtain or confirm information such as the candidate's education background, age, and graduation time. Specifically, in step S210, firstly, in substep S211, the dialogue type of the real-time dialogue is determined according to the current dialogue topic, such as question type and answer type. The process of determining the dialogue type from the real-time dialogue data is similar to the process of determining the dialogue type from the historical dialogue data introduced above with reference to FIG. 1 , and will not be described in detail here.
接下来,在子步骤S212中从实时对话数据和先验信息中提取与当前对话主题的实时对话相关的对话标签(也称为实时对话标签)。对话标签主要来自与实时对话内容相关的对话标签(对话内容标签)201和与先验信息相关的对话标签(先验对话标签),其中与先验信息相关的对话标签进一步包括来自与对话参与者相关的对话标签(对话参与者标签)202和与智能对话场景相关的对话标签(对话场景标签)203。这些对话标签组合形成与当前实时对话相关的实时对话标签。Next, in sub-step S212 , the conversation tags (also referred to as real-time conversation tags) related to the real-time conversation of the current conversation topic are extracted from the real-time conversation data and prior information. Dialogue labels mainly come from dialogue labels related to real-time dialogue content (dialog content labels) 201 and dialogue labels related to prior information (priori dialogue labels), wherein the dialogue labels related to prior information further include information from dialogue participants Related dialog tags (dialogue participant tags) 202 and dialog tags (dialogue scene tags) 203 related to intelligent dialog scenarios. These dialog tags are combined to form a real-time dialog tag related to the current real-time dialog.
对话内容标签201是从实时对话内容中提取的对话标签。对话内容标签201可以是在当前的对话主题相关的对话标签中选择的对话标签,其中主题相关的对话标签在图1所示的生成默认推荐话术模板数据库的过程中已经通过关键词捞取算法预先确定。例如,在当前对话节点的对话主题为薪资时,与薪资主题相关的对话标签包括当前薪资、期望薪资、毕业时间等。因此,可以从实时对话内容中提取当前薪资、期望薪资和毕业时间等相关信息项作为对话内容标签201。The
如上文所述,在智能招聘对话场景下,与对话参与者相关的对话参与者标签202来自候选人的简历信息,因此对话参与者标签202也可以称为候选人标签。可以使用诸如聚类的简历解析算法基于在智能招聘对话前获取的简历信息获取对话参与者标签202。简历解析算法可以提取简历信息中的候选人相关信息项作为候选人标签。简历信息可以是结构化形式或非结构化形式的简历数据。相比结构化形式,简历解析算法可以对非结构化的简历数据进行处理生成结构化简历数据,从其中提取诸如候选人的姓名、年龄、学历、期望工作地点(例如城市、地区),当前工作地点(例如城市、地区),期望工作类别,当前工作类别,工作经历等信息项作为候选人标签。As mentioned above, in the intelligent recruitment dialog scenario, the dialog participant tags 202 related to the dialog participants come from the candidate's resume information, so the dialog participant tags 202 may also be called candidate tags. Conversation participant labels 202 may be obtained based on resume information obtained prior to the smart recruiting dialogue using a resume parsing algorithm such as clustering. The resume parsing algorithm can extract candidate-related information items in the resume information as candidate labels. Resume information can be resume data in structured or unstructured form. Compared with structured forms, resume parsing algorithms can process unstructured resume data to generate structured resume data, from which to extract information such as the candidate's name, age, education, expected work location (such as city, region), current job Location (such as city, region), expected job category, current job category, work experience and other information items are used as candidate labels.
与对话场景相关的对话场景标签203则与智能对话场景相关,例如智能招聘对话的对话场景标签203是招聘信息。在智能招聘场景下,对话场景相关的对话场景标签203通过诸如聚类的招聘解析算法从先前发布的招聘信息中提取,因此也可以称为招聘信息标签。如果招聘方的业务面较广并且市场分布较大(例如全国性企业),则在全国每个市场区域的薪资福利、工作内容和工作时间都存在区别。招聘解析算法可以从不同区域的招聘信息中提取与本次智能招聘对话的对话主题最相关的信息作为对话场景标签203。可以预先建立招聘信息数据库,每个招聘广告中的招聘信息来自招聘信息数据库中的一部分,其中招聘信息标签可以选自招聘信息库中的招聘信息标签的集合。招聘信息标签例如可以包括待招聘岗位的工作内容,工作时间,工作地点,工作类别,工作薪资和福利等。The
在实际使用中,相当部分的招聘广告格式统一,都是诸如“工作内容:xxx,工作时间:xxx”的形式,此时将相应信息项对应的内容项抽取就可以获得招聘信息标签。如果不是通过数字化方式发布招聘广告,则可以通过OCR识别算法对统一样式的非数字化招聘广告(例如图片格式的招聘海报)进行文本识别获取关于招聘信息的文本数据,再利用NER和RE算法提取相关的招聘信息标签,即对话场景标签203。实际上,在预先获取的候选人的简历信息是非数字化格式时,也可以通过类似的方式获取文本数据形式的简历信息以进一步提取候选人标签。In actual use, quite a few job advertisements have a unified format, such as "job content: xxx, working hours: xxx". At this time, the job information label can be obtained by extracting the content item corresponding to the corresponding information item. If the job advertisements are not issued digitally, you can use the OCR recognition algorithm to perform text recognition on non-digital job advertisements in a uniform style (such as job posters in image format) to obtain text data about the job information, and then use NER and RE algorithms to extract relevant information. The recruitment information tag, that is, the
与对话内容标签201类似,在简历信息解析和招聘信息解析中一般仅针对在图1所示的生成默认推荐话术模板数据库的过程中已经通过关键词捞取算法预先确定的对话标签中提取对话参与者标签202和对话场景标签203,其目的在于使用包括实时对话内容的对话标签、候选人标签、招聘信息标签来匹配推荐话术模板时尽量获取与当前对话节点所关注的对话主题相关的信息。Similar to the
获取对话内容标签201、对话参与者标签202和对话场景标签203后,可以进行数据对齐操作,将与对话内容、对话参与者和对话场景相关的对话标签(即,对话内容标签,对话参与者标签和对话场景标签)合并为与实时对话相关的对话标签(实时对话标签),得到截止当前的实时对话的最新最全面的个性化信息。上述组合操作不需要进行聚类,因为聚类操作用于预先生成默认推荐话术模板数据库和/或从简历信息和招聘信息中提取候选人标签和招聘信息标签,在实时对话过程中为了提高推荐效率和速度,仅提取和更新每个对话节点中的当前对话的实时对话数据相关的对话内容标签201。After obtaining the
接下来,在子步骤S213中从默认的推荐话术模板数据库中选择与当前对话主题的对话需求或目的最匹配的推荐话术模板来生成对话机器人要输出给人类候选人的对话内容。可以根据与实时对话相关的实时对话标签与默认的推荐话术模板数据库中的多个推荐话术模板的槽位的匹配程度确定当前最优的推荐话术模板。可以计算经过数据对齐操作后获取的个性化信息中的对话内容标签201、对话参与者标签202和对话场景标签203中的所有对话标签与默认的推荐话术模板数据库中的所有模板的槽位的对应关系的匹配程度。例如,对于当前对话的个性化信息中的所有对话标签,以默认的推荐话术模板中包括的槽位数量为准,与这些对话标签具有对应关系的槽位的数量——即能够用这些对话标签分别填充的相应槽位的数量——占该推荐话术模板的槽位的总数量的比值作为匹配率或匹配程度对所有模板进行排序。可以选择匹配率最高的推荐话术模板作为当前对话的实时对话的最优模板。例如,如果推荐话术模板1可以填充其中80%数量的槽位,而推荐话术模板2可以填充其中100%数量的槽位,则选择推荐话术模板2作为当前实时对话的推荐话术模板,称为第一推荐话术模板或最优推荐话术模板。在确定匹配率时,可以仅基于对话标签与槽位之间的对应关系,而不使用槽位之间的上下文关系。Next, in sub-step S213 , select the recommended speech template that best matches the dialogue requirement or purpose of the current conversation topic from the default recommended speech template database to generate the dialogue content that the dialogue robot will output to human candidates. The currently optimal recommended speech template can be determined according to the degree of matching between the real-time conversation tag related to the real-time conversation and the slots of multiple recommended speech templates in the default recommended speech template database. The relationship between all the dialog tags in the
在子步骤S214中,从候选人的个性化信息的对话内容标签201、对话参与者标签202和对话场景标签203中选择与在子步骤S213中确定的第一推荐话术模板中的槽位具有对应关系的那些对话标签填充到相应槽位中,生成完整的对话语料作为对话机器人在实时对话中向候选人输出的对话内容。In sub-step S214, from the
在步骤S220中,可以在子步骤S221生成并输出针对候选人的对话内容后,获取候选人对该对话内容的回复。回复可以是针对提问中的信息询问提供进一步具体信息,也可以是针对提问中的信息询问的肯定或否定的回复或确认。In step S220, after the dialog content for the candidate is generated and output in sub-step S221, the candidate's reply to the dialog content may be acquired. The reply may be to provide further specific information for the information inquiry in the question, or may be an affirmative or negative reply or confirmation for the information inquiry in the question.
如果在子步骤S222中判断对话参与者的回复是否定回复或者包括否定回复(分支“是”),证明在步骤S210中生成的对话内容并未获得预期的话术推荐效果而产生候选人的否定回复。方法进行到子步骤S224,针对当前对话主题在对话节点中再次基于对话内容标签201、对话参与者标签202和对话场景标签203从推荐话术模板数据库中选择对应对话类型的另一推荐话术模板生成下一对话内容。If it is judged in the sub-step S222 that the dialogue participant's reply is a negative reply or includes a negative reply (branch "yes"), it proves that the dialogue content generated in the step S210 has not obtained the expected speech recommendation effect and produces a negative reply of the candidate . The method proceeds to sub-step S224, in the dialog node for the current dialog topic, select another recommended speech template corresponding to the dialog type from the recommended speech template database based on the
如上文所述,否定回复说明需要确认的信息中的至少一项是不正确的,或者表明候选人对本次对话过程的内容或当前对话的实时对话内容并不感兴趣或存在负面的情绪。可以将这种否定回复视为包括负面或否定信息的实时对话数据,其中否定信息是对刚才生成的对话内容中所涉及的信息的否定或反向信息或数据。该否定信息示出至少在个性化信息中与实时对话相关的对话内容标签201需要进行更新和变动。在有些情况下,可能提问中的信息还涉及对候选人的简历信息和/或招聘信息中的内容的确认,则否定回复也可能对当前的实时对话的对话参与者标签202和对话场景标签203造成影响。As mentioned above, a negative reply indicates that at least one of the information to be confirmed is incorrect, or indicates that the candidate is not interested in the content of the current dialogue process or the real-time dialogue content of the current dialogue or has negative emotions. Such a negative reply can be regarded as real-time dialogue data including negative or negative information, wherein the negative information is negative or reverse information or data to the information involved in the dialogue content just generated. The negative information shows that at least in the personalized information, the
更新了个性化信息中的对话内容标签201、对话参与者标签202和对话场景标签203之后,在子步骤S224中从默认推荐话术模板数据库中再次选择与当前对话的对话需求最匹配的推荐话术模板来生成对话机器人要输出给人类候选人的新的对话内容。此时,最适合的推荐话术模板可以通过选择先前的匹配率排名中具有不同匹配率的推荐话术模板作为新的推荐话术模板,即第二推荐话术模板。第二推荐话术模板可以具有相比第一推荐话术模板较低的匹配率,例如在匹配率排名中具有第二高的匹配率。也可以基于其他标准选择新的推荐话术模板。根据本申请的实施例,由于否定回复更新了个性化信息从而获得了新的实时对话相关的对话标签集合,因此也可以使用新的对话标签集合(例如,新的实时对话标签)重新确定所有对话标签与默认推荐话术模板数据库中的所有模板的槽位的对应关系的匹配程度。After updating the
确定第二推荐话术模板之后,在子步骤S225中将对话标签填充到第二推荐话术模板中的槽位生成新的对话内容并再次在子步骤S221中获取候选人对该新的对话内容的回复。After the second recommended speech template is determined, in substep S225, the dialog tags are filled into the slots in the second recommended speech template to generate new dialog content and in substep S221, candidates are again acquired for the new dialog content reply.
例如,在工作时间相关的对话主题中,候选人对对话机器人输出的工作时间相关的提问不满意而给出否定回复时,新生成的提问类型的对话内容可以进一步是:For example, in the dialogue topic related to working hours, when the candidate is dissatisfied with the working hours-related questions output by the dialogue robot and gives a negative reply, the newly generated dialogue content of the question type can further be:
“您是不满意早班制度、晚班制度还是整个倒班制度?”"Are you dissatisfied with the morning shift system, the evening shift system or the entire shift system?"
候选人的回复会作为实时对话相关的标签信息在数据对齐操作被保留。相应的,根据候选人的简历信息可以解析出与几个关键对话标签相关的内容,例如:当前居住城市是否与应聘城市一致、期待工作城市是否与当前应聘城市一致、是否有餐饮相关工作经验等。同时可以从候选人投递的岗位相关的招聘信息中找到具体的上下班时间信息相关的对话标签。Candidate replies are retained during data alignment operations as real-time dialog-related label information. Correspondingly, according to the candidate's resume information, the content related to several key conversation tags can be analyzed, such as: whether the current city of residence is consistent with the city of application, whether the city of expected work is consistent with the city of current application, whether there is work experience related to catering, etc. . At the same time, the conversation tags related to the specific commuting time information can be found from the post-related recruitment information submitted by the candidates.
然后,如果候选人应聘的城市与其当前居住城市相同,有相关工作经验,不满意早班,则基于第二推荐话术模板生成的对应对话内容可以是:“看到您有相关的工作经验,相信您也能理解这种工作时间制度。并且虽然我们的上班时间比较早,但是也是在6、7点左右上班,下午3、4点就下班,可以早点回去休息,而且看到您现在也是居住在:上海,与应聘城市一致,我们的工作地点也是就近分配,减少通勒时间和难度,您可以综合考虑一下”。Then, if the candidate applies for the same city as his current residence, has relevant work experience, and is dissatisfied with the morning shift, the corresponding dialogue content generated based on the second recommended speech template can be: "Seeing that you have relevant work experience, I believe you can also understand this kind of working hours system. And although our working hours are relatively early, we also go to work around 6 or 7 o'clock, and get off work at 3 or 4 pm. You can go back to rest earlier, and I see that you are also living In: Shanghai , which is the same as the applicant city, and our work location is also assigned nearby, which reduces the time and difficulty of the job, you can think about it comprehensively.”
根据本申请的实施例,可以设置针对同一对话主题的对话节点中重复收到来自候选人的否定回复的应对策略。例如,当连续两次收到否定回复后,由机器人结束本次智能对话过程而结束面试。According to an embodiment of the present application, a strategy for repeatedly receiving negative replies from candidates in a dialog node of the same dialog topic may be set. For example, after receiving negative replies twice in a row, the robot ends the intelligent dialogue process and ends the interview.
如果子步骤S222中的判断对话参与者的回复不是否定回复(分支“否”),证明在步骤S210中生成的对话内容获得了预期推荐效果,能够从候选人的回复中获取相关具体信息或得到候选人对所询问的问题内容的确认。接下来,在子步骤S223中将本次对话内容的回复作为新的对话数据来更新实时对话数据,方法回到子步骤S211,由对话机器人再次针对当前对话主题或下一对话主题提问候选人。If it is judged in sub-step S222 that the reply of the dialogue participant is not a negative reply (branch "no"), it proves that the dialogue content generated in step S210 has obtained the expected recommendation effect, and relevant specific information can be obtained from the candidate's reply or obtained. Acknowledgment by the candidate of the content of the question asked. Next, in sub-step S223, the reply of the current dialogue content is used as new dialogue data to update the real-time dialogue data, and the method returns to sub-step S211, and the dialogue robot asks the candidate about the current dialogue topic or the next dialogue topic again.
可见,每个对话节点中的实时对话中,针对每个提问环节和回复环节都要运行推荐话术确定算法,生成专用于候选人的实时对话内容。It can be seen that in the real-time dialogue in each dialogue node, the recommended speech skills determination algorithm must be run for each question link and reply link to generate real-time dialogue content dedicated to candidates.
方法还可以在每次使用对话机器人进行智能对话后,根据候选人作出的肯定或否定的回复(接受或不接受),在子步骤S226中将候选人表示接受的肯定回复涉及的实时对话数据的记录回传给图1所示的默认推荐话术模板数据库的生成和更新过程,对算法模型进行迭代升级,形成闭环更新。肯定回复的实时对话数据所形成的新的历史对话数据101实际上相当于经过校验的正确推荐话术样本,可以提高算法模型的性能。The method can also use the dialogue robot to conduct an intelligent dialogue each time, according to the affirmative or negative reply (accepted or not accepted) made by the candidate, in substep S226, the real-time dialogue data involved in the affirmative reply that the candidate expresses acceptance The records are sent back to the generation and update process of the default recommended speech template database shown in Figure 1, and the algorithm model is iteratively upgraded to form a closed-loop update. The new
在使用对话机器人完成智能对话的同时,也可以保留人工服务。通过统计各种类型的候选人对于推荐话术的对话内容的接受程度,对于基于推荐话术模板所生成的对话内容的接受程度不满足预设条件的那些类型的候选人,可以不断补充针对该类型候选人的人工对话数据,重新运行默认的推荐话术模板数据库生成算法来更新该类型的候选人的专有模板数据库。预设条件例如可以是针对某类型的候选人的涉及相应对话类型、对话主题等的对话内容的接受程度低于整体推荐话术的接受程度的平均值。其中,候选人的类型可以包括基于候选人的当前居住城市(例如住在本地的候选人和住在外地的候选人),是否是应届毕业生等特征划分的类型。根据不同候选人类型的话术推荐结果和相关参数(例如在话术推荐中出现的高频关键词)的统计数据,可以找到与候选人的类型相对应的特定对话标签,还可以找到与该特定对话标签对应的模板中的特定槽位,从而针对该类型的候选人更新基于历史对话数据生成的对话语料数据库以及相应的对话标签和槽位等。While using conversational bots to complete intelligent conversations, human services can also be retained. By counting the acceptance degree of various types of candidates for the dialogue content of the recommended speech, for those types of candidates whose acceptance of the dialogue content generated based on the recommended speech template does not meet the preset conditions, it can be continuously supplemented. For the artificial dialogue data of candidates of this type, re-run the default recommended speech template database generation algorithm to update the proprietary template database of candidates of this type. The preset condition may be, for example, that for a certain type of candidate, the acceptance degree of the dialogue content related to the corresponding dialogue type, dialogue topic, etc. is lower than the average acceptance degree of the overall recommended speech skills. Wherein, the types of candidates may include types based on the candidate's current city of residence (for example, candidates living locally and candidates living in other places), whether they are fresh graduates, and other characteristics. According to the statistical data of speech recommendation results of different candidate types and related parameters (such as high-frequency keywords appearing in speech recommendation), specific conversation tags corresponding to the candidate type can be found, and specific conversation tags corresponding to the specific speech tags can also be found. The specific slot in the template corresponding to the dialogue label, so as to update the dialogue material database generated based on the historical dialogue data and the corresponding dialogue label and slot for this type of candidate.
现有的话术推荐方案通常使用过往的对话数据甚至基于人工构造的对话模板确定推荐话术模板,而且在生成推荐话术模板后不再更新,因此无法在每个对话节点中根据实时对话内容选择最匹配的推荐话术模板,也无法基于闭环自动更新推荐话术模板数据库。Existing speech recommendation schemes usually use past dialogue data or even artificially constructed dialogue templates to determine recommended speech templates, and the recommended speech templates are not updated after generation, so it is impossible to use real-time dialogue content in each dialogue node Select the most matching recommended speech template, and the database of recommended speech templates cannot be automatically updated based on the closed loop.
相比之下,本申请所提出的基于推荐话术进行对话的方案,可以结合与对话参与者和对话场景相关联的先验信息以及当前对话的实时对话数据及时准确地获取人类对话参与者的对话需求和反馈信息,选择更合适的推荐话术模板来向对话参与者提问或回复对话参与者的问题,快速从对话中获取对话任务所需的信息,并且在对话任务完成前持续保持与人类对话参与者的良好沟通效果。在即时准确地获取对话者的需求并进行响应的基础上,本申请的方案还可以根据推荐话术模板的对话效果定期返回实时对话数据来更新历史对话数据,迭代更新和改进推荐话术模板数据库,从而获得更优的智能对话效果。In contrast, the scheme for dialogue based on recommended speech skills proposed in this application can combine the prior information associated with the dialogue participants and dialogue scenes, as well as the real-time dialogue data of the current dialogue, to obtain the real-time and accurate information of human dialogue participants in a timely and accurate manner. Dialogue requirements and feedback information, select a more appropriate recommended speech template to ask or reply to the dialogue participants, quickly obtain the information required for the dialogue task from the dialogue, and continue to maintain communication with humans until the dialogue task is completed Good communication between the dialogue participants. On the basis of instantly and accurately obtaining and responding to the interlocutor's needs, the solution of this application can also periodically return real-time dialogue data to update historical dialogue data according to the dialogue effect of the recommended speech template, and iteratively update and improve the recommended speech template database. , so as to obtain a better intelligent dialogue effect.
图3示出根据本申请的实施例的用于基于推荐话术进行对话的设备300。该设备300可以包括交互单元310和推荐单元320。Fig. 3 shows a
交互单元310用于获取智能对话系统(例如对话机器人)与诸如候选人的人类对话参与者301之间的当前对话的实时对话数据,以及向对话参与者301输出根据推荐话术算法生成的对话内容。交互单元310还可以将对话机器人提供给对话参与者301的文本数据格式的对话内容转换为对话参与者301可听或可视的音频/视频数据,以及将来自对话参与者301的音频(例如语音)或视频(例如实时视频聊天)格式的数据转换为设备300的推荐单元320可以处理的文本数据。交互单元310还可以包括促进与人类对话参与者301进行对话交流的显示单元或输入单元等,其中显示单元用于向对话参与者301提供与实时对话有关的信息或提示,输入单元可以为对话参与者301提供除了语音或视频外的其他信息输入途径。交互单元310还可以以网页或App的形式提供交互界面。The
推荐单元320用于针对当前对话包括的一个或多个对话主题中的当前对话主题,基于实时对话数据和对话参与者301的先验信息从默认的推荐话术模板数据库中选择与当前对话主题对应的最匹配的(第一)推荐话术模板;基于所选择的推荐话术模板生成对话内容;获取对话参与者301针对所生成的对话内容的回复并基于回复更新实时对话数据以视情况生成下一对话内容。例如,当对话参与者301的回复是非否定回复时,确认所生成的对话内容是准确适合的。在提取回复中所包含的实时对话数据中的信息的同时,判断当前的对话主题所需的信息是否已经完全获取,并基于该判断决定是否继续在当前对话主题的对话节点中继续向对话参与者301提问或回答其提出的问题,还是进入下一对话主题对应的对话节点。如果得到来自对话参与者301的否定回复,则可以确定刚才生成的对话内容是不准确的或对话参与者301对当前对话的实时对话内容并不感兴趣。相应地,基于该否定回复包含的否定信息或数据选择(第二)推荐话术模板,生成更准确和合适的对话内容。推荐单元320还可以完成如上文结合图1所述的基于历史对话数据生成默认推荐话术模板数据库的功能,以及完成结合图2所述的生成实时对话内容的其他步骤和细节部分的功能等。The
应当注意,尽管在上文详细描述中提及了用于基于推荐话术进行对话的设备和系统的若干模块或者单元,但是这种划分并非强制性的。实际上,根据本申请的实施方式,上文描述的两个或更多模块或者单元的特征和功能可以在一个模块或者单元中具体化。反之,上文描述的一个模块或者单元的特征和功能可以进一步划分为由多个模块或者单元来具体化。作为模块或单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本申请的方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。It should be noted that although several modules or units of the device and system for dialogue based on recommended utterances are mentioned in the above detailed description, this division is not mandatory. Actually, according to the embodiment of the present application, the features and functions of two or more modules or units described above may be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided to be embodied by a plurality of modules or units. Components shown as modules or units may or may not be physical units, may be located in one place, or may be distributed over multiple network elements. Part or all of the modules can be selected according to actual needs to realize the purpose of the solution of the present application. It can be understood and implemented by those skilled in the art without creative effort.
在本申请的示例性实施例中,还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序包括可执行指令,该可执行指令被例如处理器执行时可以实现上述任意一个实施例中所述用于基于推荐话术进行对话的方法的步骤。在一些可能的实施方式中,本申请的各个方面还可以实现为一种程序产品的形式,其包括程序代码,当所述程序产品在终端设备上运行时,所述程序代码用于使所述终端设备执行本说明书用于基于推荐话术进行对话的方法中描述的根据本申请各种示例性实施例的步骤。In an exemplary embodiment of the present application, there is also provided a computer-readable storage medium, on which a computer program is stored, the program includes executable instructions, and when the executable instructions are executed by, for example, a processor, any one of the above-mentioned The steps of the method for conducting dialogue based on the recommended words described in the embodiments. In some possible implementation manners, various aspects of the present application can also be implemented in the form of a program product, which includes program code, and when the program product is run on a terminal device, the program code is used to make the The terminal device executes the steps according to various exemplary embodiments of the present application described in the method for conducting a dialogue based on recommended speech in this specification.
根据本申请的实施例的用于实现上述方法的程序产品可以采用便携式紧凑盘只读存储器(CD-ROM)并包括程序代码,并可以在终端设备,例如个人电脑上运行。然而,本申请的程序产品不限于此,在本文件中,可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。The program product for implementing the above method according to the embodiment of the present application may adopt a portable compact disk read-only memory (CD-ROM) and include program codes, and may run on a terminal device such as a personal computer. However, the program product of the present application is not limited thereto. In this document, a readable storage medium may be any tangible medium containing or storing a program, and the program may be used by or in combination with an instruction execution system, device, or device.
所述程序产品可以采用一个或多个可读介质的任意组合。可读介质可以是可读信号介质或者可读存储介质。可读存储介质例如可以为但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。The program product may reside on any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: electrical connection with one or more conductors, portable disk, hard disk, random access memory (RAM), read only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
所述计算机可读存储介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了可读程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。可读存储介质还可以是可读存储介质以外的任何可读介质,该可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。可读存储介质上包含的程序代码可以用任何适当的介质传输,包括但不限于无线、有线、光缆、RF等等,或者上述的任意合适的组合。The computer readable storage medium may include a data signal carrying readable program code in baseband or as part of a carrier wave traveling as a data signal. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A readable storage medium may also be any readable medium other than a readable storage medium that can send, propagate or transport a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the readable storage medium may be transmitted by any suitable medium, including but not limited to wireless, cable, optical cable, RF, etc., or any suitable combination of the above.
可以以一种或多种程序设计语言的任意组合来编写用于执行本申请操作的程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、C++等,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算设备上部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。Program codes for performing the operations of the present application may be written in any combination of one or more programming languages, including object-oriented programming languages—such as Java, C++, etc., as well as conventional procedural programming languages. Programming language - such as "C" or a similar programming language. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server to execute. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., using an Internet service provider). business to connect via the Internet).
在本申请的示例性实施例中,还提供一种电子设备,该电子设备可以包括处理器,以及用于存储所述处理器的可执行指令的存储器。其中,所述处理器配置为经由执行所述可执行指令来执行上述任意一个实施例中的用于基于推荐话术进行对话的方法的步骤。In an exemplary embodiment of the present application, there is also provided an electronic device, which may include a processor, and a memory for storing executable instructions of the processor. Wherein, the processor is configured to execute the steps of the method for conducting a dialogue based on recommended words in any one of the above embodiments by executing the executable instructions.
所属技术领域的技术人员能够理解,本申请的各个方面可以实现为系统、方法或程序产品。因此,本申请的各个方面可以具体实现为以下形式,即:完全的硬件实施方式、完全的软件实施方式(包括固件、微代码等),或硬件和软件方面结合的实施方式,这里可以统称为“电路”、“模块”或“系统”。Those skilled in the art can understand that various aspects of the present application can be implemented as a system, method or program product. Therefore, various aspects of the present application can be specifically implemented in the following forms, that is: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software implementations, which can be collectively referred to herein as "circuit", "module" or "system".
下面参照图4来描述根据本申请的这种实施方式的电子设备400。图4显示的电子设备400仅仅是一个示例,不应对本申请的实施例的功能和使用范围带来任何限制。An
如图4所示,电子设备400以通用计算设备的形式表现。电子设备400的组件可以包括但不限于:至少一个处理单元410、至少一个存储单元420、连接不同系统组件(包括存储单元420和处理单元410)的总线430、显示单元440等。As shown in FIG. 4,
其中,所述存储单元存储有程序代码,所述程序代码可以被所述处理单元410执行,使得所述处理单元410执行本说明书用于基于推荐话术进行对话的方法中描述的根据本申请的各种示例性实施方式的步骤。例如,所述处理单元410可以执行如图1和图2中所示的步骤。Wherein, the storage unit stores program codes, and the program codes can be executed by the
所述存储单元420可以包括易失性存储单元形式的可读介质,例如随机存取存储单元(RAM)4201和/或高速缓存存储单元4202,还可以进一步包括只读存储单元(ROM)4203。The
所述存储单元420还可以包括具有一组(至少一个)程序模块4205的程序/实用工具4204,这样的程序模块4205包括但不限于:操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。The
总线430可以为表示几类总线结构中的一种或多种,包括存储单元总线或者存储单元控制器、外围总线、图形加速端口、处理单元或者使用多种总线结构中的任意总线结构的局域总线。The
电子设备400也可以与一个或多个外部设备500(例如键盘、指向设备、蓝牙设备等)通信,还可与一个或者多个使得用户能与该电子设备400交互的设备通信,和/或与使得该电子设备400能与一个或多个其它计算设备进行通信的任何设备(例如路由器、调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口450进行。并且,电子设备400还可以通过网络适配器460与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。网络适配器460可以通过总线430与电子设备400的其它模块通信。应当明白,尽管图中未示出,可以结合电子设备400使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。The
通过以上的实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本申请的实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、或者网络设备等)执行根据本申请的实施方式的用于基于推荐话术进行对话的方法。Through the description of the above implementations, those skilled in the art can easily understand that the example implementations described here can be implemented by software, or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of the present application can be embodied in the form of software products, which can be stored in a non-volatile storage medium (which can be CD-ROM, U disk, mobile hard disk, etc.) or network In the above, several instructions are included to make a computing device (which may be a personal computer, a server, or a network device, etc.) execute the method for conducting a dialogue based on a recommended speech according to an embodiment of the present application.
本领域技术人员在考虑说明书及实践这里公开的内容后,将容易想到本申请的其它实施方案。本申请旨在涵盖本申请的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本申请的一般性原理并包括本申请未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本申请的真正范围和精神由所附的权利要求指出。Other embodiments of the present application will readily occur to those skilled in the art from consideration of the specification and practice of the disclosure herein. This application is intended to cover any modification, use or adaptation of the application, these modifications, uses or adaptations follow the general principles of the application and include common knowledge or conventional technical means in the technical field not disclosed in the application . The specification and examples are to be considered exemplary only, with a true scope and spirit of the application indicated by the appended claims.
Claims (17)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211047003.1A CN115640386B (en) | 2022-08-30 | 2022-08-30 | Methods and devices for conducting dialogues based on recommended phrases |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211047003.1A CN115640386B (en) | 2022-08-30 | 2022-08-30 | Methods and devices for conducting dialogues based on recommended phrases |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN115640386A true CN115640386A (en) | 2023-01-24 |
| CN115640386B CN115640386B (en) | 2026-04-28 |
Family
ID=84939755
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211047003.1A Active CN115640386B (en) | 2022-08-30 | 2022-08-30 | Methods and devices for conducting dialogues based on recommended phrases |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115640386B (en) |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116467425A (en) * | 2023-05-15 | 2023-07-21 | 深圳市人马互动科技有限公司 | Man-machine dialogue method, device, electronic equipment and storage medium |
| CN116662647A (en) * | 2023-05-12 | 2023-08-29 | 北京奇艺世纪科技有限公司 | A content recommendation method, device, system, electronic equipment and storage medium |
| CN117633188A (en) * | 2023-12-08 | 2024-03-01 | 北京城市网邻信息技术有限公司 | Question-answering session processing method, device, equipment and storage medium |
| CN117633189A (en) * | 2023-12-08 | 2024-03-01 | 北京城市网邻信息技术有限公司 | Question-answering session processing method, device, equipment and storage medium |
| CN118797067A (en) * | 2024-09-13 | 2024-10-18 | 一铭寰宇科技(北京)有限公司 | A content generation method based on artificial intelligence |
| WO2025120828A1 (en) * | 2023-12-07 | 2025-06-12 | 日本電信電話株式会社 | Processing device, processing method, and processing program |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106354815A (en) * | 2016-08-30 | 2017-01-25 | 北京光年无限科技有限公司 | Topic processing method for conversational system |
| CN111611382A (en) * | 2020-05-22 | 2020-09-01 | 贝壳技术有限公司 | Dialect model training method, dialog information generation method, device and system |
| US20210256969A1 (en) * | 2020-02-19 | 2021-08-19 | Baidu Online Network Technology (Beijing) Co., Ltd. | Method and apparatus for recognizing user intention, device, and readable storage medium |
| CN114722171A (en) * | 2022-03-28 | 2022-07-08 | 北京百度网讯科技有限公司 | Multi-turn conversation processing method and device, electronic equipment and storage medium |
-
2022
- 2022-08-30 CN CN202211047003.1A patent/CN115640386B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106354815A (en) * | 2016-08-30 | 2017-01-25 | 北京光年无限科技有限公司 | Topic processing method for conversational system |
| US20210256969A1 (en) * | 2020-02-19 | 2021-08-19 | Baidu Online Network Technology (Beijing) Co., Ltd. | Method and apparatus for recognizing user intention, device, and readable storage medium |
| CN111611382A (en) * | 2020-05-22 | 2020-09-01 | 贝壳技术有限公司 | Dialect model training method, dialog information generation method, device and system |
| CN114722171A (en) * | 2022-03-28 | 2022-07-08 | 北京百度网讯科技有限公司 | Multi-turn conversation processing method and device, electronic equipment and storage medium |
Non-Patent Citations (1)
| Title |
|---|
| 马乔: "人工智能语境下人力资源招聘工作的变革", 秘书, no. 4, 15 July 2018 (2018-07-15), pages 58 - 67 * |
Cited By (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116662647A (en) * | 2023-05-12 | 2023-08-29 | 北京奇艺世纪科技有限公司 | A content recommendation method, device, system, electronic equipment and storage medium |
| CN116662647B (en) * | 2023-05-12 | 2026-03-06 | 北京奇艺世纪科技有限公司 | A content recommendation method, apparatus, system, electronic device, and storage medium |
| CN116467425A (en) * | 2023-05-15 | 2023-07-21 | 深圳市人马互动科技有限公司 | Man-machine dialogue method, device, electronic equipment and storage medium |
| CN116467425B (en) * | 2023-05-15 | 2026-01-20 | 深圳市人马互动科技有限公司 | Human-computer interaction methods, devices, electronic equipment and storage media |
| WO2025120828A1 (en) * | 2023-12-07 | 2025-06-12 | 日本電信電話株式会社 | Processing device, processing method, and processing program |
| CN117633188A (en) * | 2023-12-08 | 2024-03-01 | 北京城市网邻信息技术有限公司 | Question-answering session processing method, device, equipment and storage medium |
| CN117633189A (en) * | 2023-12-08 | 2024-03-01 | 北京城市网邻信息技术有限公司 | Question-answering session processing method, device, equipment and storage medium |
| CN118797067A (en) * | 2024-09-13 | 2024-10-18 | 一铭寰宇科技(北京)有限公司 | A content generation method based on artificial intelligence |
| CN118797067B (en) * | 2024-09-13 | 2024-12-13 | 一铭寰宇科技(北京)有限公司 | Content generation method based on artificial intelligence |
Also Published As
| Publication number | Publication date |
|---|---|
| CN115640386B (en) | 2026-04-28 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US12166809B2 (en) | Artificial intelligence communication assistance | |
| CN115640386A (en) | Method and apparatus for conducting dialogs based on recommended dialogs | |
| US11804216B2 (en) | Generating training datasets for a supervised learning topic model from outputs of a discovery topic model | |
| CN116235177A (en) | Systems and methods related to robotic authoring by mining intent from dialog data using known intents associated with sample utterances | |
| CN114202203A (en) | Complaint work order processing method and device, storage medium and electronic equipment | |
| CN119295091B (en) | A micro-marketing auxiliary method and system based on large language model | |
| CN116881730A (en) | Chat scene matching system, method, equipment and storage medium based on context | |
| CN117033540A (en) | Report generation method, device, electronic equipment and media | |
| CN118631939A (en) | Intelligent quality inspection method and device for voice customer service based on multimodal large model | |
| CN115878768A (en) | NLP-based vehicle insurance service call-back clue recommendation method and related equipment thereof | |
| CN118820585A (en) | Information push method, device, equipment and storage medium | |
| CN118193696A (en) | Intelligent question answering method, device, equipment, storage medium and program product | |
| CN112131378B (en) | Method and device for identifying civil problem category and electronic equipment | |
| CN111818290B (en) | Online interviewing method and system | |
| US20250299667A1 (en) | System and method for data visualization on spatial computing device based on cascading machine learning approach | |
| CN111949777A (en) | Intelligent voice conversation method and device based on crowd classification and electronic equipment | |
| US20250238632A1 (en) | System and method for language processing | |
| CN119646523A (en) | Data labeling method, electronic device, storage medium and program product | |
| CN118410162A (en) | Digest extraction method, digest extraction device, digest extraction apparatus, digest extraction medium, and digest extraction program product | |
| CN120633678A (en) | A method, device and system for judging dialogue response of language model | |
| CN120316496A (en) | Method and application of collecting data and expanding training data for AI customer service question-answering system | |
| CN119691102A (en) | A speech recommendation method and related equipment for agent question and answer | |
| KR20260060793A (en) | Computer program, method and conputer device for providing ai chatbot for generating conversation based on sentiment analysis | |
| CN121094857A (en) | Guest group ring selection method and related device | |
| CN121145828A (en) | Work order generation methods and devices, program products and storage media |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| EE01 | Entry into force of recordation of patent licensing contract |
Application publication date: 20230124 Assignee: Baisheng Consultation (Shanghai) Co.,Ltd. Assignor: Shengdoushi (Shanghai) Technology Development Co.,Ltd. Contract record no.: X2023310000138 Denomination of invention: Method and equipment for dialogue based on recommended scripts License type: Common License Record date: 20230714 |
|
| EE01 | Entry into force of recordation of patent licensing contract | ||
| GR01 | Patent grant |
