Recommendation method of dispute mediation verbal skill, electronic equipment and storage medium

Through real-time voice information conversion and response phrase library matching, standardized response phrases are provided, which solves the problem of mediators' lack of standardized training in dispute mediation and improves mediation efficiency and success rate.

CN118733738APending Publication Date: 2024-10-01SHANGHAI JINQIAO YIFA INFORMATION TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410883363.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-03
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Mediators lack a standardized and quantifiable training system in the dispute mediation process, resulting in uncertainty and low efficiency in mediation results.

Method used

By acquiring the voice information in the mediation process in real time, converting it into text information, and searching for a matching set of target utterances in the response utterance library, the final question and response utterances are determined to provide standardized responses.

Benefits of technology

It improves the efficiency and quality of mediation, reduces the risk of complaints caused by improper speaking skills, reduces the reliance on the mediator's communication experience and speaking skills, and enhances the professionalism and standardization of response skills.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733738A_ABST
    Figure CN118733738A_ABST
Patent Text Reader

Abstract

The invention provides a dispute mediation verbal skill recommendation method, electronic equipment and a storage medium. The method comprises the following steps: acquiring voice information in a dispute mediation process in real time; converting the voice information into corresponding text information in real time, wherein the text information comprises first text information corresponding to the party; a first target verbal skill set matched with the first text information is searched in a response verbal skill library, questioning verbal skill sets in one-to-one correspondence with the questioning scenes and response verbal skill in one-to-one correspondence with the questioning scenes are stored in the response verbal skill library, and the first target verbal skill set comprises multiple questioning verbal skill; determining the questioning verbal skill with the highest matching degree with the first text information in the first target verbal skill set as a final questioning verbal skill; determining a response verbal skill with the same questioning scene corresponding to the final questioning verbal skill as a target response verbal skill in a response verbal skill library; and outputting the target response verbal skill. According to the scheme, the standard response verbal skill can be accurately recommended to the mediator.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of dispute mediation, and more specifically to a method for recommending dispute mediation speech, an electronic device and a computer-readable storage medium. Background Art

[0002] As the central government continues to implement the transformation of the conflict resolution model to "mediation as the center, litigation as the ultimate guarantee" to improve the legal level of conflict prevention and resolution, the number of court mediation cases has also surged. During the mediation process, the telephone communication between the mediator and the parties is the core link of mediation communication. The mediator needs to communicate with the parties a lot by phone to negotiate the mediation plan. In this process, the effectiveness of mediation work depends largely on the communication experience and speech skills of the mediator, and there is a lack of standardized and quantifiable training system, which leads to uncertainty in mediation results and low mediation efficiency. Summary of the invention

[0003] The present invention is proposed in consideration of the above problems. According to one aspect of the present invention, a method for recommending dispute mediation speech is provided, comprising: obtaining voice information in the dispute mediation process in real time; converting the voice information into corresponding text information in real time, the text information including first text information corresponding to the parties; searching for a first target speech set matching the first text information in a response speech library, wherein the response speech library stores a question speech set corresponding to at least one question scenario and a response speech corresponding to at least one question scenario, the question speech set includes at least one question speech, and the first target speech set includes multiple question speeches; determining the question speech in the first target speech set that has the highest matching degree with the first text information as the final question speech; determining the response speech in the response speech library that has the same question scenario as the final question speech as the target response speech; and outputting the target response speech.

[0004] Exemplarily, the response speech library also includes a question speech vector corresponding to each stored question speech; searching the response speech library for a first target speech set that matches the first text information includes: vectorizing the first text information to obtain a first text vector; calculating the similarity between the first text vector and at least some of the question speech vectors in the response speech library; determining the question speech corresponding to a first preset number of question speech vectors that have the greatest similarity with the first text vector in at least some of the question speech vectors as the first target speech set.

[0005] Exemplarily, determining the question words in the first target word set that have the highest match with the first text information as the final question words includes: performing a first deduplication operation on the first target word set to remove repeated question words in the first target word set that belong to the same question scenario; after the first deduplication operation is completed, determining the question words in the first target word set that have the greatest similarity with the first text information as the final question words.

[0006] Exemplarily, the response script library is constructed using the following method: for each question scenario, an initial question script and a response script corresponding to the initial question script are obtained; the initial question script is amplified using a large language model to obtain at least one amplified question script with the same meaning as the initial question script; the initial question script and the at least one amplified question script are vectorized; the speech vectors corresponding to the initial question script, the at least one amplified question script, the initial question script and the at least one amplified question script, and the response script corresponding to the initial question script are stored in the response script library.

[0007] Exemplarily, the text information includes second text information corresponding to the mediator; the method also includes: searching for a second target speech set matching the second text information in a guidance speech library, wherein the guidance speech library stores a guidance speech set corresponding one-to-one to at least one guidance scenario, the guidance speech set includes at least one guidance speech, and each guidance speech in the at least one guidance speech has the same meaning; determining the guidance speech in the second target speech set that has the highest match with the second text information as the final guidance speech; and outputting the final guidance speech.

[0008] Exemplarily, the guiding speech library also includes a guiding speech vector corresponding to each stored guiding speech; searching the guiding speech library for a second target speech set that matches the second text information includes: vectorizing the second text information to obtain a second text vector; calculating the similarity between the second text vector and at least some of the guiding speech vectors in the guiding speech library; and determining the guiding speech corresponding to each of a second preset number of guiding speech vectors having the greatest similarity with the second text vector in at least some of the guiding speech vectors as the second target speech set.

[0009] Exemplarily, determining the guiding speech with the highest matching degree with the second text information in the second target speech set as the final guiding speech includes: performing a second deduplication operation on the second target speech set to remove repeated guiding speech belonging to the same guiding scenario in the second target speech set; after the second deduplication operation is completed, determining the guiding speech with the greatest similarity with the second text information in the second target speech set as the final guiding speech.

[0010] Exemplarily, the guidance speech library is constructed using the following method: for each guidance scenario, initial guidance speech is obtained; the initial guidance speech is amplified using a large language model to obtain at least one amplified guidance speech with the same meaning as the initial guidance speech; the initial guidance speech and the at least one amplified guidance speech are vectorized; the initial guidance speech, the at least one amplified guidance speech, and the speech vectors corresponding to the initial guidance speech and the at least one amplified guidance speech are stored in the guidance speech library.

[0011] Exemplarily, before searching the response speech library for a first target speech set that matches the first text information, the method also includes: preprocessing the text information to obtain preprocessed text information; searching the response speech library for a first target speech set that matches the first text information, including: searching the response speech library for a first target speech set that matches the first text information in the preprocessed text information.

