CN118656452A - Text evaluation model training method, text evaluation method and related device - Google Patents
Text evaluation model training method, text evaluation method and related device Download PDFInfo
- Publication number
- CN118656452A CN118656452A CN202410349582.8A CN202410349582A CN118656452A CN 118656452 A CN118656452 A CN 118656452A CN 202410349582 A CN202410349582 A CN 202410349582A CN 118656452 A CN118656452 A CN 118656452A
- Authority
- CN
- China
- Prior art keywords
- text
- target object
- evaluated
- simulation
- conversation
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/33—Querying
- G06F16/332—Query formulation
- G06F16/3329—Natural language query formulation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/33—Querying
- G06F16/3331—Query processing
- G06F16/334—Query execution
- G06F16/3344—Query execution using natural language analysis
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/35—Clustering; Classification
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/22—Matching criteria, e.g. proximity measures
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/01—Customer relationship services
- G06Q30/015—Providing customer assistance, e.g. assisting a customer within a business location or via helpdesk
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02T—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
- Y02T10/00—Road transport of goods or passengers
- Y02T10/10—Internal combustion engine [ICE] based vehicles
- Y02T10/40—Engine management systems
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Artificial Intelligence (AREA)
- Mathematical Physics (AREA)
- Computational Linguistics (AREA)
- Business, Economics & Management (AREA)
- Strategic Management (AREA)
- Evolutionary Biology (AREA)
- Life Sciences & Earth Sciences (AREA)
- Marketing (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Bioinformatics & Computational Biology (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Business, Economics & Management (AREA)
- Evolutionary Computation (AREA)
- Finance (AREA)
- Economics (AREA)
- Development Economics (AREA)
- Human Computer Interaction (AREA)
- Accounting & Taxation (AREA)
- Machine Translation (AREA)
Abstract
Description
技术领域Technical Field
本申请涉及人工智能技术领域,特别是涉及一种文本评估模型的训练方法、文本评估方法及相关装置。The present application relates to the field of artificial intelligence technology, and in particular to a text evaluation model training method, a text evaluation method and related devices.
背景技术Background Art
人与人之间的沟通的需要一定的技能。以用户与客服坐席之间的会话为例,客服坐席的技能是指客服坐席与用户沟通、解决用户问题的能力,是客服坐席工作中最为重要的因素。因此,需要对客服在会话中的技能进行一定程度的改善提升,来提升相关产品或服务的质量,从而带来经济效益。在改善客服的会话技能之前,需要先评估会话技能是否需要提升,一般情况下,通过对客服的会话文本进行评估来确定是否需要改善会话技能或者优化会话文本。因此,如何训练准确的文本评估模型成为本领域的研究热点问题。Communication between people requires certain skills. Taking the conversation between users and customer service agents as an example, the skills of customer service agents refer to the ability of customer service agents to communicate with users and solve user problems, which is the most important factor in the work of customer service agents. Therefore, it is necessary to improve the skills of customer service in conversation to a certain extent to improve the quality of related products or services, thereby bringing economic benefits. Before improving the conversation skills of customer service, it is necessary to evaluate whether the conversation skills need to be improved. Generally, the conversation text of customer service is evaluated to determine whether the conversation skills need to be improved or the conversation text needs to be optimized. Therefore, how to train an accurate text evaluation model has become a hot research issue in this field.
发明内容Summary of the invention
基于此,有必要针对上述技术问题,提供一种准确的文本评估模型的训练方法、文本评估方法及相关装置。Based on this, it is necessary to provide an accurate text evaluation model training method, a text evaluation method and related devices to address the above technical problems.
第一方面,本申请提供了一种文本评估模型的训练方法,所述方法包括:In a first aspect, the present application provides a method for training a text evaluation model, the method comprising:
确定目标对象的候选模拟对象;所述候选模拟对象包括所述目标对象的影子模拟对象和非目标对象的影子模拟对象;Determine candidate simulation objects of the target object; the candidate simulation objects include shadow simulation objects of the target object and shadow simulation objects of non-target objects;
从所述候选模拟对象中确定与所述目标对象匹配的匹配模拟对象;Determine a matching simulation object that matches the target object from the candidate simulation objects;
建立所述目标对象与所述匹配模拟对象之间的会话,并获取会话过程中所述匹配模拟对象的会话文本以及所述会话文本的文本标签;Establishing a conversation between the target object and the matching simulation object, and obtaining a conversation text of the matching simulation object and a text label of the conversation text during the conversation;
基于所述会话文本与所述文本标签,对文本评估模型进行训练。A text evaluation model is trained based on the conversation text and the text label.
第二方面,本申请还提供了一种文本评估模型的训练装置,所述装置包括:In a second aspect, the present application also provides a training device for a text evaluation model, the device comprising:
确定模块,用于确定目标对象的候选模拟对象;所述候选模拟对象包括所述目标对象的影子模拟对象和非目标对象的影子模拟对象;A determination module, configured to determine candidate simulation objects of a target object; the candidate simulation objects include a shadow simulation object of the target object and a shadow simulation object of a non-target object;
匹配模块,用于从所述候选模拟对象中确定与所述目标对象匹配的匹配模拟对象;A matching module, used to determine a matching simulation object that matches the target object from the candidate simulation objects;
会话模块,用于建立所述目标对象与所述匹配模拟对象之间的会话,并获取会话过程中所述匹配模拟对象的会话文本与所述会话文本的文本标签;A conversation module, used to establish a conversation between the target object and the matching simulation object, and obtain a conversation text of the matching simulation object and a text label of the conversation text during the conversation;
训练模块,用于基于所述会话文本与所述文本标签,对文本评估模型进行训练。A training module is used to train a text evaluation model based on the conversation text and the text label.
第三方面,本申请还提供了一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现以下步骤:In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
确定目标对象的候选模拟对象;所述候选模拟对象包括所述目标对象的影子模拟对象和非目标对象的影子模拟对象;Determine candidate simulation objects of the target object; the candidate simulation objects include shadow simulation objects of the target object and shadow simulation objects of non-target objects;
从所述候选模拟对象中确定与所述目标对象匹配的匹配模拟对象;Determine a matching simulation object that matches the target object from the candidate simulation objects;
建立所述目标对象与所述匹配模拟对象之间的会话,并获取会话过程中所述匹配模拟对象的会话文本以及所述会话文本的文本标签;Establishing a conversation between the target object and the matching simulation object, and obtaining a conversation text of the matching simulation object and a text label of the conversation text during the conversation;
基于所述会话文本与所述文本标签,对文本评估模型进行训练。A text evaluation model is trained based on the conversation text and the text label.
第四方面,本申请还提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
确定目标对象的候选模拟对象;所述候选模拟对象包括所述目标对象的影子模拟对象和非目标对象的影子模拟对象;Determine candidate simulation objects of the target object; the candidate simulation objects include shadow simulation objects of the target object and shadow simulation objects of non-target objects;
从所述候选模拟对象中确定与所述目标对象匹配的匹配模拟对象;Determine a matching simulation object that matches the target object from the candidate simulation objects;
建立所述目标对象与所述匹配模拟对象之间的会话,并获取会话过程中所述匹配模拟对象的会话文本以及所述会话文本的文本标签;Establishing a conversation between the target object and the matching simulation object, and obtaining a conversation text of the matching simulation object and a text label of the conversation text during the conversation;
基于所述会话文本与所述文本标签,对文本评估模型进行训练。A text evaluation model is trained based on the conversation text and the text label.
第五方面,本申请还提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现以下步骤:In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
确定目标对象的候选模拟对象;所述候选模拟对象包括所述目标对象的影子模拟对象和非目标对象的影子模拟对象;Determine candidate simulation objects of the target object; the candidate simulation objects include shadow simulation objects of the target object and shadow simulation objects of non-target objects;
从所述候选模拟对象中确定与所述目标对象匹配的匹配模拟对象;Determine a matching simulation object that matches the target object from the candidate simulation objects;
建立所述目标对象与所述匹配模拟对象之间的会话,并获取会话过程中所述匹配模拟对象的会话文本以及所述会话文本的文本标签;Establishing a conversation between the target object and the matching simulation object, and obtaining a conversation text of the matching simulation object and a text label of the conversation text during the conversation;
基于所述会话文本与所述文本标签,对文本评估模型进行训练。A text evaluation model is trained based on the conversation text and the text label.
上述文本评估模型的训练方法、文本评估方法及相关装置,首先,通过对目标对象与候选模拟对象之间的会话过程进行分析后得到会话文本与文本标签,采用会话文本与文本标签对文本评估模型进行训练,训练得到的文本评估模型能够支持对待评估文本进行准确的评估。其中,候选模拟对象包括目标对象的影子模拟对象和非目标对象的影子模拟对象,能够通过不同的训练数据全面的训练模型,使得后续能够通过训练得到的多种文本评估模型,对待评估文本进行全面的文本评估处理,提高文本评估的准确性。进一步地,通过确定目标对象的影子模拟对象和非目标对象的影子模拟对象,使得目标对象可以利用分别与自身表达习惯相同、或与自身表达习惯不同的模拟对象会话的方式,实现目标对象的自我反思与自我学习,提高了目标对象的会话水平与评估能力,进而提高用于模型训练的文本标签的准确性,从而提高文本评估模型的准确性。The training method, text evaluation method and related device of the above-mentioned text evaluation model, firstly, obtain the conversation text and text label by analyzing the conversation process between the target object and the candidate simulation object, and use the conversation text and text label to train the text evaluation model, and the trained text evaluation model can support accurate evaluation of the text to be evaluated. Among them, the candidate simulation object includes the shadow simulation object of the target object and the shadow simulation object of the non-target object, and can use different training data to comprehensively train the model, so that the multiple text evaluation models obtained by training can be used to perform comprehensive text evaluation processing on the text to be evaluated, thereby improving the accuracy of the text evaluation. Further, by determining the shadow simulation object of the target object and the shadow simulation object of the non-target object, the target object can use the method of conversation with the simulation object that is the same as or different from its own expression habits, respectively, to achieve self-reflection and self-learning of the target object, improve the conversation level and evaluation ability of the target object, and then improve the accuracy of the text label used for model training, thereby improving the accuracy of the text evaluation model.
第六方面,本申请还提供了一种文本评估方法,所述方法包括:In a sixth aspect, the present application also provides a text evaluation method, the method comprising:
获取会话过程中目标对象的待评估文本;Get the text to be evaluated of the target object during the conversation;
通过文本评估模型对所述待评估文本进行话术评估处理,确定所述待评估文本的文本评估结果;其中,所述文本评估模型采用如所述文本评估模型的训练方法训练的;Performing speech evaluation processing on the text to be evaluated by a text evaluation model to determine a text evaluation result of the text to be evaluated; wherein the text evaluation model is trained using the training method of the text evaluation model;
基于所述文本评估结果,确定所述待评估文本是否需要进行文本优化;Based on the text evaluation result, determining whether the text to be evaluated needs to be optimized;
在需要进行文本优化的情况下,对所述待评估文本进行文本优化处理,得到优化后文本。When text optimization is required, text optimization processing is performed on the text to be evaluated to obtain an optimized text.
第七方面,本申请还提供了一种文本评估装置,所述装置包括:In a seventh aspect, the present application further provides a text evaluation device, the device comprising:
获取模块,用于获取会话过程中目标对象的待评估文本;An acquisition module is used to acquire the text to be evaluated of the target object during the conversation;
评估模块,用于通过文本评估模型对所述待评估文本进行话术评估处理,确定所述待评估文本的文本评估结果;其中,所述文本评估模型采用如所述文本评估模型的训练方法建立;An evaluation module, used for performing speech evaluation processing on the text to be evaluated through a text evaluation model to determine a text evaluation result of the text to be evaluated; wherein the text evaluation model is established by using a training method such as the text evaluation model;
分析模块,用于基于所述文本评估结果,确定所述待评估文本是否需要进行文本优化;An analysis module, used to determine whether the text to be evaluated needs to be optimized based on the text evaluation result;
处理模块,用于在需要进行文本优化的情况下,对所述待评估文本进行文本优化处理,得到优化后文本。The processing module is used to perform text optimization processing on the text to be evaluated to obtain an optimized text when text optimization is required.
第八方面,本申请还提供了一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现以下步骤:In an eighth aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
获取会话过程中目标对象的待评估文本;Get the text to be evaluated of the target object during the conversation;
通过文本评估模型对所述待评估文本进行话术评估处理,确定所述待评估文本的文本评估结果;其中,所述文本评估模型采用如所述文本评估模型的训练方法训练的;Performing speech evaluation processing on the text to be evaluated by a text evaluation model to determine a text evaluation result of the text to be evaluated; wherein the text evaluation model is trained using the training method of the text evaluation model;
基于所述文本评估结果,确定所述待评估文本是否需要进行文本优化;Based on the text evaluation result, determining whether the text to be evaluated needs to be optimized;
在需要进行文本优化的情况下,对所述待评估文本进行文本优化处理,得到优化后文本。When text optimization is required, text optimization processing is performed on the text to be evaluated to obtain an optimized text.
第九方面,本申请还提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:In a ninth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
获取会话过程中目标对象的待评估文本;Get the text to be evaluated of the target object during the conversation;
通过文本评估模型对所述待评估文本进行话术评估处理,确定所述待评估文本的文本评估结果;其中,所述文本评估模型采用如所述文本评估模型的训练方法训练的;Performing speech evaluation processing on the text to be evaluated by a text evaluation model to determine a text evaluation result of the text to be evaluated; wherein the text evaluation model is trained using the training method of the text evaluation model;
基于所述文本评估结果,确定所述待评估文本是否需要进行文本优化;Based on the text evaluation result, determining whether the text to be evaluated needs to be optimized;
在需要进行文本优化的情况下,对所述待评估文本进行文本优化处理,得到优化后文本。When text optimization is required, text optimization processing is performed on the text to be evaluated to obtain an optimized text.
第十方面,本申请还提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现以下步骤:In a tenth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
获取会话过程中目标对象的待评估文本;Get the text to be evaluated of the target object during the conversation;
通过文本评估模型对所述待评估文本进行话术评估处理,确定所述待评估文本的文本评估结果;其中,所述文本评估模型采用如所述文本评估模型的训练方法训练的;Performing speech evaluation processing on the text to be evaluated by a text evaluation model to determine a text evaluation result of the text to be evaluated; wherein the text evaluation model is trained using the training method of the text evaluation model;
基于所述文本评估结果,确定所述待评估文本是否需要进行文本优化;Based on the text evaluation result, determining whether the text to be evaluated needs to be optimized;
在需要进行文本优化的情况下,对所述待评估文本进行文本优化处理,得到优化后文本。When text optimization is required, text optimization processing is performed on the text to be evaluated to obtain an optimized text.
上述文本评估模型的训练方法、文本评估方法及相关装置,获取会话过程中目标对象的待评估文本;通过文本评估模型对待评估文本进行话术评估处理,确定待评估文本的文本评估结果;基于文本评估结果,确定待评估文本是否需要进行文本优化;在需要进行文本优化的情况下,对待评估文本进行文本优化处理,得到优化后文本。整个过程中,采用支持对待评估文本进行准确文本评估处理的文本评估模型,对会话过程中目标对象的待评估文本进行全面的评估,进而能够准确确定待评估文本中需要进行文本优化的文本,以进行准确的文本优化处理。The training method, text evaluation method and related device of the above-mentioned text evaluation model obtain the text to be evaluated of the target object during the conversation; perform speech evaluation processing on the text to be evaluated through the text evaluation model to determine the text evaluation result of the text to be evaluated; based on the text evaluation result, determine whether the text to be evaluated needs to be optimized; if text optimization is required, perform text optimization processing on the text to be evaluated to obtain the optimized text. Throughout the process, a text evaluation model that supports accurate text evaluation processing of the text to be evaluated is used to conduct a comprehensive evaluation of the text to be evaluated of the target object during the conversation, so as to accurately determine the text that needs to be optimized in the text to be evaluated, so as to perform accurate text optimization processing.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例或相关技术中的技术方案,下面将对实施例或相关技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
图1为一个实施例中文本评估模型的训练方法以及文本评估方法的应用环境图;FIG1 is a diagram of an application environment of a text evaluation model training method and a text evaluation method in one embodiment;
图2为一个实施例中文本评估模型的训练方法的流程示意图;FIG2 is a schematic diagram of a flow chart of a method for training a text evaluation model in one embodiment;
图3为一个实施例中文本评估方法的流程示意图;FIG3 is a schematic diagram of a flow chart of a text evaluation method in one embodiment;
图4为另一个实施例中文本评估方法的流程示意图;FIG4 is a schematic diagram of a flow chart of a text evaluation method in another embodiment;
图5为一个具体应用实例中目标对象的自评估过程的流程示意图;FIG5 is a schematic diagram of a process flow of a self-assessment process of a target object in a specific application example;
图6为一个具体应用实例中目标对象的自提升过程的流程示意图;FIG6 is a schematic flow chart of a self-lifting process of a target object in a specific application example;
图7为一个实施例中文本评估模型的训练装置的结构框图;FIG7 is a block diagram of a training device for a text evaluation model in one embodiment;
图8为一个实施例中文本评估装置的结构框图;FIG8 is a structural block diagram of a text evaluation device in one embodiment;
图9为一个实施例中计算机设备的内部结构图。FIG. 9 is a diagram showing the internal structure of a computer device in one embodiment.
具体实施方式DETAILED DESCRIPTION
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
以客服坐席与客户的沟通过程为例,在客服坐席与客户的沟通过程中,最重要的是客服坐席的沟通技能,其中,技能是指客服坐席与客户沟通、解决用户问题的技能。也就是说,客服坐席需要尽可能地提高自身的沟通技能,从而使得在与客户的沟通过程中更为便利,减少客户的投诉量。Take the communication process between customer service agents and customers as an example. In the process of communication between customer service agents and customers, the most important thing is the communication skills of customer service agents, where skills refer to the skills of customer service agents in communicating with customers and solving user problems. In other words, customer service agents need to improve their communication skills as much as possible, so as to make the communication process with customers more convenient and reduce the number of customer complaints.
目前,若想提高客服坐席的沟通技能,则需要对客服坐席的沟通文本进行评估处理。具体来说,由质检中心获取当前客服坐席的文本,并通过质检中心的质检人员对文本进行一定的分析处理,判断当前客服坐席的沟通中待优化的文本,并将待优化的文本告知当前客服坐席,以对待优化文本进行一定程度的优化。At present, if you want to improve the communication skills of customer service agents, you need to evaluate and process the communication texts of customer service agents. Specifically, the quality inspection center obtains the texts of the current customer service agents, and the quality inspection personnel of the quality inspection center perform certain analysis and processing on the texts to determine the texts to be optimized in the communication of the current customer service agents, and inform the current customer service agents of the texts to be optimized, so as to optimize the texts to a certain extent.
进一步地,在上述方案中,通过质检人员对文本进行一定的分析处理一般是,通过质检人员采用多方质检的方式来进行。即通过多个质检人员对当前客服坐席的文本均进行质检,并基于多个质检人员的质检结果,得到当前客服坐席的文本质检综合结果,从而基于文本质检综合结果,判断当前客服坐席的沟通中待优化的文本。Furthermore, in the above scheme, the text is analyzed and processed by the quality inspectors in a certain manner, which is generally carried out by the quality inspectors in a multi-party quality inspection manner. That is, multiple quality inspectors conduct quality inspection on the text of the current customer service agent, and based on the quality inspection results of multiple quality inspectors, the comprehensive quality inspection results of the text of the current customer service agent are obtained, so as to determine the text to be optimized in the communication of the current customer service agent based on the comprehensive text quality inspection results.
然而,上述方法中多方质检的方式,由于需要多方均需要执行人工质检操作,一旦部分质检人员由于各种原因发生质检误差,会导致最终的质检结果也发生很大的差别。因此,上述方法无法准确地对当前客服坐席的文本进行评估处理。However, the multi-party quality inspection method in the above method requires multiple parties to perform manual quality inspection operations. Once some quality inspectors make quality inspection errors due to various reasons, the final quality inspection results will also be greatly different. Therefore, the above method cannot accurately evaluate and process the text of the current customer service agent.
在此情况下,本申请提出了一种文本评估模型的训练方法、文本评估方法及相关装置,在文本评估模型训练过程中,首先,确定目标对象的候选模拟对象;候选模拟对象包括目标对象的影子模拟对象和非目标对象的影子模拟对象;从候选模拟对象中确定与目标对象匹配的匹配模拟对象;建立目标对象与匹配模拟对象之间的会话,并获取会话过程中匹配模拟对象的会话文本以及会话文本的文本标签;基于会话文本与文本标签,对文本评估模型进行训练。在文本评估方法中,首先,获取会话过程中目标对象的待评估文本;通过文本评估模型对待评估文本进行话术评估处理,确定待评估文本的文本评估结果;基于文本评估结果,确定待评估文本是否需要进行文本优化;在需要进行文本优化的情况下,对待评估文本进行文本优化处理,得到优化后文本。In this case, the present application proposes a training method for a text evaluation model, a text evaluation method and related devices. In the text evaluation model training process, first, determine the candidate simulation objects of the target object; the candidate simulation objects include the shadow simulation objects of the target object and the shadow simulation objects of the non-target object; determine the matching simulation objects that match the target object from the candidate simulation objects; establish a conversation between the target object and the matching simulation object, and obtain the conversation text of the matching simulation object and the text label of the conversation text during the conversation; based on the conversation text and the text label, train the text evaluation model. In the text evaluation method, first, obtain the text to be evaluated of the target object during the conversation; perform speech evaluation processing on the text to be evaluated through the text evaluation model to determine the text evaluation result of the text to be evaluated; based on the text evaluation result, determine whether the text to be evaluated needs to be optimized; if text optimization is required, perform text optimization processing on the text to be evaluated to obtain the optimized text.
整个过程中,通过对目标对象与候选模拟对象之间的会话过程进行分析后得到的会话文本与文本标签,对文本评估模型进行训练,训练得到的文本评估模型能够支持对待评估文本进行准确的评估;进一步地,候选模拟对象包括目标对象的影子模拟对象和非目标对象的影子模拟对象,能够通过不同的训练数据全面的训练模型,使得能够通过训练得到的多种文本评估模型,对待评估文本进行全面的文本评估处理,提高文本评估的准确性。进一步地,通过确定目标对象的影子模拟对象和非目标对象的影子模拟对象的方式来训练模型,使得目标对象可以利用分别与自身表达习惯相同、或与自身表达习惯不同的模拟对象会话的方式,实现目标对象的自我反思与自我学习,提高了目标对象的会话水平与评估能力,进而提高用于模型训练的文本标签的准确性,从而提高文本评估模型的准确性。In the whole process, the text evaluation model is trained by analyzing the conversation text and text labels obtained after the conversation process between the target object and the candidate simulation object. The trained text evaluation model can support accurate evaluation of the text to be evaluated. Furthermore, the candidate simulation object includes the shadow simulation object of the target object and the shadow simulation object of the non-target object. The model can be comprehensively trained through different training data, so that the multiple text evaluation models obtained through training can be used to perform comprehensive text evaluation processing on the text to be evaluated, thereby improving the accuracy of text evaluation. Furthermore, the model is trained by determining the shadow simulation object of the target object and the shadow simulation object of the non-target object, so that the target object can use the conversation method of the simulation object that is the same as or different from its own expression habits to achieve self-reflection and self-learning of the target object, improve the conversation level and evaluation ability of the target object, and then improve the accuracy of the text labels used for model training, thereby improving the accuracy of the text evaluation model.
本申请实施例提供的文本评估方法,可以由计算机设备来完成,其中,计算机设备可以是终端,还可以是服务器,下述将以计算机设备为终端或服务器为例,详细描述文本评估方法的执行过程。The text evaluation method provided in the embodiment of the present application can be completed by a computer device, wherein the computer device can be a terminal or a server. The following will take the computer device as a terminal or a server as an example to describe in detail the execution process of the text evaluation method.
以计算机设备为服务器为例,本申请实施例提供的文本评估方法,可以应用于如图1所示的应用环境中,由终端102与服务器104协同执行文本评估任务。其中,终端102通过网络与服务器104进行通信。数据存储系统可以存储服务器104需要处理的数据。数据存储系统可以集成在服务器104上,也可以放在云上或其他网络服务器上。其中,终端102可以但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑、物联网设备和便携式可穿戴设备,物联网设备可为智能音箱、智能电视、智能空调、智能车载设备等。便携式可穿戴设备可为智能手表、智能手环、头戴设备等。服务器104可以用独立的服务器或者是多个服务器组成的服务器集群来实现。Taking the computer device as a server as an example, the text evaluation method provided in the embodiment of the present application can be applied to the application environment as shown in Figure 1, and the terminal 102 and the server 104 cooperate to perform the text evaluation task. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. Among them, the terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 104 can be implemented with an independent server or a server cluster consisting of multiple servers.
在文本评估模型的训练过程中,处理人员在终端102的模型训练界面中确定目标对象的候选模拟对象;候选模拟对象包括目标对象的影子模拟对象和非目标对象的影子模拟对象;终端102将目标对象的候选模拟对象上传至服务器104,服务器104确定目标对象的候选模拟对象;并基于处理人员在终端102的模型训练界面中的进一步选择操作,终端102将从候选模拟对象中确定与目标对象匹配的匹配模拟对象转发至服务器104,服务器104从候选模拟对象中确定与目标对象匹配的匹配模拟对象;服务器104建立目标对象与匹配模拟对象之间的会话,并获取会话过程中匹配模拟对象的会话文本以及会话文本的文本标签;基于会话文本与文本标签,对文本评估模型进行训练。进一步地,将训练得到的文本评估模型存储在服务器104的数据库中。In the training process of the text evaluation model, the processing personnel determines the candidate simulation objects of the target object in the model training interface of the terminal 102; the candidate simulation objects include the shadow simulation objects of the target object and the shadow simulation objects of the non-target object; the terminal 102 uploads the candidate simulation objects of the target object to the server 104, and the server 104 determines the candidate simulation objects of the target object; and based on the further selection operation of the processing personnel in the model training interface of the terminal 102, the terminal 102 determines the matching simulation objects that match the target object from the candidate simulation objects and forwards them to the server 104, and the server 104 determines the matching simulation objects that match the target object from the candidate simulation objects; the server 104 establishes a conversation between the target object and the matching simulation object, and obtains the conversation text of the matching simulation object and the text label of the conversation text during the conversation; based on the conversation text and the text label, the text evaluation model is trained. Further, the trained text evaluation model is stored in the database of the server 104.
以计算机设备为终端102/服务器104为例,本申请实施例提供的文本评估方法,还可以单独应用于终端102/服务器104中,由终端102/服务器104独立执行文本评估操作。具体地,由终端102/服务器104独立确定目标对象的候选模拟对象;候选模拟对象包括目标对象的影子模拟对象和非目标对象的影子模拟对象;从候选模拟对象中确定与目标对象匹配的匹配模拟对象;建立目标对象与匹配模拟对象之间的会话,并获取会话过程中匹配模拟对象的会话文本以及会话文本的文本标签;基于会话文本与文本标签,对文本评估模型进行训练。进一步地,将训练得到的文本评估模型存储在对应的数据库中。在文本评估过程中,处理人员在终端102的文本处理界面中输入会话过程编号,终端102基于用户输入的会话过程编号,生成文本处理请求,并将文本处理请求上传至服务器104;服务器104提取文本处理请求中的会话过程编号,从数据库中查询会话过程编号对应的目标对象的待评估文本。服务器104通过数据库中存储的不同文本评估模型对待评估文本进行话术评估处理,确定待评估文本的文本评估结果;基于文本评估结果,确定待评估文本是否需要进行文本优化;在需要进行文本优化的情况下,对待评估文本进行文本优化处理,得到优化后文本。Taking the computer device as terminal 102/server 104 as an example, the text evaluation method provided in the embodiment of the present application can also be applied to terminal 102/server 104 alone, and the terminal 102/server 104 independently performs the text evaluation operation. Specifically, the terminal 102/server 104 independently determines the candidate simulation object of the target object; the candidate simulation object includes the shadow simulation object of the target object and the shadow simulation object of the non-target object; the matching simulation object matching the target object is determined from the candidate simulation object; a conversation between the target object and the matching simulation object is established, and the conversation text of the matching simulation object and the text label of the conversation text are obtained during the conversation; based on the conversation text and the text label, the text evaluation model is trained. Further, the trained text evaluation model is stored in the corresponding database. During the text evaluation process, the processing personnel enters the conversation process number in the text processing interface of the terminal 102, and the terminal 102 generates a text processing request based on the conversation process number entered by the user, and uploads the text processing request to the server 104; the server 104 extracts the conversation process number in the text processing request, and queries the text to be evaluated of the target object corresponding to the conversation process number from the database. The server 104 performs speech evaluation processing on the text to be evaluated through different text evaluation models stored in the database to determine the text evaluation result of the text to be evaluated; based on the text evaluation result, it determines whether the text to be evaluated needs to be optimized; if text optimization is needed, the text to be evaluated is optimized to obtain the optimized text.
在另一些实施例中,文本评估方法还可以单独应用于终端102/服务器104。例如,处理人员在终端102的文本处理界面中输入会话过程编号,终端102基于用户输入的会话过程编号,获取会话过程编号对应的会话过程中目标对象的待评估文本;从而采用上述文本处理方法,对会话过程中目标对象的待评估文本进行文本处理,在此不再赘述。又如,服务器104从数据库中获取会话过程中目标对象的待评估文本;并采用上述文本处理方法,对目标对象的待评估文本进行文本处理,在此也不再赘述。In other embodiments, the text evaluation method can also be applied to the terminal 102/server 104 alone. For example, the processing personnel enter the session process number in the text processing interface of the terminal 102, and the terminal 102 obtains the text to be evaluated of the target object in the session process corresponding to the session process number based on the session process number entered by the user; thereby, the above-mentioned text processing method is used to perform text processing on the text to be evaluated of the target object in the session process, which will not be described in detail here. For another example, the server 104 obtains the text to be evaluated of the target object in the session process from the database; and the above-mentioned text processing method is used to perform text processing on the text to be evaluated of the target object, which will not be described in detail here.
在一些实施例中,如图2所示,提供了一种文本评估模型的训练方法,具体可包括如下步骤:In some embodiments, as shown in FIG2 , a method for training a text evaluation model is provided, which may specifically include the following steps:
S100,确定目标对象的候选模拟对象。S100, determining candidate simulation objects of the target object.
其中,候选模拟对象包括目标对象的影子模拟对象和非目标对象的影子模拟对象。本申请中,目标对象是任意一个人工坐席,非目标对象是人工坐席中除去目标对象之外的人工坐席,比如一共有人工坐席(也叫客服,或者人工客服)A和人工坐席B,如果人工坐席A是目标对象,那么人工坐席B就是非目标对象。如果人工坐席中除去目标对象之外,还存在至少两个人工坐席,那么可以通过如下方式确定非目标对象:例如,可以对未分组的每个人工坐席进行打分,得到打分结果,打分结果包括打分等级与实际评分,打分等级由好到差分别为:甲等级、乙等级、以及丙等级。基于打分等级对人工坐席进行分组,比如,将甲等级的所有人工坐席分在甲组,将乙等级的所有人工坐席分在乙组,将丙等级的所有人工坐席分在丙组等,在分组完成后,可以将比目标对象所在组的打分更差的组中的任意一个人工坐席作为非目标对象,也可以将比目标对象所在组的打分更优秀的组中的任意一个人工坐席作为非目标对象。其中,对人工坐席进行打分的方法包括但不限于根据人工坐席以往的工作成绩进行打分。Among them, the candidate simulation objects include the shadow simulation objects of the target object and the shadow simulation objects of the non-target object. In the present application, the target object is any manual seat, and the non-target object is the manual seat other than the target object. For example, there are manual seats (also called customer service, or manual customer service) A and manual seat B. If manual seat A is the target object, then manual seat B is the non-target object. If there are at least two manual seats other than the target object among the manual seats, the non-target object can be determined in the following manner: For example, each ungrouped manual seat can be scored to obtain a scoring result, and the scoring result includes a scoring grade and an actual score, and the scoring grades from good to bad are: Grade A, Grade B, and Grade C. The human agents are grouped based on the scoring levels. For example, all the human agents of level A are grouped into group A, all the human agents of level B are grouped into group B, and all the human agents of level C are grouped into group C. After the grouping is completed, any human agent in a group with a worse score than the group where the target object is located can be used as a non-target object, and any human agent in a group with a better score than the group where the target object is located can be used as a non-target object. The method of scoring the human agents includes but is not limited to scoring based on the previous work performance of the human agents.
又如,可以对已进行分组后目标对象所在小组中每个人工坐席以往的工作成绩进行打分,需要说明的是,此处已进行分组是指自然分组,并未根据工作成绩进行分组,比如可以是根据处理事件类型等进行分组。在对目标对象所在小组中人工坐席以往的工作成绩按相同的打分细则进行打分后,将目标对象所在小组中与目标对象的打分等级不同、且打分等级或实际评分相差较大的任意一个人工坐席作为非目标对象。For another example, the previous work performance of each human agent in the group where the target object is located can be scored. It should be noted that the grouping here refers to natural grouping, and is not grouped according to work performance. For example, it can be grouped according to the type of event handled, etc. After the previous work performance of the human agents in the group where the target object is located is scored according to the same scoring criteria, any human agent in the group where the target object is located that has a different scoring level from the target object and a large difference in scoring level or actual score is regarded as a non-target object.
目标对象的影子模拟对象是指与目标对象自身具备相同表达习惯的机器人,可以认为,目标对象的影子模拟对象是通过学习目标对象的用词与表达后训练得到的机器人。同理,非目标对象的影子模拟对象是指与非目标对象自身具备相同表达习惯的机器人,可以认为,非目标对象的影子模拟对象是通过学习非目标对象的用词与表达后训练得到的机器人。The target object's shadow simulation object refers to a robot that has the same expression habits as the target object itself. It can be considered that the target object's shadow simulation object is a robot trained by learning the target object's words and expressions. Similarly, the non-target object's shadow simulation object refers to a robot that has the same expression habits as the non-target object itself. It can be considered that the non-target object's shadow simulation object is a robot trained by learning the non-target object's words and expressions.
具体地,确定各人工坐席的影子模拟对象,由于人工坐席包括目标对象和非目标对象,即确定目标对象的影子模拟对象和非目标对象的影子模拟对象,将目标对象的影子模拟对象和非目标对象的影子模拟对象,确定为目标对象的候选模拟对象。Specifically, the shadow simulation object of each artificial seat is determined. Since the artificial seats include target objects and non-target objects, the shadow simulation object of the target object and the shadow simulation object of the non-target object are determined, and the shadow simulation object of the target object and the shadow simulation object of the non-target object are determined as candidate simulation objects of the target object.
S200,从候选模拟对象中确定与目标对象匹配的匹配模拟对象。S200: Determine a matching simulation object that matches the target object from candidate simulation objects.
具体地,由于候选模拟对象中包含了目标对象的影子模拟对象和非目标对象的影子模拟对象,因此,可以对候选模拟对象进行筛选,确定需要与目标对象进行匹配的匹配模拟对象,也就是确定需要与目标对象进行会话的匹配模拟对象,通过目标对象与匹配模拟对象之间的会话,可以训练文本评估模型。Specifically, since the candidate simulation objects include the shadow simulation objects of the target object and the shadow simulation objects of the non-target object, the candidate simulation objects can be screened to determine the matching simulation objects that need to be matched with the target object, that is, to determine the matching simulation objects that need to have a conversation with the target object. The text evaluation model can be trained through the conversation between the target object and the matching simulation objects.
进一步地,对候选模拟对象进行筛选的方法包括但不限于:在候选模拟对象包括目标对象的影子模拟对象的情况下,直接将目标对象的影子模拟对象作为与目标对象进行匹配的匹配模拟对象;在候选模拟对象包括非目标对象的影子模拟对象的情况下,确定非目标对象中与目标对象实际评分相差最大的非目标对象,并将与目标对象相差最大的非目标对象作为匹配模拟对象。Furthermore, the method for screening candidate simulation objects includes but is not limited to: when the candidate simulation objects include a shadow simulation object of the target object, directly using the shadow simulation object of the target object as a matching simulation object to match the target object; when the candidate simulation objects include a shadow simulation object of a non-target object, determining the non-target object among the non-target objects that has the largest difference in actual score from the target object, and using the non-target object that has the largest difference from the target object as the matching simulation object.
S300,建立目标对象与匹配模拟对象之间的会话,并获取会话过程中匹配模拟对象的会话文本以及会话文本的文本标签。S300, establishing a conversation between the target object and the matching simulation object, and obtaining the conversation text of the matching simulation object and the text label of the conversation text during the conversation.
具体地,建立目标对象与匹配模拟对象之间的会话,以对匹配模拟对象的会话文本进行识别,并获取会话过程中匹配模拟对象的会话文本以及会话文本的文本标签。详细来说,建立目标对象与目标对象的影子模拟对象之间的会话,并获取会话过程中目标对象的影子模拟对象的会话文本以及目标对象的影子模拟对象的会话文本的文本标签;建立目标对象与非目标对象的影子模拟对象之间的会话,并获取会话过程中非目标对象的影子模拟对象的会话文本以及非目标对象的影子模拟对象的会话文本的文本标签。Specifically, a conversation is established between the target object and the matching simulation object to identify the conversation text of the matching simulation object, and the conversation text of the matching simulation object and the text label of the conversation text are obtained during the conversation. Specifically, a conversation is established between the target object and the shadow simulation object of the target object, and the conversation text of the shadow simulation object of the target object and the text label of the conversation text of the shadow simulation object of the target object are obtained during the conversation; a conversation is established between the target object and the shadow simulation object of the non-target object, and the conversation text of the shadow simulation object of the non-target object and the text label of the conversation text of the shadow simulation object of the non-target object are obtained during the conversation.
进一步地,获取会话过程中匹配模拟对象的会话文本以及会话文本的文本标签,包括:获取会话过程中的会话文本,并去除会话文本中目标对象的会话文本,保留匹配模拟对象的会话文本;将匹配模拟对象的会话文本推送至目标对象的终端,并由目标对象的终端展示至目标对象;目标对象在展示界面对匹配模拟对象的会话文本进行评估,确定会话文本的文本标签,其中,文本标签包括待优化文本与无需优化文本;在展示界面将文本标签与会话文本关联,并上传至终端,由终端将会话文本的文本标签展示至服务器;服务器获取会话文本的文本标签。此外,目标对象还可以将会话文本的文本标签的标记原因与会话文本的文本标签共同上传至服务器,并对会话文本的文本标签的标记原因进行存储,以供回溯分析。Furthermore, obtaining the conversation text and text labels of the conversation text of the matching simulation object during the conversation includes: obtaining the conversation text during the conversation, removing the conversation text of the target object in the conversation text, and retaining the conversation text of the matching simulation object; pushing the conversation text of the matching simulation object to the terminal of the target object, and displaying it to the target object by the terminal of the target object; the target object evaluates the conversation text of the matching simulation object on the display interface, and determines the text label of the conversation text, wherein the text label includes text to be optimized and text that does not need to be optimized; associating the text label with the conversation text on the display interface, and uploading it to the terminal, and the terminal displays the text label of the conversation text to the server; the server obtains the text label of the conversation text. In addition, the target object can also upload the marking reason of the text label of the conversation text together with the text label of the conversation text to the server, and store the marking reason of the text label of the conversation text for retrospective analysis.
S400,基于会话文本与文本标签,对文本评估模型进行训练。S400, training a text evaluation model based on the conversation text and the text label.
具体地,服务器通过会话文本与会话文本的文本标签,对文本评估模型进行训练,得到训练完成的文本评估模型。文本评估模型支持当输入文本时,对文本进行评估,输出文本的文本标签,其中,文本标签包括待优化文本与无需优化文本的标签。此外,目标对象还可以对会话过程中目标对象自身的会话文本进行标记,标记出对匹配模拟对象表达不满的文本。Specifically, the server trains the text evaluation model through the conversation text and the text label of the conversation text to obtain a trained text evaluation model. The text evaluation model supports evaluating the text when the text is input and outputting the text label of the text, wherein the text label includes the label of the text to be optimized and the label of the text that does not need to be optimized. In addition, the target object can also mark the conversation text of the target object itself during the conversation, marking the text that expresses dissatisfaction with the matching simulation object.
进一步地,由于文本评估模型的文本标签是目标对象所标记的,因此,在采用文本评估模型对目标对象的文本进行处理时,可以认为,此时的文本评估模型是自评估模型,能够对目标对象的文本进行自我评估。Furthermore, since the text label of the text evaluation model is marked by the target object, when the text evaluation model is used to process the text of the target object, it can be considered that the text evaluation model at this time is a self-evaluation model that can perform self-evaluation on the text of the target object.
本实施例中,通过对目标对象与候选模拟对象之间的会话过程进行分析后得到的会话文本与文本标签,采用会话文本与文本标签对文本评估模型进行训练,训练得到的文本评估模型能够支持对待评估文本进行准确的评估;其中,候选模拟对象包括目标对象的影子模拟对象和非目标对象的影子模拟对象,能够通过不同的训练数据全面的训练模型,使得后续能够通过训练得到的多种文本评估模型,对待评估文本进行全面的文本评估处理,提高文本评估的准确性。进一步地,通过确定目标对象的影子模拟对象和非目标对象的影子模拟对象的方式来训练模型,使得目标对象可以利用分别与自身表达习惯相同、或与自身表达习惯不同的模拟对象会话的方式,实现目标对象的自我反思与自我学习,提高了目标对象的会话水平与评估能力,进而提高文本标签的准确性,从而提高文本评估模型的准确性。In this embodiment, the conversation text and text labels obtained by analyzing the conversation process between the target object and the candidate simulation object are used to train the text evaluation model, and the text evaluation model obtained by training can support accurate evaluation of the text to be evaluated; wherein, the candidate simulation object includes the shadow simulation object of the target object and the shadow simulation object of the non-target object, and the comprehensive training model can be used through different training data, so that the subsequent multiple text evaluation models obtained by training can be used to perform comprehensive text evaluation processing on the text to be evaluated, thereby improving the accuracy of text evaluation. Further, the model is trained by determining the shadow simulation object of the target object and the shadow simulation object of the non-target object, so that the target object can use the conversation method of the simulation object that is the same as or different from its own expression habits to achieve self-reflection and self-learning of the target object, improve the conversation level and evaluation ability of the target object, and then improve the accuracy of the text label, thereby improving the accuracy of the text evaluation model.
在一些实施例中,确定目标对象的候选模拟对象,包括:In some embodiments, determining a candidate simulation object for the target object includes:
获取预设初始文本模拟模型,以及确定非目标对象,并获取目标对象的第一历史会话数据与非目标对象的第二历史会话数据;基于第一历史会话数据,对预设初始属于服务角色的文本模拟模型进行训练,得到目标对象的影子模拟对象;基于第二历史会话数据,对预设初始文本模拟模型进行训练,得到非目标对象的影子模拟对象。Obtain a preset initial text simulation model, determine a non-target object, and obtain the first historical session data of the target object and the second historical session data of the non-target object; based on the first historical session data, train the preset initial text simulation model belonging to the service role to obtain a shadow simulation object of the target object; based on the second historical session data, train the preset initial text simulation model to obtain a shadow simulation object of the non-target object.
其中,非目标对象与目标对象是同一业务场景中属于服务角色的不同用户,也就是人工坐席;目标对象的影子模拟对象与目标对象具有相同个体特色,具有相同个体特色是指目标对象的影子模拟对象在会话过程中模仿第一历史会话数据来进行会话;非目标对象的影子模拟对象与非目标对象具有相同个体特色,具有相同个体特色是指非目标对象的影子模拟对象在会话过程中模仿第二历史会话数据来进行会话。Among them, the non-target object and the target object are different users belonging to service roles in the same business scenario, that is, manual agents; the shadow simulation object of the target object has the same individual characteristics as the target object, and having the same individual characteristics means that the shadow simulation object of the target object imitates the first historical conversation data to conduct a conversation during the conversation; the shadow simulation object of the non-target object has the same individual characteristics as the non-target object, and having the same individual characteristics means that the shadow simulation object of the non-target object imitates the second historical conversation data to conduct a conversation during the conversation.
具体地,获取某一业务场景下所有人工坐席的历史会话记录,并通过将每个人工坐席的历史会话数据分别输入至预设初始文本模拟模型,其中,预设初始文本模拟模型是语言大模型,大模型是指通过亿级的语料或者图像进行知识抽取与学习,进而生产了亿级参数的大模型,利用大量无标签很便宜的数据去做预训练的模型。语言大模型会学习每个人工坐席的历史会话记录中的用词与表达,从而模拟生成具有各人工坐席自身特色的模拟机器人。Specifically, the historical conversation records of all human agents in a certain business scenario are obtained, and the historical conversation data of each human agent is input into the preset initial text simulation model. The preset initial text simulation model is a large language model. The large model refers to the large model with billions of parameters produced by knowledge extraction and learning through billions of corpora or images, and a large amount of unlabeled and very cheap data is used as a pre-trained model. The large language model will learn the words and expressions in the historical conversation records of each human agent, so as to simulate and generate a simulation robot with the characteristics of each human agent.
也就是说,每个人工坐席都会生成自身对应的模拟机器人,每个人工坐席对应的模拟机器人在会话过程中会模仿该人工坐席的历史会话数据来进行会话。That is to say, each artificial agent will generate its own corresponding simulation robot, and the simulation robot corresponding to each artificial agent will imitate the historical conversation data of the artificial agent to conduct the conversation during the conversation.
基于目标对象的第一历史会话数据,对预设初始文本模拟模型进行训练,得到目标对象的影子模拟对象;基于非目标对象的第二历史会话数据,对预设初始文本模拟模型进行训练,得到非目标对象的影子模拟对象。目标对象的影子模拟对象能够在后续的会话过程中模仿第一历史会话数据来进行会话;非目标对象的影子模拟对象能够在后续的会话过程中模仿第二历史会话数据来进行会话。Based on the first historical conversation data of the target object, the preset initial text simulation model is trained to obtain the shadow simulation object of the target object; based on the second historical conversation data of the non-target object, the preset initial text simulation model is trained to obtain the shadow simulation object of the non-target object. The shadow simulation object of the target object can imitate the first historical conversation data to conduct conversation in the subsequent conversation process; the shadow simulation object of the non-target object can imitate the second historical conversation data to conduct conversation in the subsequent conversation process.
本实施例中,基于人工坐席的历史会话数据,采用语言大模型,模拟人工坐席的影子模拟对象,使得模拟出来的影子模拟对象是与人工坐席本身具备相同个体特色的影子模拟对象,即影子模拟对象在后续进行对话时,会模拟人工坐席的历史会话方式来进行对话,提高了获取候选模拟对象的效率,进而提高了训练文本评估模型的效率。In this embodiment, based on the historical conversation data of the artificial agent, a large language model is used to simulate the shadow simulation object of the artificial agent, so that the simulated shadow simulation object is a shadow simulation object with the same individual characteristics as the artificial agent itself, that is, the shadow simulation object will simulate the historical conversation method of the artificial agent in subsequent conversations, thereby improving the efficiency of obtaining candidate simulation objects, and further improving the efficiency of training the text evaluation model.
在一些实施例中,建立目标对象与匹配模拟对象之间的会话,包括:In some embodiments, establishing a session between a target object and a matching simulation object includes:
为目标对象分配客户角色,以及为匹配模拟对象分配坐席角色;建立客户角色与坐席角色之间的会话。Assign a customer role to the target object and an agent role to the matching simulation object; establish a conversation between the customer role and the agent role.
具体地,为目标对象分配客户角色,以及为匹配模拟对象分配坐席角色,通过目标对象与匹配模拟对象之间的会话,模拟客户与人工坐席之间的会话。也就是说,在匹配模拟对象为目标对象的影子模拟对象的情况下,将目标对象作为客户角色,匹配模拟对象作为坐席角色,通过目标对象与目标对象的影子模拟对象之间的会话,模拟客户与人工坐席之间的会话;在匹配模拟对象为非目标对象的影子模拟对象的情况下,将目标对象作为客户角色,匹配模拟对象作为坐席角色,通过非目标对象与非目标对象的影子模拟对象之间的会话,模拟客户与人工坐席之间的会话。Specifically, a customer role is assigned to the target object, and an agent role is assigned to the matching simulation object, and a conversation between the target object and the matching simulation object is used to simulate a conversation between the customer and the human agent. That is, when the matching simulation object is a shadow simulation object of the target object, the target object is used as the customer role, the matching simulation object is used as the agent role, and a conversation between the target object and the shadow simulation object of the target object is used to simulate a conversation between the customer and the human agent; when the matching simulation object is a shadow simulation object of a non-target object, the target object is used as the customer role, the matching simulation object is used as the agent role, and a conversation between the non-target object and the shadow simulation object of the non-target object is used to simulate a conversation between the customer and the human agent.
本实施例中,通过将匹配模拟对象与目标对象进行匹配,为目标对象分配客户角色,并为匹配模拟对象分配坐席角色,能够通过匹配模拟对象与目标对象之间的会话,实现模拟客户与坐席之间的会话,进而高效获取会话过程中匹配模拟对象的会话文本以及会话文本的文本标签。In this embodiment, by matching the matching simulation object with the target object, assigning a customer role to the target object, and assigning an agent role to the matching simulation object, it is possible to simulate the conversation between the customer and the agent through the conversation between the matching simulation object and the target object, thereby efficiently obtaining the conversation text of the matching simulation object and the text label of the conversation text during the conversation.
在一些实施例中,非目标对象的影子模拟对象包括第一类对象的影子模拟对象和第二类对象的影子模拟对象,第一类对象与目标对象为同类对象,第二类对象与目标对象为不同类对象。In some embodiments, the shadow simulation objects of the non-target objects include shadow simulation objects of first-category objects and shadow simulation objects of second-category objects. The first-category objects and the target objects are of the same type, and the second-category objects and the target objects are of different types.
匹配模拟对象包括如下一个或多个:目标对象的影子模拟对象、第一类对象的影子模拟对象和第二类对象的影子模拟对象。The matching simulation objects include one or more of the following: a shadow simulation object of the target object, a shadow simulation object of the first type of object, and a shadow simulation object of the second type of object.
一个匹配模拟对象对应一个文本评估模型,文本评估模型包括下述一个或多个:在匹配模拟对象包括目标对象的影子模拟对象的情况下,基于目标对象与目标对象的影子模拟对象之间的会话文本训练得到的第一模型;在匹配模拟对象包括第一类对象的影子模拟对象的情况下,基于目标对象与第一类对象的影子模拟对象之间的会话文本训练得到的第二模型;在匹配模拟对象包括第二类对象的影子模拟对象的情况下,基于目标对象与第二类对象的影子模拟对象之间的会话文本训练得到的第三模型。A matching simulation object corresponds to a text evaluation model, and the text evaluation model includes one or more of the following: when the matching simulation object includes a shadow simulation object of a target object, a first model is obtained based on the conversation text between the target object and the shadow simulation object of the target object; when the matching simulation object includes a shadow simulation object of a first category of objects, a second model is obtained based on the conversation text between the target object and the shadow simulation object of the first category of objects; when the matching simulation object includes a shadow simulation object of a second category of objects, a third model is obtained based on the conversation text between the target object and the shadow simulation object of the second category of objects.
具体地,第一类对象与目标对象为同类对象,第二类对象与目标对象为不同类对象。举例来说,目标对象A属于小组1,由于同一个小组内要求细则更加接近,因此,可以根据小组内绩效评分或等级对目标对象的同类对象或不同类对象进行标记,如,可以将小组1内与A的绩效等级一致的作为目标对象的同类对象,也就是第一类对象;可以将小组1内与A的绩效等级相差较大的作为目标对象的不同类对象,也就是第二类对象。Specifically, the first category of objects and the target object are of the same type, and the second category of objects and the target object are of different types. For example, target object A belongs to group 1. Since the requirements in the same group are more similar, the same or different types of objects of the target object can be marked according to the performance score or grade in the group. For example, objects in group 1 with the same performance grade as A can be regarded as objects of the same type as the target object, that is, objects of the first category; objects in group 1 with a large difference in performance grade from A can be regarded as objects of different types from the target object, that is, objects of the second category.
第一类对象的影子模拟对象是指目标对象的同类对象的影子模拟对象,第二类对象的影子模拟对象是指目标对象的不同类对象的影子模拟对象,也就是说,第一类对象的影子模拟对象是模仿了目标对象的同类对象的历史会话数据的影子模拟对象,第二类对象的影子模拟对象是模仿了目标对象的不同类对象的历史会话数据的影子模拟对象。The shadow simulation objects of the first category of objects refer to the shadow simulation objects of the same category of the target object, and the shadow simulation objects of the second category of objects refer to the shadow simulation objects of objects of different categories of the target object. In other words, the shadow simulation objects of the first category of objects are shadow simulation objects that imitate the historical session data of objects of the same category of the target object, and the shadow simulation objects of the second category of objects are shadow simulation objects that imitate the historical session data of objects of different categories of the target object.
在非目标对象的影子模拟对象包括第一类对象的影子模拟对象和第二类对象的影子模拟对象的情况下,即候选模拟对象包括目标对象的影子模拟对象、第一类对象的影子模拟对象、以及第二类对象的影子模拟对象的情况下,匹配模拟对象包括目标对象的影子模拟对象、第一类对象的影子模拟对象、以及第二类对象的影子模拟对象中的至少一个。In the case where the shadow simulation object of the non-target object includes the shadow simulation object of the first category of object and the shadow simulation object of the second category of object, that is, the candidate simulation object includes the shadow simulation object of the target object, the shadow simulation object of the first category of object, and the shadow simulation object of the second category of object, the matching simulation object includes at least one of the shadow simulation object of the target object, the shadow simulation object of the first category of object, and the shadow simulation object of the second category of object.
进一步地,一个匹配模拟对象对应一个文本评估模型,在匹配模拟对象包括目标对象的影子模拟对象的情况下,基于目标对象与目标对象的影子模拟对象之间的会话文本、以及会话文本的文本标签,训练得到第一模型;在匹配模拟对象包括第一类对象的影子模拟对象的情况下,基于目标对象与第一类对象的影子模拟对象之间的会话文本、以及会话文本的文本标签,训练得到第二模型;在匹配模拟对象包括第二类对象的影子模拟对象的情况下,基于目标对象与第二类对象的影子模拟对象之间的会话文本,基于目标对象与第二类对象的影子模拟对象之间的会话文本、以及会话文本的文本标签,训练得到第三模型。训练完成的模型支持当输入会话文本时,输出对会话文本的文本评估结果。Further, one matching simulation object corresponds to one text evaluation model. When the matching simulation object includes the shadow simulation object of the target object, the first model is trained based on the conversation text between the target object and the shadow simulation object of the target object, and the text label of the conversation text; when the matching simulation object includes the shadow simulation object of the first type of object, the second model is trained based on the conversation text between the target object and the shadow simulation object of the first type of object, and the text label of the conversation text; when the matching simulation object includes the shadow simulation object of the second type of object, the third model is trained based on the conversation text between the target object and the shadow simulation object of the second type of object, based on the conversation text between the target object and the shadow simulation object of the second type of object, and the text label of the conversation text. The trained model supports outputting the text evaluation result of the conversation text when the conversation text is input.
本实施例中,通过训练多个文本评估模型,且文本评估模型是目标对象对不同类型的模拟对象的文本进行评估后,得到的模型,因此,能够采用多个文本评估模型,对待评估文本进行全面的文本评估处理;进一步地,在对目标对象的待评估文本进行文本评估时,文本评估模型还是自评估模型,使得能够在目标对象的文本评估过程中实现自我反思。In this embodiment, by training multiple text evaluation models, and the text evaluation model is a model obtained after the target object evaluates the text of different types of simulation objects, therefore, multiple text evaluation models can be used to perform comprehensive text evaluation processing on the text to be evaluated; further, when performing text evaluation on the text to be evaluated of the target object, the text evaluation model is also a self-evaluation model, so that self-reflection can be achieved during the text evaluation process of the target object.
在一些实施例中,如图3所示,提供了一种文本评估方法,具体可包括如下步骤:In some embodiments, as shown in FIG3 , a text evaluation method is provided, which may specifically include the following steps:
S500,获取会话过程中目标对象的待评估文本。S500, obtaining the text to be evaluated of the target object during the conversation.
其中,会话过程包括的双方对象为目标对象与客户对象,本申请中,目标对象包括但不限于为人工坐席,在目标对象为人工坐席时,客户对象是与目标对象进行对话的对象,如可以为与人工坐席对话的来电对象,也可以是与人工坐席对话的去电对象。待评估文本可以是会话过程中目标对象所有文本,也可以是会话过程中目标对象所有文本中部分文本,具体可以通过处理人员的设置进行自定义选择。The two objects included in the conversation process are the target object and the customer object. In this application, the target object includes but is not limited to a human agent. When the target object is a human agent, the customer object is the object that has a conversation with the target object, such as the caller object that has a conversation with the human agent, or the outgoing caller object that has a conversation with the human agent. The text to be evaluated can be all the text of the target object during the conversation, or part of the text of all the text of the target object during the conversation, which can be customized through the settings of the processing personnel.
具体地,处理人员在终端的文本处理界面中输入会话过程编号,终端基于用户输入的会话过程编号,生成文本处理请求,并将文本处理请求上传至服务器;服务器提取文本处理请求中的会话过程编号,从数据库中查询会话过程编号对应的目标对象的待评估文本。此外,也可以获取会话过程编号对应的客户对象的文本。Specifically, the processing personnel inputs the session process number in the text processing interface of the terminal. The terminal generates a text processing request based on the session process number input by the user and uploads the text processing request to the server. The server extracts the session process number in the text processing request and searches the database for the text to be evaluated of the target object corresponding to the session process number. In addition, the text of the customer object corresponding to the session process number can also be obtained.
S600,通过文本评估模型对待评估文本进行话术评估处理,确定待评估文本的文本评估结果。S600, performing speech evaluation processing on the text to be evaluated by using a text evaluation model to determine a text evaluation result of the text to be evaluated.
其中,文本评估模型包括如下一个或多个:The text evaluation model includes one or more of the following:
在匹配模拟对象包括目标对象的影子模拟对象的情况下,基于目标对象与目标对象的影子模拟对象之间的会话文本训练得到的第一模型;在匹配模拟对象包括第一类对象的影子模拟对象的情况下,基于目标对象与第一类对象的影子模拟对象之间的会话文本训练得到的第二模型;在匹配模拟对象包括第二类对象的影子模拟对象的情况下,基于目标对象与第二类对象的影子模拟对象之间的会话文本训练得到的第三模型。且第一模型、第二模型、以及第三模型均支持当输入文本时,输出对文本的文本评估结果。In the case where the matching simulation object includes the shadow simulation object of the target object, the first model is obtained based on the conversation text between the target object and the shadow simulation object of the target object; in the case where the matching simulation object includes the shadow simulation object of the first type of object, the second model is obtained based on the conversation text between the target object and the shadow simulation object of the first type of object; in the case where the matching simulation object includes the shadow simulation object of the second type of object, the third model is obtained based on the conversation text between the target object and the shadow simulation object of the second type of object. The first model, the second model, and the third model all support outputting a text evaluation result of the text when the text is input.
通过文本评估模型,对待评估文本进行处理,确定待评估文本的文本评估结果。可以理解的是,每个文本评估模型对应一个待评估文本的文本评估结果。本申请中的文本评估模型包括第一模型、第二模型、以及第三模型中的一个或多个模型,也就是说,文本评估结果也可以包括以下一个或多个:The text to be evaluated is processed by the text evaluation model to determine the text evaluation result of the text to be evaluated. It is understandable that each text evaluation model corresponds to a text evaluation result of the text to be evaluated. The text evaluation model in the present application includes one or more models of the first model, the second model, and the third model, that is, the text evaluation result may also include one or more of the following:
在文本评估模型包括第一模型的情况下,第一模型输出的文本评估结果;在文本评估模型包括第二模型的情况下,第二模型输出的文本评估结果;在文本评估模型包括第三模型的情况下,第三模型输出的文本评估结果中的文本评估结果。When the text evaluation model includes a first model, the text evaluation result output by the first model; when the text evaluation model includes a second model, the text evaluation result output by the second model; when the text evaluation model includes a third model, the text evaluation result among the text evaluation results output by the third model.
通过训练得到的文本评估模型对待评估文本进行处理,确定待评估文本的文本评估结果。The text evaluation model obtained through training processes the text to be evaluated to determine the text evaluation result of the text to be evaluated.
S700,基于文本评估结果,确定待评估文本是否需要进行文本优化。S700: Determine whether the text to be evaluated needs to be optimized based on the text evaluation result.
具体地,由于文本评估结果是由一个或多个文本评估模型得到的结果,且一种文本评估模型对应一种文本评估结果,因此,在文本评估结果为多个时,需要对文本评估结果进行综合处理,即对获取的至少两种文本评估结果进行综合处理,得到文本综合评估结果;进一步地,基于文本综合评估结果,确定待评估文本是否需要进行文本优化。在文本评估结果为一个时,直接基于该文本评估结果,确定待评估文本是否需要进行文本优化。Specifically, since the text evaluation result is obtained by one or more text evaluation models, and one text evaluation model corresponds to one text evaluation result, when there are multiple text evaluation results, it is necessary to perform comprehensive processing on the text evaluation results, that is, to perform comprehensive processing on at least two obtained text evaluation results to obtain a comprehensive text evaluation result; further, based on the comprehensive text evaluation result, it is determined whether the text to be evaluated needs to be optimized. When there is only one text evaluation result, it is directly determined based on the text evaluation result whether the text to be evaluated needs to be optimized.
S800,在需要进行文本优化的情况下,对待评估文本进行文本优化处理,得到优化后文本。S800: When text optimization is required, text optimization processing is performed on the text to be evaluated to obtain an optimized text.
具体地,若本次评估的待评估文本需要进行文本优化,则可以对需要进行文本优化的待评估文本进行文本优化处理,得到待评估文本对应的优化后文本。举例来说,对需要进行文本优化的待评估文本进行文本优化处理的过程可以通过深度学习的方式来完成,如,可以训练文本优化模型,并通过训练完成的文本优化模型对需要进行文本优化的待评估文本进行文本优化处理。Specifically, if the text to be evaluated in this evaluation needs to be optimized, the text to be evaluated that needs to be optimized can be optimized to obtain the optimized text corresponding to the text to be evaluated. For example, the process of optimizing the text to be evaluated that needs to be optimized can be completed by deep learning, such as training a text optimization model, and performing text optimization on the text to be evaluated that needs to be optimized through the trained text optimization model.
上述文本处理方法中,获取会话过程中目标对象的待评估文本;通过文本评估模型对待评估文本进行话术评估处理,确定待评估文本的文本评估结果;基于文本评估结果,确定待评估文本是否需要进行文本优化;在需要进行文本优化的情况下,对待评估文本进行文本优化处理,得到优化后文本。整个过程中,采用支持对待评估文本进行准确文本评估处理的文本评估模型,对会话过程中目标对象的待评估文本进行全面的评估,进而能够准确确定待评估文本中需要进行文本优化的文本,以进行准确的文本优化处理。In the above text processing method, the text to be evaluated of the target object during the conversation is obtained; the text to be evaluated is evaluated by the text evaluation model to determine the text evaluation result of the text to be evaluated; based on the text evaluation result, it is determined whether the text to be evaluated needs to be optimized; if text optimization is required, the text to be evaluated is optimized to obtain the optimized text. Throughout the whole process, a text evaluation model that supports accurate text evaluation of the text to be evaluated is used to comprehensively evaluate the text to be evaluated of the target object during the conversation, so that the text that needs to be optimized in the text to be evaluated can be accurately determined for accurate text optimization.
在一些实施例中,文本评估模型包括以下一个或多个:基于目标对象与目标对象的影子模拟对象之间的会话文本训练得到的第一模型、基于目标对象与第一类对象的影子模拟对象之间的会话文本训练得到的第二模型、以及基于目标对象与第二类对象的影子模拟对象之间的会话文本训练得到的第三模型;In some embodiments, the text evaluation model includes one or more of the following: a first model trained based on a conversation text between a target object and a shadow simulation object of the target object, a second model trained based on a conversation text between the target object and a shadow simulation object of a first type of object, and a third model trained based on a conversation text between the target object and a shadow simulation object of a second type of object;
一个文本评估模型对应一个文本评估结果;基于文本评估结果,确定待评估文本是否需要进行文本优化,包括:One text evaluation model corresponds to one text evaluation result. Based on the text evaluation result, it is determined whether the text to be evaluated needs to be optimized, including:
获取每个文本评估结果的对应权重系数;基于权重系数与文本评估结果,得到文本综合评估结果;基于文本综合评估结果,确定待评估文本是否需要进行文本优化。Obtain the corresponding weight coefficient of each text evaluation result; obtain the comprehensive text evaluation result based on the weight coefficient and the text evaluation result; and determine whether the text to be evaluated needs to be optimized based on the comprehensive text evaluation result.
具体地,一个文本评估模型对应一个文本评估结果,一个文本评估结果对应一个权重系数,也就是说,不同的文本评估结果有着不同的权重系数,基于不同的文本评估结果与文本评估结果对应的权重系数的乘积之和,得到文本综合评估结果。Specifically, a text evaluation model corresponds to a text evaluation result, and a text evaluation result corresponds to a weight coefficient. That is to say, different text evaluation results have different weight coefficients. The comprehensive text evaluation result is obtained based on the sum of the products of different text evaluation results and the weight coefficients corresponding to the text evaluation results.
举例来说,待评估文本为a、b。在第一模型、第二模型、以及第三模型对待评估文本进行处理后,分别得到的文本评估结果的权重系数之比是7:2:1的情况下,若待评估文本为a,采用第一模型、第二模型、以及第三模型对待评估文本a进行文本评估处理,且第一模型输出的文本评估结果为需要进行文本优化,第二模型与第三模型输出的文本评估结果均为无需进行文本优化,则此时基于每个文本评估结果与其对应的权重系数,得到文本综合评估结果为:7。换句话说,通过每个文本评估结果的对应权重系数,将第三模型得到的文本评估结果作为1份,第二模型得到的文本评估结果作为2份,第一模型得到的文本评估结果作为7份,若存在有模型的文本评估结果为需要进行文本优化,则在文本综合评估结果中加上模型对应的份数,若该模型的文本评估结果为不需要进行文本优化,则无需在文本综合评估结果中加上或减去模型对应的份数。For example, the texts to be evaluated are a and b. After the first model, the second model, and the third model process the texts to be evaluated, the ratio of the weight coefficients of the text evaluation results obtained is 7:2:1. If the text to be evaluated is a, the first model, the second model, and the third model are used to perform text evaluation on the text a to be evaluated, and the text evaluation result output by the first model is that text optimization is required, and the text evaluation results output by the second model and the third model are both that no text optimization is required, then based on each text evaluation result and its corresponding weight coefficient, the text comprehensive evaluation result is: 7. In other words, through the corresponding weight coefficient of each text evaluation result, the text evaluation result obtained by the third model is taken as 1 copy, the text evaluation result obtained by the second model is taken as 2 copies, and the text evaluation result obtained by the first model is taken as 7 copies. If there is a model whose text evaluation result is that text optimization is required, the number of copies corresponding to the model is added to the text comprehensive evaluation result. If the text evaluation result of the model is that text optimization is not required, there is no need to add or subtract the number of copies corresponding to the model from the text comprehensive evaluation result.
继续以待评估文本b为例,采用第一模型、第二模型、以及第三模型对待评估文本b进行文本评估处理,第一模型输出的文本评估结果为无需进行文本优化,第二模型与第三模型输出的文本评估结果均为需要进行文本优化,则此时基于文本评估结果与其对应的权重系数,得到文本综合评估结果为:3。Continuing with the example of the text b to be evaluated, the first model, the second model, and the third model are used to perform text evaluation on the text b. The text evaluation result output by the first model is that no text optimization is required, and the text evaluation results output by the second model and the third model both indicate that text optimization is required. At this time, based on the text evaluation result and its corresponding weight coefficient, the comprehensive text evaluation result is: 3.
对各待评估文本的文本综合评估结果进行对比,确定本申请中需要进行文本优化的待评估文本。进一步地,在确定本申请中需要进行文本优化的待评估文本中,可以将文本综合评估结果最高的待评估文本作为需要进行文本优化的待评估文本,比如,将待评估文本a与待评估文本b中的待评估文本a作为需要进行文本优化的待评估文本;也可以设置预设优化阈值,将文本综合评估结果中大于预设优化阈值的待评估文本作为需要进行文本优化的待评估文本,比如,若优化阈值设置为2,则待评估文本a与待评估文本b均为需要进行文本优化的待评估文本。Compare the text comprehensive evaluation results of each text to be evaluated, and determine the text to be evaluated that needs to be optimized in this application. Further, in determining the text to be evaluated that needs to be optimized in this application, the text to be evaluated with the highest text comprehensive evaluation result can be used as the text to be evaluated that needs to be optimized, for example, the text to be evaluated a between the text to be evaluated a and the text to be evaluated b is used as the text to be evaluated that needs to be optimized; a preset optimization threshold can also be set, and the text to be evaluated that is greater than the preset optimization threshold in the text comprehensive evaluation result is used as the text to be evaluated that needs to be optimized, for example, if the optimization threshold is set to 2, then the text to be evaluated a and the text to be evaluated b are both texts to be evaluated that need to be optimized.
本实施例中,通过获取每个文本评估结果的对应权重系数,能够基于权重系数高效得到文本综合评估结果,进而准确判断待评估文本是否需要进行文本优化,以对文本进行更高效的优化。In this embodiment, by obtaining the corresponding weight coefficient of each text evaluation result, the comprehensive text evaluation result can be efficiently obtained based on the weight coefficient, and then it can be accurately determined whether the text to be evaluated needs text optimization, so as to optimize the text more efficiently.
在一些实施例中,如图4所示,S800包括:In some embodiments, as shown in FIG. 4 , S800 includes:
S820,在需要进行文本优化的情况下,获取预设时间段内不同会话产生的第二会话文本。S820: When text optimization is required, obtain second conversation texts generated by different conversations within a preset time period.
S840,在第二会话文本中,筛选得到与待评估文本的相似度大于预设相似度阈值的第一候选文本。S840: Screening out a first candidate text in the second conversation text, the first candidate text having a similarity with the text to be evaluated greater than a preset similarity threshold.
S860,基于第一候选文本确定待评估文本的优化后文本。S860: Determine an optimized text of the text to be evaluated based on the first candidate text.
其中,第二会话文本中包括目标对象的待评估文本。第一候选文本中不包括待评估文本。The second conversation text includes the text to be evaluated of the target object, while the first candidate text does not include the text to be evaluated.
具体地,预设时间段内可以是历史某一时间段,也就是说,可以获取预设时间段内各人工坐席对应的不同会话过程中的第二会话文本,第二会话文本实质上是各人工坐席与人工坐席的对话对象进行会话时产生的会话文本,因此,第二会话文本既包括人工坐席的文本,也包括与人工坐席会话的对话对象的文本,但本申请需要采用的是不同会话过程中人工坐席的文本,因此,需要对不同会话过程中与人工坐席会话的对话对象的文本进行过滤,保留不同会话过程中人工坐席的文本。且第二会话文本中也包括目标对象对应的待评估文本,可以认为,预设时间段内包括待评估文本的产生时间点。此外,在实际应用中,也可以是获取历史某一时间段内不同会话过程中的第三会话文本,预设时间段内不包括待评估文本的产生时间点,并获取目标对象的待评估文本,将待评估文本与第三会话文本结合,作为第二会话文本。Specifically, the preset time period can be a certain time period in history, that is, the second conversation texts in different conversation processes corresponding to each manual seat in the preset time period can be obtained. The second conversation text is essentially the conversation text generated when each manual seat and the dialogue object of the manual seat have a conversation. Therefore, the second conversation text includes both the text of the manual seat and the text of the dialogue object with the manual seat. However, the present application needs to use the text of the manual seat in different conversation processes. Therefore, it is necessary to filter the text of the dialogue object with the manual seat in different conversation processes and retain the text of the manual seat in different conversation processes. The second conversation text also includes the text to be evaluated corresponding to the target object. It can be considered that the preset time period includes the time point when the text to be evaluated is generated. In addition, in actual applications, the third conversation texts in different conversation processes in a certain time period in history can also be obtained. The preset time period does not include the time point when the text to be evaluated is generated, and the text to be evaluated of the target object is obtained, and the text to be evaluated is combined with the third conversation text as the second conversation text.
从第二会话文本中筛选得到与待评估文本的相似度大于预设相似度阈值的第一候选文本。实际应用中,相似度阈值一般设置为0.8。只有在第二会话文本中与待评估文本的相似度大于预设相似度阈值时,获取的第一候选文本才可能是待评估文本的优化文本。可以理解的是,待评估文本的优化后文本与待评估文本的相似度大于预设相似度阈值,但是,与待评估文本的相似度大于预设相似度阈值的文本并不一定是待评估文本的优化后文本,也就是说,第一候选文本并不一定是待评估文本的优化后文本,还需要再对第一候选文本进行一定的筛选处理,才能够将筛选处理后的文本作为待评估文本对应的优化后文本。此外,若第二会话文本中与待评估文本的相似度小于预设相似度阈值,则此部分文本与待评估文本的区别过大,并不能作为待评估文本的优化后文本。The first candidate text whose similarity to the text to be evaluated is greater than the preset similarity threshold is screened from the second conversation text. In practical applications, the similarity threshold is generally set to 0.8. Only when the similarity to the text to be evaluated is greater than the preset similarity threshold in the second conversation text, the first candidate text obtained may be the optimized text of the text to be evaluated. It is understandable that the optimized text of the text to be evaluated is greater than the preset similarity threshold, but the text whose similarity to the text to be evaluated is greater than the preset similarity threshold is not necessarily the optimized text of the text to be evaluated, that is to say, the first candidate text is not necessarily the optimized text of the text to be evaluated, and it is also necessary to perform certain screening process on the first candidate text again, so that the text after the screening process can be used as the optimized text corresponding to the text to be evaluated. In addition, if the similarity to the text to be evaluated in the second conversation text is less than the preset similarity threshold, the difference between this part of text and the text to be evaluated is too large, and can not be used as the optimized text of the text to be evaluated.
本实施例中,通过获取预设时间段内其他人工坐席在会话过程中的会话文本,通过从中筛选第一候选文本,第一候选文本由于是与待评估文本的相似度大于预设相似度阈值的文本,因此,通过将第一候选文本作为待评估文本对应的优化后文本,能够学习其他人工坐席在会话过程中遇到相似情况下的优秀话术,进而实现对待评估文本进行准确优化。In this embodiment, by obtaining the conversation texts of other human agents during the conversation within a preset time period, and by screening the first candidate text therefrom, since the first candidate text is a text whose similarity with the text to be evaluated is greater than a preset similarity threshold, therefore, by using the first candidate text as the optimized text corresponding to the text to be evaluated, it is possible to learn the excellent speech techniques of other human agents in similar situations encountered during the conversation, thereby achieving accurate optimization of the text to be evaluated.
在一些实施例中,在第二会话文本中,筛选得到与待评估文本的相似度大于预设相似度阈值的第一候选文本,还包括:In some embodiments, in the second conversation text, screening out a first candidate text having a similarity with the text to be evaluated greater than a preset similarity threshold, further comprising:
对第二会话文本进行聚类,得到聚类结果;基于聚类结果,获取与待评估文本在同一聚类下的第二候选文本;确定第二候选文本与待评估文本的相似度,并在第二候选文本中筛选得到与待评估文本的相似度大于预设相似度阈值的第一候选文本。The second conversation text is clustered to obtain a clustering result; based on the clustering result, a second candidate text in the same cluster as the text to be evaluated is obtained; the similarity between the second candidate text and the text to be evaluated is determined, and a first candidate text whose similarity with the text to be evaluated is greater than a preset similarity threshold is screened from the second candidate text.
具体地,之所以第二会话文本中包括目标对象的待评估文本的原因在于,需要对第二会话文本进行聚类,以确定第二会话文本中与待评估文本在同一聚类下的文本。也就是说,本申请中确定第一候选文本的过程经过了两次筛选。其中,一次筛选是获取与待评估文本在同一聚类下的第二候选文本;二次筛选是指在第二候选文本中筛选得到与待评估文本的相似度大于预设相似度阈值的第一候选文本。Specifically, the reason why the second conversation text includes the text to be evaluated of the target object is that the second conversation text needs to be clustered to determine the text in the second conversation text that is in the same cluster as the text to be evaluated. That is to say, the process of determining the first candidate text in the present application has undergone two screenings. Among them, the first screening is to obtain the second candidate text in the same cluster as the text to be evaluated; the second screening refers to screening the second candidate text to obtain the first candidate text whose similarity with the text to be evaluated is greater than a preset similarity threshold.
进一步地,聚类手段包括但不限于k-means聚类。聚类过程需要指定聚类的数量,如,能够指定将第二会话文本聚集为几类。对第二会话文本进行聚类,得到聚类结果,聚类结果包括聚类的最终情况,如哪些文本处于同一聚类下。从第二会话文本中获取与待评估文本在同一聚类下的第二候选文本,并获取第二候选文本与待评估文本的相似度。Furthermore, the clustering means include but are not limited to k-means clustering. The clustering process needs to specify the number of clusters, such as being able to specify how many categories the second conversation text is clustered into. The second conversation text is clustered to obtain a clustering result, which includes the final situation of the clustering, such as which texts are in the same cluster. A second candidate text in the same cluster as the text to be evaluated is obtained from the second conversation text, and the similarity between the second candidate text and the text to be evaluated is obtained.
在获取第二候选文本与待评估文本的相似度时,可以通过预先训练的向量语言模型实现。具体来说,预先训练的向量语言模型支持当输入文本时,输出文本对应的句向量。其中,句向量是指一句文本对应的向量。通过预先训练的向量语言模型对第二候选文本与待评估文本进行处理,得到第二候选文本与待评估文本分别对应的句向量。基于第二候选文本的句向量与待评估文本的句向量,确定第二候选文本与待评估文本的相似度。When obtaining the similarity between the second candidate text and the text to be evaluated, it can be achieved through a pre-trained vector language model. Specifically, the pre-trained vector language model supports outputting the sentence vector corresponding to the text when the text is input. Among them, the sentence vector refers to the vector corresponding to a sentence of text. The second candidate text and the text to be evaluated are processed by the pre-trained vector language model to obtain the sentence vectors corresponding to the second candidate text and the text to be evaluated. Based on the sentence vector of the second candidate text and the sentence vector of the text to be evaluated, the similarity between the second candidate text and the text to be evaluated is determined.
基于第二候选文本的句向量与待评估文本的句向量,确定第二候选文本与待评估文本的相似度的方法包括:通过第二候选文本中每一文本的句向量分别与待评估文本的句向量进行向量点乘的方式,获取第二候选文本中每一文本分别与待评估文本的相似度。并基于相似度对第二候选文本进行二次筛选,得到与待评估文本的相似度大于预设相似度阈值的第一候选文本。Based on the sentence vector of the second candidate text and the sentence vector of the text to be evaluated, the method for determining the similarity between the second candidate text and the text to be evaluated includes: obtaining the similarity between each text in the second candidate text and the text to be evaluated by performing vector dot multiplication between the sentence vector of each text in the second candidate text and the sentence vector of the text to be evaluated, and performing secondary screening on the second candidate text based on the similarity to obtain the first candidate text whose similarity with the text to be evaluated is greater than a preset similarity threshold.
本实施例中,在第二会话文本中,筛选得到与待评估文本的相似度大于预设相似度阈值的第一候选文本时,实质上是进行了两次筛选的过程。首先,会获取与待评估文本在同一聚类下的第二候选文本;其次,在第二候选文本中筛选得到与待评估文本的相似度大于预设相似度阈值的第一候选文本。通过两次筛选的过程,能够较少相似度计算时的计算量,不必第二会话文本中每一文本均通过句向量相乘的方式来获取与待评估文本的相似度,从而能够提高优化后文本筛选的效率,进而提高文本处理的效率。In this embodiment, when the first candidate text whose similarity with the text to be evaluated is greater than the preset similarity threshold is screened in the second conversation text, a two-screening process is essentially performed. First, the second candidate text in the same cluster as the text to be evaluated is obtained; second, the first candidate text whose similarity with the text to be evaluated is greater than the preset similarity threshold is screened in the second candidate text. Through the two-screening process, the amount of calculation during similarity calculation can be reduced, and each text in the second conversation text does not need to obtain the similarity with the text to be evaluated by multiplying the sentence vector, thereby improving the efficiency of optimized text screening, and further improving the efficiency of text processing.
在一些实施例中,基于第一候选文本确定待评估文本的优化后文本,包括:In some embodiments, determining an optimized text of the text to be evaluated based on the first candidate text includes:
通过N个文本评估模型对第一候选文本进行评估,确定第一候选文本的N个文本评估结果;若第一候选文本的N个文本评估结果均表征无需进行文本优化时,则基于第一候选文本确定待评估文本的优化后文本。The first candidate text is evaluated by using N text evaluation models to determine N text evaluation results of the first candidate text; if the N text evaluation results of the first candidate text all indicate that no text optimization is required, an optimized text of the text to be evaluated is determined based on the first candidate text.
具体地,与待评估文本的相似度大于预设相似度阈值的第一候选文本并不一定是待评估文本对应的优化后文本,可以理解的是,第一候选文本可能是待评估文本的优化后文本,待评估文本也可能是第一候选文本的优化后文本。通俗来说,第一候选文本可能是比待评估文本的话术要差的文本,也可能是比待评估文本的话术要好的文本。需要从第一候选文本中筛选得到比待评估文本的话术要好的文本。Specifically, the first candidate text whose similarity with the text to be evaluated is greater than the preset similarity threshold is not necessarily the optimized text corresponding to the text to be evaluated. It is understandable that the first candidate text may be the optimized text of the text to be evaluated, and the text to be evaluated may also be the optimized text of the first candidate text. In layman's terms, the first candidate text may be a text with worse rhetoric than the text to be evaluated, or it may be a text with better rhetoric than the text to be evaluated. It is necessary to screen out texts with better rhetoric than the text to be evaluated from the first candidate text.
具体的筛选手段可以包括:采用N个文本评估模型,每个文本评估模型对应一个文本评估结果,确定第一候选文本的N个文本评估结果,文本评估结果表征判断第一候选文本是否需要进行文本优化。若第一候选文本不需要进行文本优化,则此时的第一候选文本不仅是与待评估文本的相似度大于预设相似度阈值的文本,还是比待评估文本的话术要好的文本,因此,可以将无需进行文本优化的第一候选文本作为待评估文本的优化后文本。若第一候选文本需要进行文本优化,则此时的第一候选文本无法确定是否比待评估文本的话术要好,不能作为待评估文本的优化后文本。Specific screening means may include: using N text evaluation models, each text evaluation model corresponds to a text evaluation result, determining N text evaluation results of the first candidate text, and the text evaluation result characterizes whether the first candidate text needs to be optimized. If the first candidate text does not need to be optimized, then the first candidate text at this time is not only a text whose similarity with the text to be evaluated is greater than a preset similarity threshold, but also a text with better rhetoric than the text to be evaluated. Therefore, the first candidate text that does not need to be optimized can be used as the optimized text of the text to be evaluated. If the first candidate text needs to be optimized, then the first candidate text at this time cannot be determined whether it is better than the rhetoric of the text to be evaluated, and cannot be used as the optimized text of the text to be evaluated.
进一步地,采用的N个文本评估模型包括:第一模型、第二模型、以及第三模型,在确定第一候选文本对应的文本评估结果时,第一模型、第二模型、以及第三模型中的一个或多个模型,对第一候选文本进行文本评估,且进行文本评估的每个模型对应的文本评估结果均需要是无需进行文本优化。Furthermore, the N text evaluation models adopted include: a first model, a second model, and a third model. When determining the text evaluation result corresponding to the first candidate text, one or more models among the first model, the second model, and the third model perform text evaluation on the first candidate text, and the text evaluation result corresponding to each model performing text evaluation needs to be that no text optimization is required.
本实施例中,在筛选得到与待评估文本的相似度大于预设相似度阈值的第一候选文本时,还需要采用N个文本评估模型对第一候选文本进行一定的文本评估,以使得第一候选文本是比待评估文本的话术要更好的文本,避免第一候选文本是比待评估文本的话术要更差的文本,而无法对待评估文本进行优化。In this embodiment, when a first candidate text is screened out whose similarity with the text to be evaluated is greater than a preset similarity threshold, N text evaluation models are also required to perform a certain text evaluation on the first candidate text, so that the first candidate text is a text with better wording than the text to be evaluated, to avoid the first candidate text being a text with worse wording than the text to be evaluated, and failing to optimize the text to be evaluated.
在一些实施例中,会话过程的会话对象包括目标对象与目标对象对话的客户对象;In some embodiments, the conversation objects of the conversation process include a target object and a client object having a conversation with the target object;
基于第一候选文本确定待评估文本的优化后文本,包括:Determining an optimized text of the text to be evaluated based on the first candidate text includes:
获取会话过程中待评估文本的互动文本;若互动文本属于待安抚文本,则确定互动文本的安抚文本;拼接安抚文本与第一候选文本,得到待评估文本的优化后文本。Obtain the interactive text of the text to be evaluated during the conversation; if the interactive text belongs to the text to be appeased, determine the appeased text of the interactive text; and concatenate the appeased text with the first candidate text to obtain the optimized text of the text to be evaluated.
其中,互动文本为会话过程中客户对象产生的。Among them, the interactive text is generated by the customer object during the conversation.
具体地,本申请中的优化后文本不仅包括第一候选文本,在客户需要安抚的情况下,优化后文本还包括安抚文本。如,安抚文本可以是:“您放心”。将安抚文本与第一候选文本前后拼接,得到待评估文本的优化后文本。Specifically, the optimized text in this application includes not only the first candidate text, but also the reassuring text when the customer needs to be reassured. For example, the reassuring text can be: "Don't worry." The reassuring text is spliced with the first candidate text to obtain the optimized text of the text to be evaluated.
进一步地,获取安抚文本的手段包括:获取会话过程中待评估文本的互动文本,可以理解的是,会话过程中存在双方对象,包括目标对象与客户对象,目标对象与客户对象之间进行会话。获取本次会话过程中与人工坐席对话的客户对象的文本,将客户对象的文本作为人工坐席产生的待评估文本的互动文本;需要解释的是,此处互动文本是指:互动文本可以是人工坐席的待评估文本的上句文本,也可以是人工坐席的待评估文本的下句文本。且互动文本与待评估文本一一对应。Furthermore, the means of obtaining the soothing text includes: obtaining the interactive text of the text to be evaluated during the conversation. It can be understood that there are two objects in the conversation process, including the target object and the customer object, and the target object and the customer object have a conversation. The text of the customer object that is talking to the manual agent during this conversation is obtained, and the text of the customer object is used as the interactive text of the text to be evaluated generated by the manual agent; it should be explained that the interactive text here means: the interactive text can be the previous sentence text of the text to be evaluated by the manual agent, or it can be the next sentence text of the text to be evaluated by the manual agent. And the interactive text corresponds one-to-one with the text to be evaluated.
对互动文本进行是否为待安抚文本的判断,得到互动文本的判断结果。其中,判断结果包括属于待安抚文本或不属于待安抚文本。对互动文本进行是否为待安抚文本的判断是通过情绪待安抚模型实现的。情绪待安抚模型的训练过程包括:The interactive text is judged whether it is a text to be appeased, and a judgment result of the interactive text is obtained. The judgment result includes whether it belongs to the text to be appeased or not. The judgment of whether the interactive text is a text to be appeased is realized by the emotional appeased model. The training process of the emotional appeased model includes:
A、获取训练数据。举例来说,训练数据可以包括:第一训练文本:“我和他什么关系关你什么事”、以及第一训练文本对应的情绪标签:“拒绝透露关系,待安抚”;第二训练文本:“你们的利息太高了”、以及第二训练文本对应的情绪标签:“质疑利息,待安抚”;第三训练文本:“请问怎么操作”、以及第二训练文本对应的情绪标签:“操作咨询,无需安抚”。A. Obtain training data. For example, the training data may include: a first training text: "What is my relationship with him? What does it have to do with you?", and the emotion label corresponding to the first training text: "Refuse to disclose the relationship, wait to be appeased"; a second training text: "Your interest is too high", and the emotion label corresponding to the second training text: "Questioning the interest, wait to be appeased"; a third training text: "How do I operate?", and the emotion label corresponding to the second training text: "Operation consultation, no need to be appeased".
B、模型训练过程。加载预训练语言模型,如Roberta模型,将获取的B. Model training process. Load a pre-trained language model, such as the Roberta model, and obtain
训练数据输入至预训练语言模型,并设置分类任务,开始训练。得到训练完成的情绪待安抚模型。The training data is input into the pre-trained language model, and the classification task is set to start training. The trained emotional comfort model is obtained.
通过训练完成的情绪待安抚模型对互动文本进行处理,判断客户对象的互动文本是否为待安抚的文本。若是,则还需要进一步确定如何对该互动文本进行安抚。若否,则无需对互动文本进行安抚。The interactive text is processed by the trained emotional comfort model to determine whether the interactive text of the customer object is a text to be comforted. If so, it is necessary to further determine how to comfort the interactive text. If not, there is no need to comfort the interactive text.
在进一步确定如何对该互动文本进行安抚的过程中,可以采用情绪安抚模型来输出待安抚文本对应的安抚文本。需要解释的是,情绪安抚模型区别于情绪待安抚模型。情绪安抚模型是大模型,也就是说,情绪安抚模型是一种生成式模型,可以针对客户对象的待安抚文本,直接输出待安抚文本对应的安抚文本。而情绪待安抚模型是一种判别式模型,能够对客户对象的文本进行是否属于待安抚文本的分类。In the process of further determining how to appease the interactive text, an emotional appeasement model can be used to output the appeasement text corresponding to the text to be appeased. It should be explained that the emotional appeasement model is different from the emotional to-be-appeased model. The emotional appeasement model is a large model, that is, the emotional appeasement model is a generative model that can directly output the appeasement text corresponding to the text to be appeased for the customer object. The emotional to-be-appeased model is a discriminative model that can classify whether the text of the customer object belongs to the text to be appeased.
情绪安抚模型的训练过程包括:The training process of the emotional soothing model includes:
A、加载生成式预训练语言模型,如T5模型。A. Load a generative pre-trained language model, such as the T5 model.
B、获取训练数据。举例来说,情绪安抚模型的训练数据包括:“第四训练数据:我和他什么关系关你什么事”、以及第四训练数据对应的安抚文本: “贷款人留了您的电话,您放心我们会为您保密”;第五训练数据: “你们的利息太高了”、以及第五训练数据对应的安抚文本: “目前利率是……,是合规的,您放心”。B. Obtain training data. For example, the training data of the emotional comfort model includes: "The fourth training data: What is my relationship with him? What does it have to do with you?", and the comfort text corresponding to the fourth training data: "The lender has left your phone number, please rest assured that we will keep it confidential for you"; the fifth training data: "Your interest rate is too high", and the comfort text corresponding to the fifth training data: "The current interest rate is..., it is compliant, please rest assured".
C、基于训练数据,对加载的生成式预训练语言模型进行训练,得到训练完成的情绪安抚模型。C. Based on the training data, the loaded generative pre-trained language model is trained to obtain a trained emotion soothing model.
通过训练完成的情绪安抚模型对属于待安抚文本的互动文本进行处理,输出待安抚文本对应的安抚文本。The interactive text belonging to the text to be soothed is processed through the trained emotion soothing model, and the soothing text corresponding to the text to be soothed is output.
本实施例中,通过拼接安抚文本与第一候选文本,得到待评估文本的优化后文本,使得得到的优化后的文本不止是对原有待评估文本的语义上的优化,还可以对客户对象进行安抚,使得优化的文本更为有效与准确。进一步地,采用情绪待安抚模型对客户对象的互动文本进行是否需要安抚的判断,得到属于待安抚文本的互动文本,并通过情绪安抚模型确定待安抚文本对应的安抚文本,模型的采用能够使得判断的结果和安抚文本的输出更为高效与准确。In this embodiment, the optimized text of the text to be evaluated is obtained by splicing the soothing text and the first candidate text, so that the obtained optimized text is not only a semantic optimization of the original text to be evaluated, but also can soothe the customer object, making the optimized text more effective and accurate. Furthermore, the emotional soothing model is used to judge whether the interactive text of the customer object needs to be soothed, and the interactive text belonging to the text to be soothed is obtained, and the soothing text corresponding to the text to be soothed is determined by the emotional soothing model. The use of the model can make the judgment result and the output of the soothing text more efficient and accurate.
在一些实施例中,在待评估文本不需要进行文本优化的情况下,仍然需要判断获取会话过程中客户对象的互动文本,互动文本为与目标对象的待评估文本对应的文本;若互动文本属于待安抚文本,则确定待安抚文本对应的安抚文本;并将安抚文本作为待评估文本的优化后文本。即,安抚文本与优替文本之间是独立生成的,其中,优替文本是与待评估文本的相似度大于预设相似度阈值,且通过N个文本评估模型的处理得到的结果均为无需进行优化的文本。优化后文本中可以不存在安抚文本,但是存在优替文本;优化后文本中也可以存在安抚文本,但是不存在优替文本;优化后文本中也可以同时存在安抚文本与优替文本;优化后文本中也可以同时不存在安抚文本与优替文本。In some embodiments, when the text to be evaluated does not need to be optimized, it is still necessary to determine the interactive text of the customer object during the conversation, and the interactive text is the text corresponding to the text to be evaluated of the target object; if the interactive text belongs to the text to be appeased, the appeased text corresponding to the text to be appeased is determined; and the appeased text is used as the optimized text of the text to be evaluated. That is, the appeased text and the superior text are generated independently, wherein the superior text is a text whose similarity with the text to be evaluated is greater than a preset similarity threshold, and the results obtained by processing N text evaluation models are all texts that do not need to be optimized. There may be no appeased text in the optimized text, but there is an excellent text; there may be appeased text in the optimized text, but there is no excellent text; there may be both appeased text and excellent text in the optimized text; there may be no appeased text and excellent text in the optimized text.
在一些实施例中,本申请的文本处理实质上是目标对象的自评估与自提升过程。其中,如图5所示为目标对象的自评估过程,如图6所示为目标对象的自提升过程,具体包括的步骤如下:In some embodiments, the text processing of the present application is essentially a self-assessment and self-improvement process of the target object. FIG5 shows the self-assessment process of the target object, and FIG6 shows the self-improvement process of the target object, which specifically includes the following steps:
一、目标对象的自评估过程:1. The self-assessment process of the target object:
1、令某个坐席中心的某个小组内存在人工坐席A、B、C、D、E、F;获取人工坐席A、B、C、D、E、F的所有历史会话文本。1. Suppose there are human agents A, B, C, D, E, and F in a group of a certain agent center; obtain all historical conversation texts of human agents A, B, C, D, E, and F.
2、将每个人工坐席A、B、C、D、E、F分别对应的历史会话文本输入至语言大模型中,分别模拟生成具有各人工坐席A、B、C、D、E、F个体特色的机器人a、b、c、d、e、f,也就是候选模拟对象a、b、c、d、e、f。令人工坐席A为要对她的文本进行评估的目标对象。人工坐席B为与人工坐席A的绩效等级一致的对象,人工坐席F为与人工坐席A的绩效等级相差很大的对象。此时,可以将人工坐席B当作人工坐席A的同类对象,人工坐席F为人工坐席A的不同类对象,在此基础上,将机器人a作为人工坐席A的影子模拟对象,将机器人b作为第一类对象的影子模拟对象,将机器人f作为第二类对象的影子模拟对象。2. Input the historical conversation texts corresponding to each artificial agent A, B, C, D, E, F into the language model, and simulate and generate robots a, b, c, d, e, f with the individual characteristics of each artificial agent A, B, C, D, E, F, that is, candidate simulation objects a, b, c, d, e, f. Artificial agent A is the target object for evaluating her text. Artificial agent B is an object with the same performance level as artificial agent A, and artificial agent F is an object with a very different performance level from artificial agent A. At this time, artificial agent B can be regarded as an object of the same type as artificial agent A, and artificial agent F can be regarded as an object of a different type from artificial agent A. On this basis, robot a is regarded as the shadow simulation object of artificial agent A, robot b is regarded as the shadow simulation object of the first type of object, and robot f is regarded as the shadow simulation object of the second type of object.
3、赋予人工坐席A以客户的身份,赋予人工坐席A、B、F分别对应的机器人a、b、f以坐席的身份。将人工坐席A与机器人坐席进行对话,也就是说,人工坐席A会模仿客户来电的方式与各机器人坐席a、b、f分别进行对话。3. Assign human agent A the identity of a customer, and assign robots a, b, and f corresponding to human agents A, B, and F as the identities of agents. Human agent A will have a conversation with the robot agent, that is, human agent A will imitate the way a customer calls and have a conversation with each robot agent a, b, and f respectively.
4、在人工坐席 A与机器人坐席a进行对话的情况下,得到人工坐席 A与机器人坐席a之间的会话文本,并将会话文本推送至人工坐席A,由人工坐席A标记出机器人坐席a的文本中需要进行优化的文本标签以及不需要进行优化的文本标签,并标记自身表达对坐席的文本表达不满的文本。将机器人坐席a的文本以及文本标签作为训练数据,训练文本评估模型,得到训练完成的第一模型,第一模型支持当输入文本时,输出文本对应的文本评估标签。4. When human agent A and robot agent a are talking, the conversation text between human agent A and robot agent a is obtained, and the conversation text is pushed to human agent A. Human agent A marks the text labels that need to be optimized and the text labels that do not need to be optimized in the text of robot agent a, and marks the text that expresses dissatisfaction with the text of the agent. The text and text labels of robot agent a are used as training data to train the text evaluation model to obtain the first model that has been trained. The first model supports outputting the text evaluation label corresponding to the input text.
5、在人工坐席 A与机器人坐席b进行对话的情况下,得到人工坐席 A与机器人坐席b之间的会话文本,并将会话文本推送至人工坐席A,由人工坐席A标记出机器人坐席b的文本中需要进行优化的文本标签以及不需要进行优化的文本标签,并标记自身表达对坐席的文本表达不满的文本。将机器人坐席b的文本以及文本标签作为训练数据,训练文本评估模型,得到训练完成的第二模型,第二模型支持当输入文本时,输出文本对应的文本评估标签。5. When human agent A and robot agent B are talking, the conversation text between human agent A and robot agent B is obtained, and the conversation text is pushed to human agent A. Human agent A marks the text labels that need to be optimized and the text labels that do not need to be optimized in the text of robot agent B, and marks the text that expresses dissatisfaction with the text of the agent. The text and text labels of robot agent B are used as training data to train the text evaluation model to obtain a trained second model. The second model supports outputting the text evaluation label corresponding to the input text.
6、在人工坐席 A与机器人坐席f进行对话的情况下,得到人工坐席 A与机器人坐席f之间的会话文本,并将会话文本推送至人工坐席A,由人工坐席A标记出机器人坐席f的文本中需要进行优化的文本标签以及不需要进行优化的文本标签,并标记自身表达对坐席的文本表达不满的文本。将机器人坐席f的文本以及文本标签作为训练数据,训练文本评估模型,得到训练完成的第三模型,第三模型支持当输入文本时,输出文本对应的文本评估标签。6. When human agent A and robot agent f are talking, the conversation text between human agent A and robot agent f is obtained, and the conversation text is pushed to human agent A. Human agent A marks the text labels that need to be optimized and the text labels that do not need to be optimized in the text of robot agent f, and marks the text that expresses dissatisfaction with the text of the agent. The text and text labels of robot agent f are used as training data to train the text evaluation model, and a third model that has been trained is obtained. The third model supports outputting the text evaluation label corresponding to the text when the text is input.
二、目标对象的自提升过程:2. The self-improvement process of the target object:
1、获取当前会话过程中人工坐席A的待评估文本1、待评估文本2、以及待评估文本3;获取当前会话过程中待评估文本1对应的客户的上句文本4、待评估文本1对应的客户的上句文本5、以及待评估文本1对应的客户的上句文本6。1. Obtain text 1 to be evaluated, text 2 to be evaluated, and text 3 to be evaluated of agent A during the current conversation; obtain previous sentence text 4 of the customer corresponding to text 1 to be evaluated, previous sentence text 5 of the customer corresponding to text 1 to be evaluated, and previous sentence text 6 of the customer corresponding to text 1 to be evaluated during the current conversation.
2、将待评估文本1、待评估文本2、以及待评估文本3分别输入至第一模型、第二模型、以及第三模型中。以将待评估文本1分别输入至第一模型、第二模型、以及第三模型中为例,每个模型均输出待评估文本1是否为需要进行文本优化的文本,并基于每个模型的输出结果,确定最终待评估文本1是否为需要进行文本优化的文本。采用同样的步骤对待评估文本2与待评估文本3分别进行处理,并对三个待评估文本的文本评估结果进行比较,得到三个待评估文本中最紧急需要文本优化的待评估文本。此处将待评估文本1作为最紧急需要文本优化的待评估文本。2, text to be evaluated 1, text to be evaluated 2 and text to be evaluated 3 are inputted into the first model, the second model and the third model respectively. Taking text to be evaluated 1 being inputted into the first model, the second model and the third model respectively as an example, each model outputs whether text to be evaluated 1 is the text that needs to be optimized for text, and based on the output result of each model, determines whether final text to be evaluated 1 is the text that needs to be optimized for text. Adopt the same step to process text to be evaluated 2 and text to be evaluated 3 respectively, and compare the text evaluation results of three texts to be evaluated, obtain the text to be evaluated that most urgently needs text optimization among the three texts to be evaluated. Here, text to be evaluated 1 is used as the text to be evaluated that most urgently needs text optimization.
3、将评估文本1对应的客户的上句文本4输入至情绪待安抚模型,情绪待安抚模型支持当输入文本时,输出文本是否表征需要安抚的结果。此时令情绪待安抚模型输出文本4为待安抚文本,则将文本4输入至情绪安抚模型,情绪安抚模型支持当输入待安抚文本时,输出文本对应的安抚文本。此时,情绪安抚模型输出文本4对应的安抚文本。3. Input the previous sentence text 4 of the customer corresponding to the evaluation text 1 into the emotional soothing model. The emotional soothing model supports outputting whether the text represents the result of needing soothing when the text is input. At this time, let the emotional soothing model output text 4 as the text to be soothed, and then input text 4 into the emotional soothing model. The emotional soothing model supports outputting the soothing text corresponding to the text when the text to be soothed is input. At this time, the emotional soothing model outputs the soothing text corresponding to text 4.
4、确定待评估文本1的优替文本。其中,待评估文本1的优替文本是需要与待评估文本的相似度高于0.8,且为不需要进行文本优化的文本。也就是说,在将优替文本输入至第一模型、第二模型、以及第三模型时,三种模型输出的文本评估结果均应为无需进行文本优化。进一步地,与待评估文本的相似度高于0.8的判断步骤是:首先,获取所有人工坐席A、B、C、D、E、F的历史会话文本数据,并采用聚类的手段,确定历史会话文本数据中的各文本与待评估文本在同一聚类下的文本,并对与待评估文本在同一聚类下的文本分别与待评估文本计算相似度,确定与待评估文本的相似度高于0.8的文本。4. Determine the superior text of the text to be evaluated 1. Among them, the superior text of the text to be evaluated 1 needs to have a similarity with the text to be evaluated higher than 0.8, and is a text that does not need to be optimized. That is to say, when the superior text is input into the first model, the second model, and the third model, the text evaluation results output by the three models should all be text optimization is not required. Further, the judgment step of the similarity with the text to be evaluated higher than 0.8 is: first, obtain the historical conversation text data of all artificial seats A, B, C, D, E, and F, and use clustering to determine the texts in the historical conversation text data that are in the same cluster as the text to be evaluated, and calculate the similarity with the text to be evaluated respectively for the text in the same cluster as the text to be evaluated, and determine the texts with a similarity higher than 0.8 with the text to be evaluated.
5、拼接安抚文本与优替文本,得到待评估文本1的优化后文本。5. Splice the comfort text and the alternative text to obtain the optimized text of the text to be evaluated 1.
此外,若待评估文本为不需要文本优化的文本,则将待评估文本对应的客户的上句文本输入至情绪待安抚模型。若情绪待安抚模型输出客户的上句文本为待安抚文本,则将客户的上句文本输入至情绪安抚模型,情绪安抚模型输出客户的上句文本对应的安抚文本。并将安抚文本作为优化后文本。In addition, if the text to be evaluated is a text that does not require text optimization, the previous sentence text of the customer corresponding to the text to be evaluated is input into the emotional soothing model. If the emotional soothing model outputs that the previous sentence text of the customer is the text to be soothed, the previous sentence text of the customer is input into the emotional soothing model, and the emotional soothing model outputs the soothing text corresponding to the previous sentence text of the customer. The soothing text is used as the optimized text.
若待评估文本为不需要文本优化的文本,且情绪待安抚模型输出客户的上句文本为无需待安抚文本,则无需对待评估文本进行优化。If the text to be evaluated is text that does not require text optimization, and the emotional comfort model outputs that the customer's previous sentence text does not require comfort, then there is no need to optimize the text to be evaluated.
应该理解的是,虽然如上所述的各实施例所涉及的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,如上所述的各实施例所涉及的流程图中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
基于同样的发明构思,本申请实施例还提供了一种用于实现上述所涉及的文本评估模型的训练方法的文本评估模型的训练装置、以及一种用于实现上述所涉及的文本评估方法的文本评估装置。上述装置所提供的解决问题的实现方案与上述方法中所记载的实现方案相似,故下面所提供的一个或多个文本评估模型的训练装置实施例中的具体限定可以参见上文中对于文本评估模型的训练方法的限定、一个或多个文本评估装置实施例中的具体限定可以参见上文中对于文本评估方法的限定在此不再赘述。Based on the same inventive concept, the embodiment of the present application also provides a text evaluation model training device for implementing the above-mentioned text evaluation model training method, and a text evaluation device for implementing the above-mentioned text evaluation method. The implementation scheme for solving the problem provided by the above-mentioned device is similar to the implementation scheme recorded in the above-mentioned method, so the specific limitations in the embodiments of the training device for one or more text evaluation models provided below can refer to the limitations of the training method for the text evaluation model above, and the specific limitations in the embodiments of one or more text evaluation devices can refer to the limitations of the text evaluation method above, which will not be repeated here.
在一些实施例中,如图7所示,提供了一种文本评估模型的训练装置,包括:确定模块100、匹配模块200、会话模块300和训练模块400,其中:In some embodiments, as shown in FIG. 7 , a training device for a text evaluation model is provided, comprising: a determination module 100 , a matching module 200 , a conversation module 300 , and a training module 400 , wherein:
确定模块100,用于确定目标对象的候选模拟对象;候选模拟对象包括目标对象的影子模拟对象和非目标对象的影子模拟对象;A determination module 100 is used to determine candidate simulation objects of a target object; the candidate simulation objects include shadow simulation objects of the target object and shadow simulation objects of non-target objects;
匹配模块200,用于从候选模拟对象中确定与目标对象匹配的匹配模拟对象;A matching module 200, for determining a matching simulation object that matches the target object from the candidate simulation objects;
会话模块300,用于建立目标对象与匹配模拟对象之间的会话,并获取会话过程中匹配模拟对象的会话文本与会话文本的文本标签;The conversation module 300 is used to establish a conversation between the target object and the matching simulation object, and obtain the conversation text of the matching simulation object and the text label of the conversation text during the conversation;
训练模块400,用于基于会话文本与文本标签,对文本评估模型进行训练。The training module 400 is used to train the text evaluation model based on the conversation text and the text label.
在一些实施例中,确定模块100还用于获取预设初始文本模拟模型,以及确定非目标对象,并获取目标对象的第一历史会话数据与非目标对象的第二历史会话数据;非目标对象与目标对象是同一业务场景中属于服务角色的不同用户;基于第一历史会话数据,对预设初始文本模拟模型进行训练,得到目标对象的影子模拟对象;目标对象的影子模拟对象与目标对象具有相同个体特色,具有相同个体特色是指目标对象的影子模拟对象在会话过程中模仿第一历史会话数据来进行会话;基于第二历史会话数据,对预设初始文本模拟模型进行训练,得到非目标对象的影子模拟对象;非目标对象的影子模拟对象与非目标对象具有相同个体特色,具有相同个体特色是指非目标对象的影子模拟对象在会话过程中模仿第二历史会话数据来进行会话。In some embodiments, the determination module 100 is also used to obtain a preset initial text simulation model, determine a non-target object, and obtain first historical session data of the target object and second historical session data of the non-target object; the non-target object and the target object are different users belonging to a service role in the same business scenario; based on the first historical session data, the preset initial text simulation model is trained to obtain a shadow simulation object of the target object; the shadow simulation object of the target object has the same individual characteristics as the target object, and having the same individual characteristics means that the shadow simulation object of the target object imitates the first historical session data to conduct a conversation during the conversation; based on the second historical session data, the preset initial text simulation model is trained to obtain a shadow simulation object of the non-target object; the shadow simulation object of the non-target object has the same individual characteristics as the non-target object, and having the same individual characteristics means that the shadow simulation object of the non-target object imitates the second historical session data to conduct a conversation during the conversation.
在一些实施例中,会话模块300还用于为目标对象分配客户角色,以及为匹配模拟对象分配坐席角色;建立客户角色与坐席角色之间的会话。In some embodiments, the conversation module 300 is further used to assign a customer role to the target object and an agent role to the matching simulation object; and to establish a conversation between the customer role and the agent role.
在一些实施例中,非目标对象的影子模拟对象包括第一类对象的影子模拟对象和第二类对象的影子模拟对象,第一类对象与目标对象为同类对象,第二类对象与目标对象为不同类对象;In some embodiments, the shadow simulation objects of the non-target objects include shadow simulation objects of first-category objects and shadow simulation objects of second-category objects, the first-category objects and the target objects are of the same type, and the second-category objects and the target objects are of different types;
匹配模拟对象包括如下一个或多个:Matching simulation objects include one or more of the following:
目标对象的影子模拟对象、第一类对象的影子模拟对象和第二类对象的影子模拟对象;一个匹配模拟对象对应一个文本评估模型,文本评估模型包括下述一个或多个:在匹配模拟对象包括目标对象的影子模拟对象的情况下,基于目标对象与目标对象的影子模拟对象之间的会话文本训练得到的第一模型;在匹配模拟对象包括第一类对象的影子模拟对象的情况下,基于目标对象与第一类对象的影子模拟对象之间的会话文本训练得到的第二模型;在匹配模拟对象包括第二类对象的影子模拟对象的情况下,基于目标对象与第二类对象的影子模拟对象之间的会话文本训练得到的第三模型。The shadow simulation object of the target object, the shadow simulation object of the first category of objects and the shadow simulation object of the second category of objects; one matching simulation object corresponds to a text evaluation model, and the text evaluation model includes one or more of the following: when the matching simulation object includes the shadow simulation object of the target object, a first model is obtained based on the conversation text between the target object and the shadow simulation object of the target object; when the matching simulation object includes the shadow simulation object of the first category of objects, a second model is obtained based on the conversation text between the target object and the shadow simulation object of the first category of objects; when the matching simulation object includes the shadow simulation object of the second category of objects, a third model is obtained based on the conversation text between the target object and the shadow simulation object of the second category of objects.
在一些实施例中,如图8所示,提供了一种文本评估装置,包括:获取模块500、评估模块600、分析模块700和处理模块800,其中:In some embodiments, as shown in FIG8 , a text evaluation device is provided, including: an acquisition module 500, an evaluation module 600, an analysis module 700, and a processing module 800, wherein:
获取模块500,用于获取会话过程中目标对象的待评估文本;An acquisition module 500 is used to acquire the text to be evaluated of the target object during the conversation;
评估模块600,用于通过文本评估模型对待评估文本进行话术评估处理,确定待评估文本的文本评估结果;其中,文本评估模型采用文本评估模型的训练方法建立;分析模块700,用于基于文本评估结果,确定待评估文本是否需要进行文本优化;An evaluation module 600 is used to perform a speech evaluation process on the text to be evaluated by using a text evaluation model to determine a text evaluation result of the text to be evaluated; wherein the text evaluation model is established by using a training method of a text evaluation model; an analysis module 700 is used to determine whether the text to be evaluated needs to be optimized based on the text evaluation result;
处理模块800,用于在需要进行文本优化的情况下,对待评估文本进行文本优化处理,得到优化后文本。The processing module 800 is used to perform text optimization processing on the text to be evaluated to obtain an optimized text when text optimization is required.
在一些实施例中,文本评估模型包括以下一个或多个:基于目标对象与目标对象的影子模拟对象之间的会话文本训练得到的第一模型、基于目标对象与第一类对象的影子模拟对象之间的会话文本训练得到的第二模型、以及基于目标对象与第二类对象的影子模拟对象之间的会话文本训练得到的第三模型;一个文本评估模型对应一个文本评估结果;分析模块700还用于获取每个文本评估结果的权重系数;基于权重系数与文本评估结果,得到文本综合评估结果;基于文本综合评估结果,确定待评估文本是否需要进行文本优化。In some embodiments, the text evaluation model includes one or more of the following: a first model obtained based on the conversation text training between the target object and the shadow simulation object of the target object, a second model obtained based on the conversation text training between the target object and the shadow simulation object of the first category of objects, and a third model obtained based on the conversation text training between the target object and the shadow simulation object of the second category of objects; one text evaluation model corresponds to one text evaluation result; the analysis module 700 is also used to obtain the weight coefficient of each text evaluation result; based on the weight coefficient and the text evaluation result, obtain a comprehensive text evaluation result; based on the comprehensive text evaluation result, determine whether the text to be evaluated needs text optimization.
在一些实施例中,处理模块800还用于在需要进行文本优化的情况下,获取预设时间段内不同会话产生的第二会话文本,第二会话文本中包括目标对象的待评估文本;在第二会话文本中,筛选得到与待评估文本的相似度大于预设相似度阈值的第一候选文本;第一候选文本中不包括待评估文本;基于第一候选文本确定待评估文本的优化后文本。In some embodiments, the processing module 800 is also used to obtain a second conversation text generated by different conversations within a preset time period when text optimization is required, the second conversation text including the text to be evaluated of the target object; in the second conversation text, screen out a first candidate text whose similarity with the text to be evaluated is greater than a preset similarity threshold; the first candidate text does not include the text to be evaluated; and determine the optimized text of the text to be evaluated based on the first candidate text.
在一些实施例中,处理模块800还用于对第二会话文本进行聚类,得到聚类结果;基于聚类结果,获取与待评估文本在同一聚类下的第二候选文本;确定第二候选文本与待评估文本的相似度,并在第二候选文本中筛选得到与待评估文本的相似度大于预设相似度阈值的第一候选文本。In some embodiments, the processing module 800 is also used to cluster the second conversation text to obtain a clustering result; based on the clustering result, obtain a second candidate text in the same cluster as the text to be evaluated; determine the similarity between the second candidate text and the text to be evaluated, and screen the first candidate text from the second candidate text whose similarity with the text to be evaluated is greater than a preset similarity threshold.
在一些实施例中,处理模块800还用于通过N个文本评估模型对第一候选文本进行评估,确定第一候选文本的N个文本评估结果;若第一候选文本的N个文本评估结果均表征无需进行文本优化,则基于第一候选文本确定待评估文本的优化后文本。In some embodiments, the processing module 800 is also used to evaluate the first candidate text through N text evaluation models to determine N text evaluation results of the first candidate text; if the N text evaluation results of the first candidate text all indicate that no text optimization is required, then the optimized text of the text to be evaluated is determined based on the first candidate text.
在一些实施例中,会话过程的会话对象包括目标对象以及与目标对象对话的客户对象;处理模块800还用于获取会话过程中待评估文本的互动文本,互动文本为会话过程中客户对象产生的; 若互动文本属于待安抚文本,则确定互动文本的安抚文本;拼接安抚文本与第一候选文本,得到待评估文本的优化后文本。In some embodiments, the conversation objects of the conversation process include a target object and a customer object that dialogues with the target object; the processing module 800 is also used to obtain the interactive text of the text to be evaluated during the conversation, and the interactive text is generated by the customer object during the conversation; if the interactive text belongs to the text to be appeased, the appeasing text of the interactive text is determined; the appeasing text and the first candidate text are spliced to obtain the optimized text of the text to be evaluated.
上述文本评估装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。Each module in the above text evaluation device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
在一些实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图9所示。该计算机设备包括处理器、存储器、输入/输出接口(Input/Output,简称I/O)和通信接口。其中,处理器、存储器和输入/输出接口通过系统总线连接,通信接口通过输入/输出接口连接到系统总线。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质和内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的数据库用于存储会话过程中目标对象的待评估文本等数据。该计算机设备的输入/输出接口用于处理器与外部设备之间交换信息。该计算机设备的通信接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种文本处理方法。In some embodiments, a computer device is provided, which may be a server, and its internal structure diagram may be shown in FIG9. The computer device includes a processor, a memory, an input/output interface (Input/Output, referred to as I/O) and a communication interface. The processor, the memory and the input/output interface are connected via a system bus, and the communication interface is connected to the system bus via the input/output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as the text to be evaluated of the target object during the session. The input/output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a text processing method is implemented.
本领域技术人员可以理解,图9中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art will understand that the structure shown in FIG. 9 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
在一些实施例中,还提供了一种计算机设备,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现上述各方法实施例中的步骤。In some embodiments, a computer device is also provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.
在一些实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述各方法实施例中的步骤。In some embodiments, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
在一些实施例中,提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现上述各方法实施例中的步骤。In some embodiments, a computer program product is provided, including a computer program, which implements the steps in the above-mentioned method embodiments when executed by a processor.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-OnlyMemory,ROM)、磁带、软盘、闪存、光存储器、高密度嵌入式非易失性存储器、阻变存储器(ReRAM)、磁变存储器(Magnetoresistive Random Access Memory,MRAM)、铁电存储器(Ferroelectric Random Access Memory,FRAM)、相变存储器(Phase Change Memory,PCM)、石墨烯存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器等。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic RandomAccess Memory,DRAM)等。本申请所提供的各实施例中所涉及的数据库可包括关系型数据库和非关系型数据库中至少一种。非关系型数据库可包括基于区块链的分布式数据库等,不限于此。本申请所提供的各实施例中所涉及的处理器可为通用处理器、中央处理器、图形处理器、数字信号处理器、可编程逻辑器、基于量子计算的数据处理逻辑器等,不限于此。Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请的保护范围应以所附权利要求为准。The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims (15)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410349582.8A CN118656452A (en) | 2024-03-25 | 2024-03-25 | Text evaluation model training method, text evaluation method and related device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410349582.8A CN118656452A (en) | 2024-03-25 | 2024-03-25 | Text evaluation model training method, text evaluation method and related device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN118656452A true CN118656452A (en) | 2024-09-17 |
Family
ID=92706907
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202410349582.8A Pending CN118656452A (en) | 2024-03-25 | 2024-03-25 | Text evaluation model training method, text evaluation method and related device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN118656452A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN121281844A (en) * | 2025-12-05 | 2026-01-06 | 苏州南医大创新中心 | AI-driven virtual doctor interview system and neural developmental disorder assessment method |
-
2024
- 2024-03-25 CN CN202410349582.8A patent/CN118656452A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN121281844A (en) * | 2025-12-05 | 2026-01-06 | 苏州南医大创新中心 | AI-driven virtual doctor interview system and neural developmental disorder assessment method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2022095380A1 (en) | Ai-based virtual interaction model generation method and apparatus, computer device and storage medium | |
| KR102377419B1 (en) | Non-verbal evaluation method, system and computer-readable medium based on machine learning | |
| US20200051451A1 (en) | Short answer grade prediction | |
| CN110580516B (en) | Interaction method and device based on intelligent robot | |
| US20170032027A1 (en) | Contact Center Virtual Assistant | |
| CN112579757A (en) | Intelligent question and answer method and device, computer readable storage medium and electronic equipment | |
| US11295731B1 (en) | Artificial intelligence (AI) enabled prescriptive persuasion processes based on speech emotion recognition and sentiment analysis | |
| TW201011735A (en) | Method and system for generating dialogue managers with diversified dialogue acts | |
| CN114372123A (en) | A Conversational Human-Computer Interaction Customization and Service System | |
| US11049510B1 (en) | Method and apparatus for artificial intelligence (AI)-based computer-aided persuasion system (CAPS) | |
| CN115083434A (en) | Emotion recognition method and device, computer equipment and storage medium | |
| CN116610784A (en) | Insurance business scene question-answer recommendation method and related equipment thereof | |
| CN119127648A (en) | Intelligent agent evaluation method, device, electronic device and storage medium | |
| CN115062627B (en) | Method and apparatus for an artificial intelligence based computer aided persuasion system | |
| CN118134049A (en) | Conference decision support condition prediction method, device, equipment, medium and product | |
| CN119150814A (en) | Conference summary generation method, device, terminal and computer readable storage medium | |
| CN118656452A (en) | Text evaluation model training method, text evaluation method and related device | |
| EP4619843A1 (en) | Topic, tone, persona, and visually-aware virtual-reality and augmented-reality assistants | |
| CN113379572A (en) | House source explanation method and device, computer readable storage medium and electronic equipment | |
| CN111046151A (en) | Message processing method and device | |
| CN114974253B (en) | Natural language interpretation method, device and storage medium based on character image | |
| Bird | Improving customer service chatbots with attention-based transfer learning | |
| CN115022470A (en) | Intelligent voice navigation voice recognition method and device based on computer algorithm model | |
| CN114422647A (en) | Digital person-based agent service method, apparatus, device, medium, and product | |
| CN116741143B (en) | Digital-body-based personalized AI business card interaction method and related components |
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 |