[0012] Exemplarily, the text information includes multiple text segments and role labels corresponding to the multiple text segments one by one; the text information is preprocessed, including: based on a preset correspondence, unifying the role labels corresponding to the multiple text segments one by one into mediator and party; for any two adjacent text segments among the multiple text segments, when the role labels corresponding to the two text segments are the same, merging the two text segments into the same text segment; wherein the first text information is the latest text segment with the role label of party.

[0013] Exemplarily, preprocessing the text information includes: performing text cleaning on the text information to remove redundant information in the text information, where the redundant information includes any one or more of special symbols, modal particles and repeated words.

[0014] According to another aspect of the present invention, an electronic device is provided, including a processor and a memory, wherein a computer program is stored in the memory, and the processor is used to execute the computer program to implement the above-mentioned recommendation method.

[0015] According to another aspect of the present invention, a computer-readable storage medium is provided, storing a computer program / instruction, and when the computer program / instruction is executed by a processor, the above-mentioned recommendation method is implemented.

[0016] The above technical solution can search for a first target speech set that matches the party’s question (i.e., the first text information) in the response speech library, and then determine the final question speech in the first target speech set, and determine the target response speech according to the question scenario corresponding to the first question speech. This method can comprehensively consider the party’s questions and the current question scenario, and accurately match the target response speech in the response speech library, thereby helping to improve the efficiency and quality of mediation, ensure the smooth progress of the mediation process, and reduce the risk of mediation complaints caused by improper speech. In short, this solution can more accurately recommend standard response speech to mediators, help reduce dependence on the mediator’s communication experience and speech skills, improve the professionalism and standardization of response speech, thereby helping to improve mediation efficiency and mediation success rate, and promote the smooth handling of disputes and contradictions.

[0017] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The above and other purposes, features and advantages of the present invention will become more apparent by describing the embodiments of the present invention in more detail in conjunction with the accompanying drawings. The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings, the same reference numerals generally represent the same components or steps.

[0019] Figure 1 A schematic flow chart showing a method for recommending dispute mediation speech according to an embodiment of the present invention;

[0020] Figure 2 A schematic flow chart showing a method for recommending dispute mediation speech according to a specific embodiment of the present invention;

[0021] Figure 3 A schematic block diagram of an electronic device according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0022] In order to make the purpose, technical scheme and advantages of the present invention more obvious, the exemplary embodiments according to the present invention will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments of the present invention, and it should be understood that the present invention is not limited to the exemplary embodiments described herein. Based on the embodiments of the present invention described in the present invention, all other embodiments obtained by those skilled in the art without creative work should fall within the protection scope of the present invention.

[0023] As mentioned above, the effectiveness of mediation work depends largely on the communication experience and speech skills of the mediator, and in practice, the mediator often needs to flexibly use various speech skills according to the specific situation, which also depends on the experience and skills of the mediator. These speech skills lack systematic and standardized operations, which makes the mediation results greatly affected by the personal ability of the mediator, which leads to uncertainty in the mediation results and low mediation efficiency. To this end, the present invention provides a method for recommending dispute mediation speech skills, an electronic device, and a computer-readable storage medium, which can quickly and accurately provide standard answering speech skills to the mediator based on the questions of the parties, thereby helping to improve the efficiency and quality of mediation, ensure the smooth progress of the mediation process, and reduce the risk of mediation complaints caused by improper speech skills. The recommendation method, electronic device, and computer-readable storage medium are described in detail below.

[0024] According to one aspect of the present invention, a method for recommending dispute mediation speech is provided. Figure 1 FIG. 1 is a schematic flow chart showing a method for recommending dispute mediation techniques according to an embodiment of the present invention. Figure 1 As shown, the recommendation method 100 may include the following steps S110, S120, S130, S140, S150 and S160.

[0025] In step S110, voice information during the dispute mediation process is acquired in real time.

[0026] It can be understood that the dispute mediation process refers to the telephone communication between the mediator and the parties. The voice information in the dispute mediation process is the audio data in the above telephone communication process. The audio data can be recorded by the recording software or other recording equipment that comes with the phone during the telephone communication process. In step S110, the audio data in the above telephone communication process can be obtained in real time.

[0027] In step S120, the voice information is converted into corresponding text information in real time, and the text information includes first text information corresponding to the party concerned.

[0028] Optionally, the voice information can be converted into corresponding text information through any existing or future developed voice-to-text technology. For example, the voice information can be converted into text information through an automatic speech recognition (ASR) algorithm. Of course, the text information can also be obtained through the built-in voice-to-text function of the existing mediation platform system.

[0029] As mentioned above, the dispute mediation process refers to the telephone communication between the mediator and the parties. When the voice information is converted in real time, the identity of the speaker can be distinguished, that is, the text of the mediator and the text of the parties can be distinguished in the text information, and they are marked accordingly to determine the first text information.

[0030] In this article, the first text message corresponds to the party. Specifically, the first text message corresponds to the latest question asked by the party. It is understandable that the text message must be in the form of multiple rounds of dialogue, that is, one sentence of voice data of the party and one sentence of voice data of the mediator. In some embodiments, the first text message can be the latest text among multiple texts marked as parties in the text message. It is understandable that the latest text in the text marked as the party is the latest question asked by the party (that is, the first text message corresponds to the latest question asked by the party in the voice message), and executing subsequent steps based on this text helps to make the final recommended speech (that is, the target question and answer speech below) more accurate.

[0031] In step S130, a first target speech set matching the first text information is searched in the response speech library, wherein the response speech library stores a question speech set corresponding one-to-one to at least one question scenario and a response speech corresponding one-to-one to at least one question scenario, the question speech set includes at least one question speech, and the first target speech set includes multiple question speech.

[0032] After obtaining the first text information, multiple questioning scripts that match the first text information can be searched in the answering script library, and these multiple questioning scripts can constitute a first target script set. Multiple questioning scripts can correspond to the same or different questioning scenarios, respectively. Optionally, the method of searching for a second target script set that matches the first text information in the answering script library can be any existing or future developed text matching method. For example, it can be a text hash algorithm, cosine similarity, approximate nearest neighbor search (ANNS) algorithm, etc. This example does not limit the specific matching method.

[0033] It can be understood that the questioning scenario is used to describe the scenario involved in the party's questioning, which includes but is not limited to questioning scenarios such as "the party questions the identity of the mediator", "the party demands relief", and "the party inquires about the installment policy". The questioning scripts in the questioning script set corresponding to the questioning scenario are the scripts that the parties may use in the questioning scenario. In the scheme of this example, a questioning script set corresponding to at least one questioning scenario can be pre-stored in the answering script library, and the answering script corresponding to at least one questioning scenario can be stored. Thus, by matching the first text information with the questioning scripts in the answering script library, multiple questioning scripts that are closest to the current user's question can be found.

[0034] In step S140, the question speech with the highest matching degree with the first text information in the first target speech set is determined as the final question speech.

[0035] After obtaining the first target speech set, the question speech with the highest matching degree with the first text information can be determined in the first target speech set as the final question speech. The final question speech can be used to represent the current question of the client.

[0036] In step S150, a response speech that is the same as the question scenario corresponding to the final question speech is determined in the response speech library as a target response speech.

[0037] As described above, the answering script library stores a set of questioning scripts corresponding to at least one questioning scenario and answering scripts corresponding to at least one questioning scenario. In other words, each questioning script corresponds to a unique questioning scenario. In step S150, after obtaining the final questioning script, the answering script can be searched according to the questioning scenario corresponding to the final questioning script, that is, the answering script corresponding to the questioning scenario in the answering script library is determined as the target answering script. The target answering script is the standard script used to answer the questions asked by the parties.

[0038] In step S160, the target response speech is output.

[0039] After obtaining the target response words, the target response words can be output, for example, in the form of text displayed on the screen of the mediator's terminal device (such as a mobile phone or a computer) so that the mediator can view the target response words.

[0040] Optionally, the method further includes: outputting text information. Optionally, the method further includes: while outputting the target response words, outputting the question scenario corresponding to the target response words. In the above embodiment of displaying the target response words in text form on the screen of the mediator's terminal device (such as a mobile phone or computer), the text information can be displayed on the screen, and the target response words and the corresponding question scenario are displayed after the first text information in the text information. This makes it easier for the mediator to view the target response words.

[0041] In the above technical solution, the first target speech set that matches the question asked by the parties (i.e., the first text information) can be searched in the response speech library, and then the final question speech can be determined in the first target speech set, and the target response speech can be determined according to the question scenario corresponding to the first question speech. This method can comprehensively consider the questions asked by the parties and the current question scenario, and accurately match the target response speech in the response speech library, thereby helping to improve the efficiency and quality of mediation, ensure the smooth progress of the mediation process, and reduce the risk of mediation complaints caused by improper speech. In short, this solution can more accurately recommend standard response speech to mediators, help reduce dependence on the mediator's communication experience and speech skills, improve the professionalism and standardization of response speech, thereby helping to improve mediation efficiency and mediation success rate, and promote the smooth handling of disputes and contradictions.

[0042] Exemplarily, the response speech library also includes a question speech vector corresponding to each stored question speech; in step S130, searching the response speech library for a first target speech set that matches the first text information may include the following steps S131, S132 and S133.

[0043] In step S131, the first text information is vectorized to obtain a first text vector.

[0044] In step S132, the similarity between the first text vector and at least part of the question speech vectors in the answer speech library is calculated.

[0045] In step S133, the question speech corresponding to each of a first preset number of question speech vectors having the greatest similarity with the first text vector among at least part of the question speech vectors is determined as a first target speech set.

[0046] Optionally, any existing or future developed text vectorization method may be selected to vectorize the first text information. For example, the first text information may be vectorized using a BGE Embedding model. Of course, the first text information may also be vectorized using a pre-trained model such as BERT, XLNet, RoBERTa, ALBERT, etc., which is not limited in this example.

[0047] After obtaining the first text vector, the similarity between the first text vector and at least part of the question speech vectors in the answer speech library can be calculated. The similarity can be cosine similarity, or can be expressed by, for example, Euclidean distance, Manhattan distance, Chebyshev distance, Jaccard similarity coefficient, etc. In a specific embodiment, the similarity is cosine similarity. The similarity between the first text vector A and any question speech vector Q in the answer speech library can be calculated using the following formula:

[0048]

[0049] Optionally, at least part of the question speech vectors may be all the question speech vectors in the answer speech library. In this embodiment, the similarity between the first text vector and each question speech vector in the answer speech library may be determined by traversal retrieval. Alternatively, at least part of the question speech vectors may be the remaining question speech vectors obtained after the pre-screening operation in the answer speech library. The pre-screening operation may be implemented using an approximate nearest neighbor search (ANNS) algorithm. The ANNS algorithm may include but is not limited to a local sensitive hashing (LSH) algorithm, a product quantization (PQ) algorithm, an iterative quantization and search (ITQ), etc. In some embodiments, the pre-screening operation is implemented using an LSH algorithm. It can be understood that the LSH algorithm may map each data point in the library to a hash bucket, so that similar data points have a high probability of being mapped to the same bucket. In this way, when it is necessary to find the nearest neighbor of a query point, it is only necessary to search in a bucket similar to it, without searching in the entire library. Thus, the search speed can be improved, thereby helping to meet the requirements of real-time recommendation. The pre-screening operation is described below with a specific embodiment. In this embodiment, a hash function may be used to map the question speech vector and the first text vector in the answer speech library to a hash code. The hash function is as follows:

[0050] h i (v) = sign(a i ·v+b i )

[0051] Where v is the input vector (the question speech vector or the first text vector in the answer speech library). i is a random vector, b i is a random bias, sign() is the sign function. Through this hash function, each vector is mapped to a binary hash code.

[0052] After mapping the first text vector to a hash code, you can search for similar vectors in the hash bucket where the first text vector is located:

[0053]

[0054] Among them, q is the query vector (i.e., the first text vector), h i (q) is the hash code obtained by mapping the query vector through the i-th hash function. Bucket(h i (q)) indicates that it contains the hash code hi (q) is the set of hash buckets.

[0055] In this embodiment, at least part of the question speech vector is Bucket (h i (q)) contains the question word vector.

[0056] Optionally, the first preset number can be set according to actual needs. For example, the first preset number can be 5, 10, 20 or other numbers. In a specific embodiment, the first preset number is 10. In this embodiment, the first target speech set can be the question speech corresponding to each of the 10 question speech vectors with the largest cosine similarity with the first text vector in the answer speech library. The 10 question speech can be recorded as A1, A2...A10, and the cosine similarities corresponding to the 10 question speech can be recorded as c1, c2...c10.

[0057] The above technical solution calculates the similarity between the first text vector corresponding to the first text information and at least part of the question speech vectors in the answer speech library, and can determine the first target speech set more accurately based on the similarity, thereby providing a more accurate basis for subsequent steps.

[0058] Optionally, after determining the first target speech set, the question speech with the greatest similarity to the first text information in the first target speech set may be directly determined as the final question speech. The similarity between the question speech and the first text information may be the similarity between the question speech vector corresponding to the question speech and the first text vector.

[0059] Exemplarily, in step S140, determining the question speech with the highest matching degree with the first text information in the first target speech set as the final question speech may include the following steps S141 and S142.

[0060] In step S141, a first deduplication operation is performed on the first target speech set to remove repeated question speech belonging to the same question scenario in the first target speech set.

[0061] In step S142, after the first deduplication operation is completed, the question speech with the greatest similarity to the first text information in the first target speech set is determined as the final question speech.

[0062] Optionally, the first deduplication operation may include the following steps: for any two question scripts in the first target script set, when the question scenarios corresponding to the two question scripts are the same, remove one of the question scripts.

[0063] After the first deduplication operation is completed, the question speech with the greatest similarity between the first target speech set and the first text information can be determined as the final question speech. For example, the final question speech can be determined directly according to the similarity calculated in the above step S132. For another example, step S142 may include the following steps: the first target speech set after the first deduplication operation and the first text information are sent to the re-ranking model (BGE Re-Ranker Model) to obtain the similarity score between each question speech in the first target speech set and the first text information; the question speech with the greatest similarity score between the first target speech set and the first text information is determined as the final question speech. In this embodiment, the re-ranking model can be used to recalculate the similarity score between the first target speech set and the first text information, and the calculation result can be output in descending order. At this time, the question speech ranked first is the final question speech. This scheme can further improve the accuracy of the final question speech obtained by recalculating the similarity score using the re-ranking model.

[0064] The above technical solution can reduce the number of question scripts that need to be processed in subsequent steps by deduplicating the first target script set, thereby facilitating the speed of determining the final question script, thereby helping to meet the demand for real-time recommendation of answer scripts.

[0065] Exemplarily, the response script library is constructed using the following method: for each question scenario, an initial question script and a response script corresponding to the initial question script are obtained; the initial question script is amplified using a large language model to obtain at least one amplified question script with the same meaning as the initial question script; the initial question script and the at least one amplified question script are vectorized; the speech vectors corresponding to the initial question script, the at least one amplified question script, the initial question script and the at least one amplified question script, and the response script corresponding to the initial question script are stored in the response script library.

[0066] It can be understood that the response script refers to the response made by the mediator to the doubts or questions raised by the parties during the mediation process, combining legal knowledge, policies or regulations. In the solution of this example, the initial question script, the corresponding response script and the corresponding question scenario can be obtained by manual sorting. The response script is the standard response of the mediator in a certain question scenario. It can be understood that in order to ensure the standard and compliance of the response script, only one response script is included in a question scenario.

[0067] It can be understood that the initial questioning script is a possible question that the parties may ask in the questioning scenario, and the initial questioning script can be called a party questioning template. To illustrate the initial questioning script, for example, in the scenario of "the parties question the mediator's identity", the party questioning template can be: "I don't believe in your identity."

[0068] After obtaining the initial question words, the initial question words can be amplified using the large language model. Optionally, amplifying the initial question words using the large language model can include the following steps: adding the initial question words to the first prompt word template to obtain the first target prompt word. Using the large language model to process the first target prompt word to obtain at least one amplified question words. The specific number of amplified question words can be selected as needed and will not be repeated.

[0069] Optionally, the large language model may adopt any open source or closed source large language model that is currently available or will be developed in the future. The large language model may include but is not limited to GPT-3.5, Tongyi Qianwen, Wenxin Yiyan, LLAMA, ChatGLM, etc.

[0070] In a specific embodiment, the first prompt word template may be:

[0071] ```

[0072] The following sentence is from a call log. Please give me 3 sentences with the same meaning as this sentence. The form should be more colloquial and do not extend any extra meaning. Separate them by 1.2.3.: {input}

[0073] ```

[0074] In this embodiment, the number of augmented questioning scripts is 3. The output result of the large language model is parsed, and the augmented questioning scripts are recorded. After the augmentation operation, each scene will have a standard party question template (i.e., the initial questioning script) and 3 augmented party questions (i.e., the augmented questioning scripts).

[0075] After obtaining the initial question words and at least one amplified question words, these words and the vectors corresponding to these words can be saved in the answer words library. The way of vectorizing these words is similar to the way of vectorizing the first text information, which will not be repeated. In the above embodiment where the number of amplified question words is 3, the standard party question template and the 3 amplified party questions can be vectorized using the BGE Embedding model to convert the text into a set of fixed-dimensional vector representations, retaining the semantic information of the text as much as possible. Texts with the same semantics but different expressions can be mapped to the same position, and texts with different semantics should maintain corresponding distances in the vector space. The BGE Embedding model encodes each word or subword, generates a corresponding word vector sequence, and then uses the hidden state of the CLStoken in the last layer of the model as the representation of the entire text.

[0076] In the above technical solution, by amplifying the initial question words, multiple question words with the same meaning can be obtained, thereby improving the richness of the words in the response words library. This helps to improve the accuracy of the final question words determined based on the response words library. By applying the response words library of this solution, it helps to ensure that mediators have sufficient and targeted words resources to choose from when facing different mediation scenarios. In addition, by amplifying the initial question words in the response words library and vectorizing each word, the diversity and applicability of the response words library can be further enriched.

[0077] In the solution of this example, the response script library can select appropriate initial question scripts and response scripts as needed. In other words, the response script library can be customized according to the specific communication needs of different mediation process links. For example, in the mediation of financial disputes, the response scripts in the response script library can include standard expressions related to contract law; while in the mediation complaint risk response, the response scripts in the response script library can focus on the popularization of financial-related legal common sense. This solution uses customized amplification logic, based on the characteristics of each mediation process link, and uses a large language model combined with standard script templates to generate a script library that better meets the needs of the scenario. This customized amplification logic not only takes into account the natural fluency of the language, but also the legal professionalism and skills of mediation, ensuring the professionalism and effectiveness of the script.

[0078] Exemplarily, the text information includes second text information corresponding to the mediator; the method further includes step S170, step S180 and step S190.

[0079] In step S170, a second target speech set matching the second text information is searched in the guidance speech library, wherein the guidance speech library stores a guidance speech set corresponding to at least one guidance scenario, and the guidance speech set includes at least one guidance speech, and each guidance speech in the at least one guidance speech has the same meaning.

[0080] In step S180, the guiding speech with the highest matching degree with the second text information in the second target speech set is determined as the final guiding speech.

[0081] In step S190, the final guidance words are output.

[0082] In the solution of this example, the second text information corresponds to the mediator. Specifically, the second text information corresponds to the latest statement of the mediator. In some embodiments, the second text information can be the latest text among multiple texts marked as mediators in the text information. It can be understood that the latest text in the text marked as mediator is the latest statement of the mediator (that is, the second text information corresponds to the latest statement of the mediator in the voice information), and executing subsequent steps based on this text helps to accurately determine the final guidance speech.

[0083] It can be understood that the guidance scenario is used to describe the scenario involved in the current mediation stage of the mediator. In some embodiments, the guidance scenario includes a primary scenario and a secondary scenario. Among them, the primary scenario can be used to describe the type or function of this call, such as "the mediator's first call", "the party's first call", etc. The secondary scenario can be used to describe the role of the guidance speech or the process node in which it is located, such as "introducing oneself", "verifying whether it is the person himself", etc. In the scheme of this example, a set of guidance speeches corresponding to at least one guidance scenario can be pre-stored in the guidance speech library. Thus, by matching the guidance speeches in the guidance speech library with the second text information, multiple guidance speeches that are closest to the current speech of the mediator can be determined. The method of searching for the second target speech set that matches the second text information in the guidance speech library is similar to step S130 and will not be repeated.

[0084] After obtaining the second target speech set, the guiding speech with the highest matching degree with the second text information can be determined in the second target speech set as the final guiding speech. In the scheme of this example, the guiding speech is what the mediator actively says to the parties during the mediation process, which is usually a fixed, procedural dialogue. Therefore, the final guiding speech can indicate the mediation stage or mediation node that the mediator is currently in.

[0085] After the final guidance words are determined, the final guidance words can be output, for example, they can be displayed in text form on the screen of the mediator's terminal device (such as a mobile phone or a computer) so that the mediator can view the final guidance words.

[0086] Optionally, the method may further include: while outputting the final guiding words, outputting the guiding scene corresponding to the final guiding words. In this embodiment, the final guiding words and the corresponding guiding words may be output simultaneously. In the embodiment where the guiding scene includes a primary scene and a secondary scene, the primary scene and the secondary scene may be output simultaneously, and at the same time, the status of the final guiding words may be marked as "completed" on the interface for displaying the final guiding words. This approach helps to enhance the interactivity and interactivity in the mediation process.

[0087] In the above technical solution, the final guiding words can be determined more accurately based on the matching result between the guiding words in the guiding words library and the second text information. The final guiding words can indicate the mediation stage or mediation node that the current mediator is in. By determining the final guiding words, the mediator can quickly determine the current mediation stage, which is conducive to providing guidance to the mediator and facilitating the mediator to determine the next mediation stage according to the current mediation stage. In short, the solution helps to improve the standardization of the mediation process, and can realize the intelligent matching of guiding words, reduce the time and energy consumption of the mediator in selecting the mediation strategy, thereby helping to improve the mediation efficiency and quality of the mediator, and further ensure the smooth progress of the mediation process.

[0088] In addition, the above-mentioned technical solution helps to make the mediation process more standardized, intelligent and personalized by combining guiding speech with response speech recommendations, which can better meet the mediator's auxiliary communication needs, promote the achievement of mediation results, improve the quality of mediation, and reduce the risk of complaints from the parties.

[0089] Exemplarily, the guiding speech library also includes a guiding speech vector corresponding to each stored guiding speech; step S170, searching the guiding speech library for a second target speech set that matches the second text information, may include step S171, step S172 and step S173.

[0090] In step S171, the second text information is vectorized to obtain a second text vector.

[0091] In step S172, the similarity between the second text vector and at least part of the guiding speech vectors in the guiding speech library is calculated.

[0092] In step S173, the guiding speech corresponding to each of a second preset number of guiding speech vectors having the greatest similarity with the second text vector among at least part of the guiding speech vectors is determined as a second target speech set.

[0093] The method of vectorizing the second text information is similar to the method of vectorizing the first text information, which is not described in detail. The method of calculating the similarity in step S172 is similar to the method of calculating the similarity in step S132, which is not described in detail.

[0094] Optionally, the second preset number can be set according to actual needs. For example, the second preset number can be 5, 10, 20 or other numbers. In a specific embodiment, the second preset number is 10.

[0095] Optionally, at least part of the guiding speech vectors may be all the guiding speech vectors in the guiding speech library. In this embodiment, the similarity between the second text vector and each guiding speech vector in the guiding speech library may be determined by traversal retrieval. Alternatively, at least part of the guiding speech vectors may be the remaining guiding speech vectors obtained after the guiding speech library is processed by a pre-screening operation. The specific steps for performing a pre-screening operation in the guiding speech library are similar to the specific steps for performing a pre-screening operation in the answering speech library, and are not described in detail.

[0096] The above technical solution calculates the similarity between the second text vector corresponding to the second text information and at least part of the guiding speech vectors in the guiding speech library, and can determine the second target speech set more accurately based on the similarity, thereby providing a more accurate basis for subsequent steps.

[0097] Exemplarily, step S180, determining the guiding speech with the highest matching degree with the second text information in the second target speech set as the final guiding speech, may include step S181 and step S182.

[0098] In step S181, a second deduplication operation is performed on the second target speech set to remove repeated guidance speech belonging to the same guidance scenario in the second target speech set.

[0099] In step S182, after the second deduplication operation is completed, the guiding speech with the greatest similarity to the second text information in the second target speech set is determined as the final guiding speech.

[0100] Optionally, the second deduplication operation may include the following steps: for any two guiding speech in the second target speech set, when the guiding scenes corresponding to the two guiding speech are the same, one of the guiding speech is removed. It can be understood that when the guiding scene includes a primary scene and a secondary scene, the guiding scenes corresponding to the two guiding speech are the same, which means that the primary scene and the secondary scene corresponding to the two guiding speech are the same.

[0101] After the second deduplication operation is completed, the guiding speech with the greatest similarity to the second text information in the second target speech set can be determined as the final guiding speech. For example, the final guiding speech can be determined directly according to the similarity calculated in the above step S172. For another example, step S182 may include the following steps: the second target speech set after the second deduplication operation and the second text information are input into the re-ranking model (BGE Re-Ranker Model) to obtain the similarity score between each guiding speech in the second target speech set and the second text information; the guiding speech with the greatest similarity score between the second target speech set and the second text information is determined as the final guiding speech. This method can further improve the accuracy of the final guiding speech obtained by recalculating the similarity score using the re-ranking model.

[0102] The above technical solution can reduce the number of guiding speeches that need to be processed in subsequent steps by deduplicating the second target speech set, thereby facilitating the speed of determining the final guiding speech, thereby helping to meet the real-time requirements in the mediation process.

[0103] Exemplarily, the guidance speech library is constructed using the following method: for each guidance scenario, initial guidance speech is obtained; the initial guidance speech is amplified using a large language model to obtain at least one amplified guidance speech with the same meaning as the initial guidance speech; the initial guidance speech and the at least one amplified guidance speech are vectorized; the initial guidance speech, the at least one amplified guidance speech, and the speech vectors corresponding to the initial guidance speech and the at least one amplified guidance speech are stored in the guidance speech library.

[0104] It can be understood that the initial guidance words are standard words that the mediator may say in the guidance scenario. The initial guidance words can be called a guidance words template. For example, the guidance words template can be: "Hello, I am {mediator name} of {mediation organization name}."

[0105] After obtaining the initial guiding speech, the initial guiding speech can be amplified using the large language model. Optionally, amplifying the initial guiding speech using the large language model can include the following steps: adding the initial guiding speech to the second prompt word template to obtain the second target prompt word. Processing the second target prompt word using the large language model to obtain at least one amplified guiding speech. The specific number of amplified guiding speeches can be selected according to actual needs and will not be described in detail.

[0106] In a specific embodiment, the second prompt word template may be:

[0107] ```

[0108] The following sentence is from a call log. Please give me 3 sentences with the same meaning as this sentence. The form should be more colloquial and do not extend any extra meaning. Separate them by 1.2.3.: {input}

[0109] ```

[0110] In this embodiment, the number of expanded guiding words is 3. The output result of the large language model is parsed, and the expanded guiding words are recorded. After the expansion operation, each secondary scene under the primary scene will have a standard guiding word template (i.e., the initial guiding word) and 3 expanded guiding words (i.e., the expanded guiding words).

[0111] After obtaining the initial guiding speech and the expanded guiding speech, these speech and the vectors corresponding to these speech can be saved in the guiding speech library. In the above embodiment where the number of expanded guiding speech is 3, the standard guiding speech template and the 3 expanded guiding speech can be vectorized using the BGE Embedding model to convert the text into a set of fixed-dimensional vector representations, retaining the semantic information of the text as much as possible. Texts with the same semantics but different expressions can be mapped to the same position, while texts with different semantics should maintain corresponding distances in the vector space. The BGE Embedding model encodes each word or subword, generates a corresponding word vector sequence, and then uses the hidden state of the CLS token in the last layer of the model as the representation of the entire text. The following is an example of a standard guiding speech template and 3 expanded guiding speeches and their vectorization:

[0112] Standard introductory speech template (i.e. initial introductory speech): "Hello, I am XXX, the mediator of XXX Mediation Center. What do you want to know?"

[0113] Vectorized representation: [0.1, 0.2, …, 0.8]

[0114] Amplification lead 1: "How can I help you?"

[0115] Vectorized representation: [0.123, 0.456, ..., 0.789]

[0116] Amplification lead 2: "Is there anything you need my support for?

[0117] Vectorized representation: [0.234, 0.567, ..., 0.890]

[0118] Amplification lead 3: "Do you need any help?"

[0119] Vectorized representation: [0.345, 0.678, ..., 0.901]

[0120] In the above technical solution, by amplifying the initial guiding speech, multiple guiding speech with the same meaning can be obtained, thereby improving the richness of the speech in the guiding speech library. This helps to improve the accuracy of the final guiding speech determined based on the guiding speech library. In addition, the solution can further enrich the diversity and applicability of the guiding speech library by amplifying the initial guiding speech in the guiding speech library and vectorizing each speech.

[0121] In the solution of this example, the guidance script library can select appropriate initial guidance scripts as needed. In other words, the guidance script library can be customized according to the specific communication needs of different mediation process links. For example, in the mediation of financial disputes, the guidance scripts in the guidance script library can include standard expressions related to contract law; while in the mediation complaint risk response, the guidance scripts in the guidance script library can focus on the popularization of financial-related legal common sense. This solution uses customized amplification logic, based on the characteristics of each mediation process link, and uses a large language model combined with standard script templates to generate a guidance script library that better meets the needs of the scenario. This customized amplification logic takes into account not only the natural fluency of the language, but also the legal professionalism and skills of the mediation, which helps to ensure the accuracy of the final guidance script determined.

[0122] Exemplarily, before searching the response speech library for the first target speech set that matches the first text information, the method also includes: preprocessing the text information to obtain preprocessed text information; step S130, searching the response speech library for the first target speech set that matches the first text information, includes: searching the response speech library for the first target speech set that matches the first text information in the preprocessed text information.

[0123] In the solution of this example, the first text message does not include the portion corresponding to the party concerned in the processed text message.

[0124] After the voice information is converted into the corresponding text information, the text information can be preprocessed. The preprocessing method includes but is not limited to unifying words with the same meaning in different expressions, unifying the labels of each text segment, merging text segments with the same role labels, and removing special symbols, modal particles, repeated words, etc. in the text information. The specific preprocessing method can be selected according to actual needs and will not be described in detail. The scheme of this example can remove noise in the text information by preprocessing the text information, thereby preventing the noise in the text information from affecting the accuracy of subsequent steps.

[0125] Exemplarily, the text information includes multiple text segments and role labels corresponding to the multiple text segments one by one; the text information is preprocessed, including: based on a preset correspondence, unifying the role labels corresponding to the multiple text segments one by one into mediator and party; for any two adjacent text segments among the multiple text segments, when the role labels corresponding to the two text segments are the same, merging the two text segments into the same text segment; wherein the first text information is the latest text segment with the role label of party.

[0126] In this article, when a text message is obtained by conversion such as a mediation platform system, the mediation platform system will add prefixes (i.e., role labels) to both parties of the call, so that the obtained text information includes multiple text segments and role labels corresponding to the multiple text segments. For example, one of the text segments and the corresponding role label can be: "Collector: When will you repay the loan?" However, in the related art, although some mediation platform systems or speech-to-text algorithms will add role labels to both parties of the call when converting speech to text, the role labels added by different systems or algorithms are not uniform. In the scheme of this example, all role labels can be unified as mediators and parties based on the preset corresponding relationship, which can facilitate the processing of text information in subsequent steps.

[0127] Optionally, the preset correspondence can be set as needed. For example, the preset correspondence can be set according to the selected mediation platform system or algorithm for voice-to-text conversion, so as to uniformly map the role labels automatically generated by the mediation platform system or algorithm to mediators and parties. In one embodiment, the preset correspondence can be: Agent, mediation, and reminder correspond to mediators, and Customer, when, and debt correspond to parties. Of course, the above preset correspondence is only an example, and users can adjust the preset correspondence as needed, which will not be repeated.

[0128] After the role labels are unified, the role label corresponding to each text segment is either the party or the mediator. In this case, the role labels of each text segment can be traversed in order. If the role labels corresponding to two adjacent text segments are the same, the two text segments can be merged into the same text segment. At this time, the text segments corresponding to the mediator and the party appear alternately in the text information. In this case, the latest text segment in the text segment with the role label of the party (that is, the last text segment in chronological order) is the latest question of the party, that is, the first text information.

[0129] The above technical solution can improve the quality of text information by unifying the role labels of text segments and merging adjacent text segments with the same role labels, thereby helping to improve the accuracy of the obtained target response words and / or final guiding words.

[0130] Exemplarily, preprocessing the text information includes: performing text cleaning on the text information to remove redundant information in the text information, where the redundant information includes any one or more of special symbols, modal particles and repeated words.

[0131] Optionally, the redundant information may include special symbols. Performing text cleaning on the text information to remove the redundant information in the text information may include: using a regular expression to remove the special symbols in the text information. The regular expression may be: "content = re.sub(r"[\s+! / _,$%^*(+\"\):+——()?【】“”!,。?、~@#¥%……&*()]+",”,content)".

[0132] Optionally, the redundant information may include modal particles. In some embodiments, modal particles (such as "um", "ah", "uh", etc.) may be stored in a stop word list of modal particles in advance. Then, the jieba segmentation may be used to determine whether each token after the segmentation exists in the stop word list of modal particles. If so, the token is removed. The above-mentioned method of removing modal particles is only an example, and those skilled in the art may also use other methods to remove modal particles. For example, modal particles in text information may be removed by regular expressions.

[0133] Optionally, redundant information may include repeated words. Repeated words may be, for example, meaningless repeated words such as "Wait a minute, wait a minute", "I want to think about it, I want to think about it". In some embodiments, jieba word segmentation can be used to perform a cyclic judgment on each token. If the token is the same as the previous token, the token is removed. In other embodiments, the token can be screened in advance to prevent the removal of key information such as date and amount. In a specific embodiment, three functions can be pre-set: Chinese date judgment function, English date judgment function, and digital judgment function. After using jieba word segmentation to process the text information, each token after word segmentation can be judged in a cyclic manner. If the token does not belong to the Chinese date, English date, or number, continue to determine whether it is equivalent to the previous token. If the token is the same as the previous token, the token is removed. The Chinese date judgment function, the English date judgment function, and the digital judgment function can be selected as needed. For example, regular expressions can be used to construct the Chinese date judgment function, the English date judgment function, and the digital judgment function. Taking the Chinese date judgment as an example, a regular expression can be used to judge whether there is "number + year", "number + month", or "number + day". Those skilled in the art can understand the specific construction method of the regular expression, which will not be repeated.

[0134] In a preferred embodiment, the redundant information includes special symbols, modal particles and repeated words. The solution of this embodiment can remove special symbols, modal particles and repeated words, thereby improving the quality of the obtained text information.

[0135] According to the above technical solution, by removing redundant information in the text information through text cleaning, the quality of the final text information can be improved, which is beneficial to improve the accuracy of the final target response speech and / or the final guiding speech.

[0136] Optionally, the preprocessing of text information may include the above-mentioned preprocessing based on role tags, and may also include the above-mentioned preprocessing based on text cleaning. When the preprocessing of text information may include the above-mentioned preprocessing based on role tags and the above-mentioned preprocessing based on text cleaning, the two preprocessing methods may be performed in sequence. For example, the preprocessing based on role tags may be performed first, and then the preprocessing based on text cleaning may be performed. For another example, the preprocessing based on text cleaning may be performed first, and then the preprocessing based on role tags may be performed. This helps to further improve the quality of the obtained text information.

[0137] Exemplarily, the above recommendation method can be applied to a recommendation system for dispute mediation speech. In some embodiments, the recommendation system for dispute mediation speech can include a speech-to-text module, a call content preprocessing module, a guide speech library, a guide speech retrieval module, a guide speech logic processing module, an answer speech library, a party question retrieval module, an answer speech logic processing module, and a mediation process speech recommendation display module. The speech-to-text module is used to obtain voice information in the dispute mediation process in real time and convert the voice information into corresponding text information in real time. The call content preprocessing module is used to preprocess the text information to obtain the preprocessed text information. The guide speech library is used to store a set of guide speech corresponding to at least one guide scenario. The guide speech retrieval module is used to search for a second target speech set matching the second text information in the guide speech library. The guide speech logic processing module is used to determine that the guide speech with the highest matching degree with the second text information in the second target speech set is the final guide speech, and output the final guide speech. The answer speech library is used to store a set of question speech corresponding to at least one question scenario and an answer speech corresponding to at least one question scenario. The party's question retrieval module is used to search the answering speech library for a first target speech set that matches the first text information. The answering speech logic processing module is used to determine the questioning speech in the first target speech set that has the highest matching degree with the first text information as the final questioning speech, determine the answering speech with the same questioning scenario as the final questioning speech in the answering speech library as the target answering speech, and output the target answering speech. The mediation process speech recommendation display module is used to display the final guiding speech and the target answering speech. In some embodiments, the guiding speech logic processing module can also output the guiding scenario corresponding to the final guiding speech, and the answering speech logic processing module can also output the final questioning speech and the corresponding questioning scenario.

[0138] Figure 2 A schematic flow chart showing a method for recommending dispute mediation techniques according to a specific embodiment of the present invention is shown. Figure 2As shown, first, the outbound voice stream (i.e., the voice information in the dispute mediation process) is input into the voice-to-text module, and the voice-to-text module outputs the call content text stream (i.e., the text information) to the call content preprocessing module. The call content preprocessing module preprocesses the call content text to obtain the preprocessed call content text. The guiding speech retrieval module matches the mediator's speech text with the guiding speech in the guiding speech library to obtain the second target speech set. The second target speech set is input into the guiding speech logic processing module to obtain the final guiding speech and the guiding scene corresponding to the final guiding speech (i.e., the guiding speech return result). The party question retrieval module matches the party's speech text (i.e., the first text information) with the question speech in the answering speech library to obtain the first target speech set. The first target speech set is input into the answering speech logic processing module to obtain the answering speech, the final question speech corresponding to the answering speech, and the corresponding question scene (i.e., the answering speech return result). The guiding speech return result and the answering speech return result are input into the mediation process speech recommendation display module and displayed via the module.

[0139] According to another aspect of the embodiments of the present invention, an electronic device is provided. Figure 3 FIG. 2 shows a schematic block diagram of an electronic device according to an embodiment of the present invention. Figure 3 As shown, the electronic device 300 includes: a processor 310 and a memory 320. The memory 320 stores a computer program, and the processor 310 is used to execute the computer program to implement the above-mentioned recommendation method 100.

[0140] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is also provided. The storage medium stores a computer program / instruction, and when the computer program / instruction is executed by a processor, the above-mentioned recommendation method 100 is implemented. The storage medium may include, for example, a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a portable compact disk read-only memory (CD-ROM), a USB memory, or any combination of the above storage media. The computer-readable storage medium may be any combination of one or more computer-readable storage media.

[0141] A person skilled in the art can easily understand the implementation structure, working principle and beneficial effects of the electronic device and the computer-readable storage medium by reading the above-mentioned recommended method 100. For the sake of brevity, no further description is given here.

[0142] Although example embodiments have been described herein with reference to the accompanying drawings, it should be understood that the above example embodiments are merely exemplary and are not intended to limit the scope of the present invention thereto. Various changes and modifications may be made therein by one of ordinary skill in the art without departing from the scope and spirit of the present invention. All such changes and modifications are intended to be included within the scope of the present invention as required by the appended claims.

[0143] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0144] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed.

[0145] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

[0146] Similarly, it should be understood that in order to streamline the present invention and help understand one or more of the various inventive aspects, in the description of the exemplary embodiments of the present invention, the various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, the method of the present invention should not be interpreted as reflecting the following intention: the claimed invention requires more features than the features explicitly stated in each claim. More specifically, as reflected in the corresponding claims, the inventive point is that the corresponding technical problem can be solved with less than all the features of a single disclosed embodiment. Therefore, the claims following the specific embodiment are hereby expressly incorporated into the specific embodiment, wherein each claim itself serves as a separate embodiment of the present invention.

[0147] It will be understood by those skilled in the art that, except for mutually exclusive features, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this specification may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature that provides the same, equivalent or similar purpose.

[0148] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims, any one of the claimed embodiments may be used in any combination.

[0149] The various component embodiments of the present invention can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or a digital signal processor (DSP) can be used in practice to implement some or all of the functions of some modules in the electronic device according to an embodiment of the present invention. The present invention can also be implemented as a device program (e.g., a computer program and a computer program product) for executing part or all of the methods described herein. Such a program implementing the present invention can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.

[0150] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc., does not indicate any order. These words may be interpreted as names.

[0151] The above is only a specific embodiment of the present invention or an explanation of a specific embodiment. The protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. The protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A method for recommending dispute mediation techniques, characterized in that: include: Real-time acquisition of voice information during dispute mediation; Converting the voice information into corresponding text information in real time, wherein the text information includes first text information corresponding to the party concerned; Searching for a first target speech set matching the first text information in a response speech library, wherein the response speech library stores a question speech set corresponding to at least one question scenario and a response speech corresponding to the at least one question scenario, the question speech set includes at least one question speech, and the first target speech set includes multiple question speeches; Determine the questioning speech with the highest matching degree with the first text information in the first target speech set as the final questioning speech; Determining in the answering script library the answering script that is identical to the questioning scenario corresponding to the final questioning script as the target answering script; Output the target response words.

2. The recommendation method according to claim 1, characterized in that: The answering speech library also includes a questioning speech vector corresponding to each stored questioning speech; searching the answering speech library for a first target speech set matching the first text information includes: Vectorizing the first text information to obtain a first text vector; Calculating the similarity between the first text vector and at least part of the question speech vectors in the answer speech library; The question speech corresponding to each of a first preset number of question speech vectors having the greatest similarity with the first text vector among the at least part of the question speech vectors is determined as the first target speech set.

3. The recommendation method according to claim 2, characterized in that: The step of determining the questioning speech with the highest matching degree with the first text information in the first target speech set as the final questioning speech includes: Performing a first deduplication operation on the first target speech set to remove repeated question speech belonging to the same question scenario in the first target speech set; After the first deduplication operation is completed, the question speech with the greatest similarity to the first text information in the first target speech set is determined as the final question speech.

4. The recommendation method according to claim 1, characterized in that: The response script library is constructed using the following method: For each question scenario, Obtaining an initial questioning speech and a response speech corresponding to the initial questioning speech; Amplifying the initial question speech by using a large language model to obtain at least one amplified question speech having the same meaning as the initial question speech; Vectorizing the initial questioning speech and the at least one augmented questioning speech; The initial question speech, the at least one augmented question speech, the speech vectors corresponding to the initial question speech and the at least one augmented question speech, and the response speech corresponding to the initial question speech are stored in the response speech library.

5. The recommendation method according to claim 1, characterized in that: The text message includes second text information corresponding to the mediator; and the method further includes: Searching for a second target speech set matching the second text information in a guidance speech library, wherein the guidance speech library stores a guidance speech set corresponding to at least one guidance scenario, the guidance speech set includes at least one guidance speech, and each guidance speech in the at least one guidance speech has the same meaning; Determine the guiding speech with the highest matching degree with the second text information in the second target speech set as the final guiding speech; Output the final guidance words.

6. The recommendation method according to claim 5, characterized in that: The guiding speech library also includes guiding speech vectors corresponding to each of the stored guiding speech; searching the guiding speech library for a second target speech set matching the second text information includes: Vectorizing the second text information to obtain a second text vector; Calculating the similarity between the second text vector and at least part of the guiding speech vectors in the guiding speech library; Determine the guiding speech corresponding to each of a second preset number of guiding speech vectors having the greatest similarity with the second text vector among the at least part of the guiding speech vectors as the second target speech set; Preferably, the step of determining the guiding speech with the highest matching degree with the second text information in the second target speech set as the final guiding speech includes: Performing a second deduplication operation on the second target speech set to remove repeated guidance speech belonging to the same guidance scenario in the second target speech set; After the second deduplication operation is completed, the guiding speech with the greatest similarity to the second text information in the second target speech set is determined as the final guiding speech.

7. The recommendation method according to claim 5, characterized in that: The guiding speech library is constructed by the following method: For each guided scenario, Get the initial guidance words; Amplifying the initial guiding speech by using a large language model to obtain at least one amplified guiding speech having the same meaning as the initial guiding speech; Vectorizing the initial guiding speech and the at least one augmented guiding speech; The initial guiding speech, the at least one augmented guiding speech, and the speech vectors corresponding to the initial guiding speech and the at least one augmented guiding speech are stored in the guiding speech library.

8. The recommendation method according to any one of claims 1 to 7, characterized in that: Before searching the answering speech library for a first target speech set matching the first text information, the method further includes: Preprocessing the text information to obtain preprocessed text information; The step of searching the response speech library for a first target speech set that matches the first text information includes: Searching the answering speech library for a first target speech set that matches the first text information in the preprocessed text information; Preferably, the text information includes a plurality of text segments and role tags corresponding to the plurality of text segments one by one; and the preprocessing of the text information includes: Based on the preset corresponding relationship, the role labels corresponding to the multiple text segments are unified into mediator and party; For any two adjacent text segments among the plurality of text segments, when the role labels corresponding to the two text segments are the same, the two text segments are merged into the same text segment; The first text information is the latest text segment with the role label of the party concerned; Preferably, the preprocessing of the text information includes: The text information is cleaned to remove redundant information in the text information, wherein the redundant information includes any one or more of special symbols, modal particles and repeated words.

9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a computer program, and the processor is used to execute the computer program to implement the recommendation method according to any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that: A computer program / instruction is stored, and when the computer program / instruction is executed by a processor, the recommendation method according to any one of claims 1 to 8 is implemented.

Citation Information

Cited By

  • Intelligent mediation assistant construction method and system based on large model

    CN119645429A