Method and device for determining category of service text return reason, equipment and medium

Through dialogue understanding of language models and vector conversion technology, we automatically identify and classify the reasons for returning merchant business texts in electronic payment transactions, solving the problem of low classification efficiency in the existing technology, and achieving efficient and accurate recognition and classification of return reasons.

CN118897880APending Publication Date: 2024-11-05CHINA UNIONPAY
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202410926001.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-11-05

AI Technical Summary

Technical Problem

In the prior art In electronic payment transactions, in the merchant’s business text approval process, the classification of the return reasons is inefficient, and multiple return reasons cannot be automatically identified, and manual participation in the summary reduces efficiency.

Method used

The dialogue understanding language model is used to convert approval text into semantic vectors and match it with the text in the standard cause database, automatically determine the return reason category, and improve classification efficiency.

Benefits of technology

The automated return reason classification has been realized, the efficiency has been improved, the accuracy rate has reached 94%, and the manual participation has been reduced. It is suitable for the identification and classification of multiple return reasons.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118897880A_ABST
    Figure CN118897880A_ABST
Patent Text Reader

Abstract

The invention discloses a business text return reason category determination method and device, equipment and a medium, and belongs to the field of data processing. The method comprises the steps that after sample dialogues are input into a dialogue understanding language model in advance, approval texts corresponding to business texts serve as questions to be input into the dialogue understanding language model, and first texts which are output by the dialogue understanding language model and serve as answers are obtained; the first text and a standard text in a standard reason database are converted into a first semantic vector and a second semantic vector through a vector conversion model, and the standard text represents the category of the return reason; performing matching operation on the first semantic vector and the second semantic vectors to obtain a matching probability of the first semantic vector and each second semantic vector; and selecting the category of the return reason corresponding to the N second semantic vectors with the highest matching probability as the category of the return reason corresponding to the first text. According to the embodiment of the invention, the classification efficiency of the service text return reasons can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of data processing, and in particular, relates to a method, device, equipment and medium for determining a category of a business text return reason. Background Art

[0002] Merchants participating in electronic payment transactions need to establish a cooperative relationship with payment institutions in advance. Merchants need to submit business documents for applying for network access, and the corresponding payment institutions will review and approve the business documents to ensure that merchants can provide payment services safely and in compliance with regulations. In the process of payment institutions reviewing business documents, business documents that do not meet the approval requirements will appear. Business documents that do not meet the approval requirements need to be returned to merchants, and approval documents are given to explain the reasons for the return of the business documents, so that merchants can modify and resubmit. In order to improve the approval rate of business documents, it is necessary to summarize the reasons for the return of business documents in the approval documents, take corresponding measures according to the reasons for the return, and improve the approval rate of business documents. Summarizing the reasons for the return requires classifying the reasons for the return. For example, an unsupervised clustering algorithm can be used to cluster a large number of approval documents into multiple categories, but the clustering algorithm can only classify the approval documents, and cannot give the category of the return reason corresponding to each type of approval document. If you want to get the category of the return reason corresponding to each type of approval document, you need to manually participate in the summary, which reduces the classification efficiency of the reasons for the return of business documents. Summary of the invention

[0003] The embodiments of the present application provide a method, device, equipment and medium for determining the category of a business text return reason, which can improve the efficiency of classifying the business text return reasons.

[0004] In a first aspect, an embodiment of the present application provides a method for determining the reason for return of a business text, comprising: after a sample conversation is pre-input into a conversation understanding language model, an approval text corresponding to the business text is input as a question into the conversation understanding language model to obtain a first text output by the conversation understanding language model as an answer, wherein the sample conversation includes a sample question and a sample answer, the sample question includes an example approval text, the sample answer includes an example return reason, and the first text includes a return reason text corresponding to the approval text; using a vector conversion model, the first text and a standard text in a standard reason database are respectively converted into a first semantic vector and a second semantic vector, the standard text representing the category of the return reason; matching the first semantic vector and the second semantic vector to obtain a matching probability of the first semantic vector and each second semantic vector; selecting the category of the return reason corresponding to the N second semantic vectors with the highest matching probability as the category of the return reason corresponding to the first text, where N is a positive integer.

[0005] In a second aspect, an embodiment of the present application provides a device for determining the reason for return of a business text, comprising: a text output module, which is used to input the approval text corresponding to the business text into the dialogue understanding language model as a question after the sample dialogue is pre-input into the dialogue understanding language model, so as to obtain a first text output by the dialogue understanding language model as an answer, wherein the sample dialogue includes a sample question and a sample answer, the sample question includes an example approval text, the sample answer includes an example return reason, and the first text includes a return reason text corresponding to the approval text; a vector conversion module, which is used to use the vector conversion model to convert the first text and the standard text in the standard reason database into a first semantic vector and a second semantic vector respectively, wherein the standard text represents the category of the return reason; a matching module, which is used to match the first semantic vector and the second semantic vector to obtain the matching probability of the first semantic vector and each second semantic vector; a category determination module, which is used to select the category of the return reason corresponding to the N second semantic vectors with the highest matching probability as the category of the return reason corresponding to the first text, where N is a positive integer.

[0006] In a third aspect, an embodiment of the present application provides a device for determining the reason for return of a business text, comprising: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the method for determining the reason for return of a business text of the first aspect is implemented.

[0007] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, implements the method for determining the reason for return of a business text according to the first aspect.

[0008] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the method for determining the reason for return of a business text in the first aspect.

[0009] The embodiment of the present application provides a method, device, equipment and medium for determining the category of the return reason of a business text. The sample dialogue can be input into the dialogue understanding language model in advance, so that the dialogue understanding language model understands the rules of the questions and answers of the sample dialogue, and then the approval text corresponding to the business text is input into the dialogue understanding language model as a question, and the dialogue understanding language model is used to extract the text including the return reason text from the approval text as an answer. The text and the standard text that can represent the category of the return reason are respectively converted into semantic vectors, and the matching probability of the semantic vector is obtained by matching between the semantic vectors. The matching probability can represent the degree of matching between the return reason represented by the text as the answer and the category of the return reason represented by the standard text, and the category of the return reason represented by the N standard texts with the highest matching probability is used as the category of the return reason corresponding to the text of the answer. In the process of determining the return reason of the entire business text, no manual participation in the summary is required, which can improve the classification efficiency of the return reason of the business text. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0011] Figure 1 A flowchart of a method for determining a category of a business text return reason provided in an embodiment of the present application;

[0012] Figure 2 A flowchart of a method for determining a reason for returning a business document provided in another embodiment of the present application;

[0013] Figure 3 A flowchart of a method for determining a reason for a business text return provided in yet another embodiment of the present application;

[0014] Figure 4 A flowchart of an example of a process for determining the reason for return of a business text provided in an embodiment of the present application;

[0015] Figure 5 A schematic diagram of the structure of a device for determining a reason for returning a business document provided in an embodiment of the present application;

[0016] Figure 6 A schematic diagram of the structure of a device for determining the reason for return of a business text provided in one embodiment of the present application. DETAILED DESCRIPTION

[0017] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are intended only to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by showing examples of the present application. It should be noted that the acquisition, storage, use, and processing of information and data in the embodiments of the present application are authorized by users or relevant agencies, in compliance with the relevant provisions of national laws and regulations.

[0018] Merchants participating in electronic payment transactions need to establish a cooperative relationship with payment institutions in advance. Merchants need to submit business documents for applying for network access, and the corresponding payment institutions will review and approve the business documents to ensure that merchants can provide payment services safely and in compliance with regulations. In the process of payment institutions reviewing business documents, business documents that do not meet the approval requirements will appear. Business documents that do not meet the approval requirements need to be returned to merchants, and approval documents are given to explain the reasons for the return of the business documents, so that merchants can modify and resubmit. In order to improve the approval rate of business documents, it is necessary to summarize the reasons for the return of business documents in the approval documents, take corresponding measures according to the reasons for the return, and improve the approval rate of business documents. Summarizing the reasons for the return requires classifying the reasons for the return. For example, an unsupervised clustering algorithm can be used to cluster a large number of approval documents into multiple categories, but the clustering algorithm can only classify the approval documents, and cannot give the category of the return reason corresponding to each type of approval document. If you want to get the category of the return reason corresponding to each type of approval document, you need to manually participate in the summary, which reduces the classification efficiency of the reasons for the return of business documents. The neural network model can also be trained using annotated data sets, and the approval text can be input into the trained neural network model to classify the return reasons corresponding to the application text. However, when there are few samples in the annotated data set, the neural network model cannot learn all the changes in the approval text, and the generalization of the neural network model is adversely affected, resulting in poor accuracy in the classification of the return reasons corresponding to the approval text. In addition, when there are multiple return reasons in the approval text, it is difficult for the neural network model to identify multiple return reasons.

[0019] The embodiment of the present application provides a method, device, equipment and medium for determining the category of the return reason of a business text. The dialogue understanding language model can be used to extract text including the return reason text with more standardized content and more prominent information from the approval text, and the extracted text and the pre-summarized standard text that can characterize the category of the return reason are mapped to vectors in the semantic space to achieve abstraction and expression of the text semantic information. By matching the mapped vectors, the category of the return reason of the text extracted from the approval text is determined, without manual participation in the summary, thereby improving the classification efficiency of the return reason of the business text. The text corresponding to different return reasons can be extracted separately from the approval text, so as to identify multiple return reasons and classify multiple return reasons. In addition, in the process of determining the category of the text return reason, new standard texts can be continuously and automatically summarized and updated to enrich the standard texts, thereby ensuring that the application of determining the category of the return reason of the business text is versatile and can be used effectively for a long time.

[0020] The following is a description of the method, device, equipment and medium for determining the category of the business text return reason provided by this application.

[0021] The first aspect of the present application provides a method for determining the category of a business text return reason, which can be applied to the scenario of classifying the return reasons corresponding to the approval text. The method for determining the category of a business text return reason can be executed by a device or equipment for determining the category of a business text return reason, and is not limited here. Figure 1 A flowchart of a method for determining a category of a business text return reason provided in an embodiment of the present application, such as Figure 1 As shown, the method for determining the category of the business text return reason may include steps S101 to S104.

[0022] In step S101, after the sample dialogue is pre-input into the dialogue understanding language model, the approval text corresponding to the business text is input into the dialogue understanding language model as a question to obtain a first text output by the dialogue understanding language model as an answer.

[0023] The dialogue understanding language model is a language model that can understand dialogues and tasks and complete questions and answers, and has high accuracy, fast reasoning and good reproducibility. In some examples, the dialogue understanding language model may include but is not limited to the ChatGLM model, which is a large offline model based on transformer. The question is input into the dialogue understanding language model, and the dialogue understanding language model can output an answer. The sample dialogue can be input into the dialogue understanding language model in advance as an example guide, the sample dialogue includes a sample question and a sample answer, the sample question includes a sample approval text, and the sample answer includes a sample return reason. The dialogue understanding language model can follow the rules of the sample dialogue, and when a question similar to the sample question is received later, it can output the corresponding answer according to the rules between the sample question and the sample answer in the sample dialogue. Specifically, the dialogue understanding model can extract information from the approval text input as the question to obtain a text output. In some examples, before the sample dialogue is input into the dialogue understanding language model, a small amount of samples can be used to train the dialogue understanding language model and fine-tune the model parameters of the dialogue understanding language model. Of course, before the sample dialogue is input into the dialogue understanding language model, the dialogue understanding language model may not be specially trained with samples.

[0024] The first text is the approval text as a question input into the dialogue understanding language model, and the dialogue understanding language model outputs the corresponding text. An approval text is input into the dialogue understanding language model, and the dialogue understanding language model can output one first text, or can output more than two first texts. The first text includes the return reason text corresponding to the approval text. In some examples, keywords can also be input into the dialogue understanding language model, and the keywords are used as prompts in the dialogue understanding language model. Keywords are used to indicate the format of the dialogue understanding language to extract and process information. Keywords may include entities and events, and correspondingly, the first text may include entities and events. Entities represent the subject of the return reason, and events represent the description of the subject of the return reason. In some examples, the questions input into the dialogue understanding language model may also include some additional requirements to improve the accuracy of the text output by the dialogue understanding language model. For example, additional requirements may include but are not limited to requirements such as correcting typos in the questions.

[0025] For example, the sample question in the sample conversation could be "The type of business license document should be 02; the merchant registration address should be the same as that in the institutional legal person certificate; comparison of merchant information and on-site registration information: the merchant's business address is inconsistent; the business license and legal person ID card are翻拍 (rephotographed) and non-compliant, please re-register on-site, collect, and upload. Please extract the above entities and events, list them item by item as a sentence and indicate the entities and events, and try to use the original words." The sample answer in the sample conversation could be "Entity: Type of business license document; Event: Should be 02. Entity: Merchant registration address; Event: Should be the same as that in the institutional legal person certificate. Entity: Comparison of merchant information and on-site registration information; Event: The merchant's business address is inconsistent. Entity: Legal person ID card; Event: Is rephotographed and non-compliant, please re-register on-site, collect, and upload." After inputting the sample conversation into the dialogue understanding language model, for the approval text "A business scenario description needs to be provided. The situation regarding the use of the head office's business license for network access by the dispatched agency and the fund receipt situation also need to be synchronized and stamped with the official seal of the acquiring institution. Please extract the above entities and events, list them item by item as a sentence and indicate the entities and events, and try to use the original words.", the dialogue understanding language model output four first texts. The first first text is "Entity: Business scenario description; Event: Needs to be provided", the second first text is "Entity: Dispatched agency; Event: Uses the head office's business license for network access", the third first text is "Entity: Fund receipt situation of the dispatched agency; Event: Needs to be synchronized", and the fourth first text is "Entity: Official seal of the acquiring institution; Event: Stamp".

[0026] Another example, the approval text input as a question to the dialogue understanding language model is "Please re-do on-site registration. Photos cannot be rephotographed. Coordinate distances need to be displayed and not exceed 500m". The first texts in the answer output by the dialogue understanding language model include "Entity: On-site registration, Event: Needs to be re-performed. Entity: Photos, Event: Cannot be rephotographed. Entity: Coordinate distances, Event: Need to be displayed and ensure not to exceed 500m". Thus, it can be seen that the dialogue understanding language model extracts three first texts from the approval text and corrects the misspelling "照偏" (rephotographed) to the correct "照片" (photos).

[0027] In step S102, using the vector conversion model, the first text and the standard text in the standard reason database are respectively converted into a first semantic vector and a second semantic vector.

[0028] The standard text in the standard reason database represents the category of the return reason. The standard reason database includes at least one standard text. The standard text is a text that records the return reason after standardization. Each standard text corresponds to a category of return reason. In some examples, the standard text is obtained by inputting the standard approval text as a question into the dialogue understanding language model. The standard approval text is an approval text with standardized format and content and includes the category of standard return reasons. The standard approval document can be input into the dialogue understanding language model as a question in advance, and the text output by the dialogue understanding language model can be stored as a standard text in the standard reason database.

[0029] The vector conversion model can map text into vectors in a semantic space. In some examples, the vector conversion model can be implemented by a single model or by a combination of two or more models. For example, the vector conversion model may include a term frequency-inverse document frequency (TF-IDF) vector model and / or a BERT model, but is not limited thereto. The application of other models that can convert text into semantic vectors is also within the scope of protection of the embodiments of the present application.

[0030] The first text may be input into the vector conversion model, and the vector conversion processing is performed on the first text through the vector conversion model, and a first semantic vector is output. The first semantic vector is a semantic vector corresponding to the first text, which can represent the first text, and each first text may correspond to a first semantic vector. The standard text may be input into the vector conversion model, and the vector conversion processing is performed on the standard text through the vector conversion model, and a second semantic vector is output. The second semantic vector is a semantic vector corresponding to the standard text, which can represent the standard text, and each standard text may correspond to a second semantic vector.

[0031] In step S103, a matching operation is performed on the first semantic vector and the second semantic vector to obtain a matching probability between the first semantic vector and each second semantic vector.

[0032] The matching operation of the first semantic vector and the second semantic vector can be realized by calculating the similarity between the first semantic vector and the second semantic vector. The matching probability of the first semantic vector and the second semantic vector can represent the degree of similarity between the first semantic vector and the second semantic vector. For a first semantic vector, the similarity between the first semantic vector and each second semantic vector corresponding to the standard reason database can be calculated respectively, and the ratio of each similarity corresponding to the first semantic vector to the sum of all similarities corresponding to the first semantic vector is calculated, and the ratio is used as the matching probability. The higher the matching probability, the higher the matching degree between the first semantic vector and the second semantic vector, and the closer the category of the return reason represented by the first text corresponding to the first semantic vector is to the category of the return reason represented by the standard text corresponding to the second semantic vector; the lower the matching probability, the lower the matching degree between the first semantic vector and the second semantic vector, and the greater the difference between the category of the return reason represented by the first text corresponding to the first semantic vector and the category of the return reason represented by the standard text corresponding to the second semantic vector.

[0033] In step S104, the categories of the rejection reasons corresponding to the N second semantic vectors with the highest matching probabilities are selected as the categories of the rejection reasons corresponding to the first text.

[0034] N is a positive integer, and the specific value of N can be determined according to the scenario, requirements, experience, etc., and is not limited here. For example, N can be 1, that is, the category of the return reason corresponding to the second semantic vector with the highest matching probability is directly fed back to the user as the category of the return reason corresponding to the first text; N can be 3, that is, the categories of the return reasons corresponding to the three second semantic vectors with the highest matching probability are directly fed back to the user as the categories of the return reason corresponding to the first text.

[0035] In an embodiment of the present application, a sample conversation can be input into a conversation understanding language model in advance so that the conversation understanding language model can understand the rules of questions and answers of the sample conversation, and then the approval text corresponding to the business text is input into the conversation understanding language model as a question, and the text including the return reason text is extracted from the approval text as an answer through the conversation understanding language model. The text and the standard text that can represent the category of the return reason are converted into semantic vectors respectively, and the matching probability of the semantic vector is obtained by matching between the semantic vectors. The matching probability can represent the degree of matching between the return reason represented by the text as the answer and the category of the return reason represented by the standard text, and the category of the return reason represented by the N standard texts with the highest matching probability is used as the category of the return reason corresponding to the text of the answer. In the process of determining the return reason of the entire business text, no manual participation in the summary is required, which can improve the classification efficiency of the return reason of the business text.

[0036] Through specific implementation, when the number of texts is several thousand and there are dozens of categories of return reasons, it takes 8 to 10 hours to manually classify the return reasons of the texts. However, the method for determining the return reasons of the business texts in the embodiment of the present application can complete the classification of the return reasons within a few minutes, greatly improving the classification efficiency of the return reasons of the business texts. The method for determining the return reasons of the business texts in the embodiment of the present application can also ensure the classification accuracy of the return reasons of the business texts. From the perspective of no omission, no addition and no mixing of the return reasons, the classification accuracy of the return reasons of the business texts can reach 94%. Through specific implementation, the vector conversion model adopts the word frequency inverse text frequency vector model, and the category of the return reason corresponding to the second semantic vector with the highest matching probability as the category of the return reason corresponding to the first text can reach an accuracy of 67% to 84%, and the category of the return reason corresponding to the three second semantic vectors with the highest matching probability as the category of the return reason corresponding to the first text can reach an accuracy of 84% to 93%.

[0037] In some embodiments, the vector conversion model may include a word frequency inverse text frequency vector model, and the application of the word frequency inverse text frequency vector model can evaluate the importance of a word to a text in a text set. Correspondingly, the first semantic vector may include a first sub-vector, the first sub-vector includes a vector obtained by converting the first text through the word frequency inverse text frequency vector model, and the second semantic vector may include a second sub-vector, the second sub-vector includes a vector obtained by converting the standard text through the word frequency inverse text frequency vector model. The above step S102 can be specifically refined as follows: using a word segmentation tool to segment the first text and the standard text, and establishing a vocabulary based on the words obtained by the word segmentation; calculating the word frequency inverse text frequency value of each word in the first text and the word frequency inverse text frequency value of each word in the standard text; according to the arrangement order of the words in the vocabulary, the word frequency inverse text frequency value of each word in the first text, and the word frequency inverse text frequency value of each word in the standard text, the first sub-vector and the second sub-vector are obtained.

[0038] The word segmentation tool is used for word segmentation. The type of word segmentation tool is not limited here. For example, the word segmentation tool may include but is not limited to the jieba word segmentation tool. The word library may include words obtained by the first text segmentation and words obtained by the standard text segmentation. The word frequency inverse text frequency value of a word can represent the importance of the word in the text. The higher the word frequency inverse text frequency value of the word, the higher the importance of the word. The word frequency inverse text frequency value of a word can be obtained according to the following formula (1):

[0039]

[0040] Among them, tf-idf ij is the importance of word i in text j, that is, the inverse text frequency value of word i; n ijis the number of times word i appears in text j; ∑ k n kj is the sum of all word frequencies in the text; |D| is the number of texts; |{j:t i ∈d j}| is the number of texts containing word i.

[0041] According to the order of the words in the word library, the word frequency inverse text frequency value of each word in the first text can be filled into the position of the corresponding word to form a first sub-vector. According to the order of the words in the word library, the word frequency inverse text frequency value of each word in the standard text can be filled into the position of the corresponding word to form a second sub-vector. In some examples, the length of the first sub-vector is the same as the length of the second sub-vector, so as to facilitate the calculation of the matching probability.

[0042] In some embodiments, the vector conversion model may include a BERT model, which is a language representation model based on transformer. Correspondingly, the first semantic vector may include a third sub-vector, which includes a vector obtained by converting the first text through the BERT model, and the second semantic vector may include a fourth sub-vector, which includes a vector obtained by converting the standard text through the BERT model. The above step S102 can be specifically refined as follows: through the BERT model, each word in the first text and the standard text is converted into a vector code; the vector code corresponding to the first text and the vector code corresponding to the standard text are respectively subjected to maximum pooling processing to obtain a third sub-vector and a fourth sub-vector.

[0043] The BERT model is a BERT model with pre-trained parameters. The first text is input into the BERT model, and each word in the first text is vector-encoded by the BERT model to obtain a word vector for each word in the first text. The standard text is input into the BERT model, and each word in the standard text is vector-encoded by the BERT model to obtain a word vector for each word in the standard text. Multiple word vectors corresponding to the first text are max-pooled to extract representative features of the first text to obtain a third sub-vector. Multiple word vectors corresponding to the standard text are max-pooled to extract representative features of the standard text to obtain a fourth sub-vector. In some examples, the length of the third sub-vector is the same as the length of the fourth sub-vector, thereby facilitating the calculation of the matching probability. For example, the length of the third sub-vector and the length of the fourth sub-vector may be 768, that is, the third sub-vector and the fourth sub-vector may be 768-dimensional vectors.

[0044] In some embodiments, the above step S103 may be specifically refined as follows: calculating similarity parameters between the first semantic vector and each second semantic vector; and normalizing the similarity parameters to obtain matching probabilities between the first semantic vector and each second semantic vector.

[0045] The similarity parameter can characterize the similarity between the first semantic vector and the second semantic vector. The similarity parameter can be positively correlated with the similarity or negatively correlated with the similarity. The similarity parameter that can characterize the similarity between the first semantic vector and the second semantic vector is within the protection scope of the embodiment of the present application and is not limited here. For example, the similarity parameter may include a cosine distance. The larger the cosine distance, the higher the similarity. The similarity parameter of the first semantic vector and the second semantic vector can be calculated according to the following formula (2):

[0046]

[0047] Among them, x j is the jth element in the first semantic vector; y j is the jth element in the second semantic vector; score i and cos(query,type i ) is the cosine distance between the first semantic vector and the i-th second semantic vector.

[0048] In order to make the similarity between the first semantic vector and each second semantic vector comparable, the similarity parameter can be normalized to obtain the matching probability. The matching probability can be calculated according to the following formula (3):

[0049]

[0050] Among them, p i is the matching probability between the first semantic vector and the i-th second semantic vector; score i For the description of , please refer to the description part in the above formula (2), which will not be repeated here.

[0051] In some examples, if the vector conversion model includes a word frequency inverse text frequency vector model, the first semantic vector includes a first sub-vector, and the second semantic vector includes a second sub-vector, then the similarity parameter between the first semantic vector and each second semantic vector is a first similarity parameter, and the first similarity parameter is a similarity parameter between the first sub-vector and each second sub-vector.

[0052] In other examples, if the vector conversion model includes a BERT model, the first semantic vector includes a third sub-vector, and the second semantic vector includes a fourth sub-vector, then the similarity parameter between the first semantic vector and each second semantic vector is a second similarity parameter, and the second similarity parameter is a similarity parameter between the third sub-vector and each fourth sub-vector.

[0053] In some other examples, if the vector conversion model includes a word frequency inverse text frequency vector model and a BERT model, the similarity parameter of the first semantic vector and each second semantic vector is a third similarity parameter, and the third similarity parameter is obtained based on the first similarity parameter, the second similarity parameter and the weight coefficient. That is, the third similarity parameter can be calculated by using a weighted algorithm using the first similarity parameter, the weight coefficient of the first similarity parameter, the second similarity parameter and the weight coefficient of the second similarity parameter. Specifically, the third similarity parameter is the sum of the first product and the second product, the first product is the product of the first similarity parameter and the weight coefficient of the first similarity parameter, and the second product is the product of the second similarity parameter and the weight coefficient of the second similarity parameter.

[0054] In some embodiments, when the matching probability satisfies the matching effect condition, such as when the matching probability is greater than or equal to a preset standard threshold, the matching probability is high, indicating a good matching effect, and the categories of the rejection reasons corresponding to the N second semantic vectors with the highest matching probabilities can be directly used as the categories of the rejection reasons corresponding to the first text. When the matching probability is low, indicating a poor matching effect, the category of the rejection reason corresponding to the second semantic vector with the highest matching probability will not be used as the category of the rejection reason corresponding to the first text to prevent overfitting, and the first text with such poor matching effect will be reprocessed to supplement the standard reason database. Figure 2 A flowchart of a method for determining a reason for returning a business document provided in another embodiment of the present application, Figure 2 and Figure 1 The difference is that Figure 2 The method for determining the reason for returning a business text shown may further include step S105 and step S106.

[0055] In step S105, if the matching probability between the first semantic vector and any second semantic vector is less than a preset standard threshold, the first text corresponding to the first semantic vector and the newly added return reason summary requirement are input into the dialogue understanding language model to obtain the second text output by the dialogue understanding language model.

[0056] The preset standard threshold is the minimum matching probability for the matching effect to meet the requirements. If the matching probability is greater than or equal to the preset standard threshold, it means that the matching effect meets the requirements and the matching effect is good; if the matching probability is less than the preset standard threshold, it means that the matching effect does not meet the requirements and the matching effect is not good. The matching probability is less than the preset standard threshold, indicating that the standard text of the category of the return reason of the corresponding first text is not recorded in the standard reason database, and the category of the return reason of the first text may be a new category. The first text and the newly added return reason summary requirement can be input into the dialogue understanding language model together, and the return reason summary requirement can be used to instruct the dialogue understanding language model to summarize the input content to obtain a new category of the return reason. The dialogue understanding language model outputs the second text by the re-input first text and the return reason summary requirement. The second text represents the category of the return reason, and the category of the return reason represented by the second text can be regarded as the category of the newly summarized return reason.

[0057] In step S106, the second text is stored as a standard text in the standard reason database.

[0058] The second text is stored as a new standard text in the standard reason database to supplement the categories of return reasons and enrich the standard reason database, thereby ensuring that the method for determining the return reasons of business texts in the embodiment of the present application can be applied for a long time and has good versatility.

[0059] In some examples, when there are many first texts whose matching probability is less than the preset standard threshold, a large number of first texts are input into the dialogue understanding language model again, but the dialogue understanding language model will summarize the first texts of the most prominent categories of return reasons, and there may still be some first texts that have not been summarized into the categories of return reasons. The first texts of the categories of return reasons that have not been summarized and the newly added return reason summary requirements can be input into the dialogue understanding language model again to obtain the second text to supplement the standard reason database. The above steps can be repeated until the categories of return reasons are summarized for all first texts.

[0060] In some embodiments, when the matching probability is low and the matching effect is not good, an external database may be called to match the text representing the return reason category in the external database with the first text with a low matching probability. Figure 3 A flowchart of a method for determining a reason for returning a business document provided in another embodiment of the present application, Figure 3 and Figure 1 The difference is that Figure 3 The method for determining the reason for returning a business text shown may further include steps S107 to S110.

[0061] In step S107, if the matching probability between the first semantic vector and any second semantic vector is less than a preset standard threshold, an external database is called.

[0062] The specific contents of the matching probability and the preset standard threshold value can be found in the relevant descriptions in the above embodiments, which will not be repeated here. The external database is a database independent of the standard reason database. The external database stores text, which is referred to as the backup standard text. The backup standard text represents the category of the return reason, but the category of the return reason represented by the backup standard text may be different from the category of the return reason represented by the standard text in the standard reason database.

[0063] In step S108, the standby standard text in the external database is converted into a third semantic vector using a vector conversion model.

[0064] The third semantic vector includes a semantic vector obtained by converting the standby standard text in the external database through the vector conversion model. One third semantic vector corresponds to one standby standard text. The specific content of converting the text into a semantic vector using the vector conversion model can be found in the relevant description in the above embodiment, which will not be repeated here.

[0065] In step S109, a matching operation is performed on the first semantic vector and the third semantic vector to obtain a matching probability between the first semantic vector and each of the third semantic vectors.

[0066] The specific operation of step S109 is similar to the specific operation related to step 103 in the above embodiment. Please refer to the relevant description in the above embodiment, and will not be repeated here.

[0067] In step S110, if the matching probability between the first semantic vector and the third semantic vector is greater than or equal to a preset standard threshold, the categories of the return reasons corresponding to the M third semantic vectors with the highest matching probabilities are selected as the categories of the return reasons corresponding to the first text.

[0068] M is a positive integer, and the specific value of M can be determined according to the scenario, demand, experience, etc., and is not limited here. For example, M can be 1 or 3. The specific operation of step S110 is similar to the specific operation related to step 104 in the above embodiment, and the relevant description in the above embodiment can be referred to, and will not be repeated here.

[0069] In an embodiment of the present application, the approval text and the standard reason database can be stored in a specified location of an apparatus or device that executes a method for determining the reason for the return of a business text, so that data can be directly read from the specified location when the method for determining the reason for the return of a business text is executed, thereby further improving the classification efficiency of the return reasons.

[0070] For ease of understanding, an example is used here to illustrate the process of determining the reason for returning a business text. Figure 4 A flowchart of an example of a process for determining the reason for returning a business text provided in an embodiment of the present application, such as Figure 4 As shown, the process of determining the reason for returning the business text may include steps a1 to a8.

[0071] In step a1, keywords and sample dialogues are input into the dialogue understanding language model. The sample dialogues include standardized sample approval texts and sample return reasons.

[0072] In step a2, the approval text is input into the dialogue understanding language model, and the approval text is normalized by the dialogue understanding language model and the first text containing the reason for return is outputted item by item.

[0073] In step a3, the standard approval text is input into the dialogue understanding language model to obtain the standard text.

[0074] In step a4, the first text is matched with a standard text representing the category of the return reason using a vector transformation model.

[0075] In step a5, it is determined whether the matching probability is greater than or equal to a preset standard threshold. If so, step a6 is executed; if not, step a7 is executed.

[0076] In step a6, the categories of the return reasons of the N standard texts with the highest matching probabilities are used as the categories of the return reasons of the first text.

[0077] In step a7, the first text with a matching probability less than a preset standard threshold and the return reason summary requirement are input into the dialogue understanding language model, and a new text is obtained by sorting, and the process jumps to step a4 to perform matching again.

[0078] In step a8, the new text is added to the standard reason database.

[0079] The specific contents of the above steps a1 to a8 can be found in the relevant descriptions in the above embodiments, which will not be repeated here.

[0080] A second aspect of the present application provides a device for determining the reason for returning a business text. Figure 5 A schematic diagram of a structure of a device for determining a reason for returning a business document provided in an embodiment of the present application, such as Figure 5 As shown, the device 200 for determining the reason for return of a business text may include a text output module 201 , a vector conversion module 202 , a matching module 203 and a category determination module 204 .

[0081] The text output module 201 can be used to input the sample dialogue into the dialogue understanding language model in advance, and then input the approval text corresponding to the business text as a question into the dialogue understanding language model to obtain the first text output by the dialogue understanding language model as an answer.

[0082] The sample dialogue includes sample questions and sample answers, the sample questions include sample approval texts, and the sample answers include sample return reasons. The first text includes a return reason text corresponding to the approval text.

[0083] The vector conversion module 202 may be used to convert the first text and the standard text in the standard reason database into a first semantic vector and a second semantic vector respectively by using a vector conversion model.

[0084] Standard text representing the category of the return reason.

[0085] The matching module 203 may be used to perform a matching operation on the first semantic vector and the second semantic vector to obtain a matching probability between the first semantic vector and each second semantic vector.

[0086] The category determination module 204 may be configured to select the categories of the return reasons corresponding to the N second semantic vectors with the highest matching probabilities as the categories of the return reasons corresponding to the first text, where N is a positive integer.

[0087] In some embodiments, the vector conversion model includes a word frequency inverse text frequency vector model, the first semantic vector includes a first sub-vector, and the second semantic vector includes a second sub-vector.

[0088] The vector conversion module 202 can be specifically used to: use a word segmentation tool to segment the first text and the standard text, and establish a vocabulary based on the words obtained by the word segmentation; calculate the word frequency inverse text frequency value of each word in the first text and the word frequency inverse text frequency value of each word in the standard text; obtain the first sub-vector and the second sub-vector according to the arrangement order of the words in the vocabulary, the word frequency inverse text frequency value of each word in the first text, and the word frequency inverse text frequency value of each word in the standard text.

[0089] In some embodiments, the vector conversion model includes a BERT model, the first semantic vector includes a third sub-vector, and the second semantic vector includes a fourth sub-vector.

[0090] The vector conversion module 202 can be specifically used to: convert each word in the first text and the standard text into a vector code through the BERT model; perform maximum pooling processing on the vector code corresponding to the first text and the vector code corresponding to the standard text respectively to obtain a third sub-vector and a fourth sub-vector.

[0091] In some embodiments, the matching module 203 may be specifically used to: calculate a similarity parameter between the first semantic vector and each second semantic vector; and normalize the similarity parameter to obtain a matching probability between the first semantic vector and each second semantic vector.

[0092] In some examples, if the vector conversion model includes a word frequency inverse text frequency vector model, the first semantic vector includes a first sub-vector, and the second semantic vector includes a second sub-vector, then the similarity parameter between the first semantic vector and each second semantic vector is a first similarity parameter, and the first similarity parameter is a similarity parameter between the first sub-vector and each second sub-vector.

[0093] If the vector conversion model includes a BERT model, the first semantic vector includes a third sub-vector, and the second semantic vector includes a fourth sub-vector, then the similarity parameter between the first semantic vector and each second semantic vector is a second similarity parameter, and the second similarity parameter is a similarity parameter between the third sub-vector and each fourth sub-vector.

[0094] If the vector conversion model includes a word frequency inverse text frequency vector model and a BERT model, the similarity parameter between the first semantic vector and each second semantic vector is a third similarity parameter, and the third similarity parameter is obtained based on the first similarity parameter, the second similarity parameter and the weight coefficient.

[0095] In some embodiments, the device 200 for determining the reason for return of a business text may further include a storage module.

[0096] The text output module 201 is also used to: if the matching probability between the first semantic vector and any second semantic vector is less than a preset standard threshold, the first text corresponding to the first semantic vector and the newly added return reason summary requirement are input into the dialogue understanding language model to obtain the second text output by the dialogue understanding language model.

[0097] The storage module can be used to store the second text as a standard text in a standard reason database.

[0098] In some embodiments, the device 200 for determining the reason for return of a business text may further include a calling module.

[0099] The calling module may be used to call an external database if the matching probability between the first semantic vector and any second semantic vector is less than a preset standard threshold.

[0100] The vector conversion module 202 may also be used to: utilize a vector conversion model to convert the standby standard text in the external database into a third semantic vector, wherein the standby standard text represents the category of the return reason.

[0101] The matching module 203 may also be used to: perform a matching operation on the first semantic vector and the third semantic vector to obtain a matching probability between the first semantic vector and each of the third semantic vectors.

[0102] The category determination module 204 can also be used for: if the matching probability between the first semantic vector and the third semantic vector is greater than or equal to a preset standard threshold, selecting the category of the return reason corresponding to the M third semantic vectors with the highest matching probability as the category of the return reason corresponding to the first text, where M is a positive integer.

[0103] In some examples, the standard text is obtained by inputting the standard approval text as a question into the dialogue understanding language model.

[0104] In some examples, the text output module 201 is further used to: input keywords to the dialogue understanding language model, the keywords include entities and events. The first text includes entities and events, the entities represent the subject of the return reason, and the events represent the description of the subject of the return reason.

[0105] It should be noted that the device 200 for determining the reason for return of a business text is a device corresponding to the method for determining the reason for return of the business text mentioned above. All implementation methods in the above method embodiments are applicable to the embodiments of the device and can achieve the same technical effect, which will not be repeated here.

[0106] The third aspect of the present application also provides a device for determining the reason for returning a business text. Figure 6 A schematic diagram of a structure of a device for determining a reason for returning a business text provided in an embodiment of the present application, such as Figure 6 As shown, the device 300 for determining the reason for return of a business text includes a memory 301 , a processor 302 , and a computer program stored in the memory 301 and executable on the processor 302 .

[0107] In some examples, the processor 302 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0108] The memory 301 may include a read-only memory (ROM), a random access memory (RAM), a disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Therefore, generally, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method for determining the reason for the return of a business text in an embodiment of the present application.

[0109] The processor 302 runs a computer program corresponding to the executable program code by reading the executable program code stored in the memory 301, so as to implement the method for determining the reason for return of the business document in the above embodiment.

[0110] In some examples, the service text return reason determination device 300 may further include a communication interface 303 and a bus 304. Figure 6 As shown, the memory 301, the processor 302, and the communication interface 303 are connected via a bus 304 and communicate with each other.

[0111] The communication interface 303 is mainly used to realize the communication between the modules, devices, units and / or equipment in the embodiment of the present application. The communication interface 303 can also be used to access input devices and / or output devices.

[0112] The bus 304 includes hardware, software or both, and the components of the determination device 300 of the business text return reason are coupled to each other. For example, but not limitation, the bus 304 may include an accelerated graphics port (Accelerated Graphics Port, AGP) or other graphics bus, an enhanced industry standard architecture (Enhanced Industry Standard Architecture, EISA) bus, a front side bus (Front Side Bus, FSB), a hypertransport (Hyper Transport, HT) interconnection, an industry standard architecture (Industry Standard Architecture, ISA) bus, an infinite bandwidth interconnection, a low pin count (Low pin count, LPC) bus, a memory bus, a micro channel architecture (Micro Channel Architecture, MCA) bus, a peripheral component interconnect (Peripheral Component Interconnect, PCI) bus, a PCI-Express (PCI-E) bus, a serial advanced technology attachment (Serial Advanced Technology Attachment, SATA) bus, a video electronics standard association local (Video Electronics Standards Association Local Bus, VLB) bus or other suitable buses or a combination of two or more of these. Where appropriate, the bus 304 may include one or more buses. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.

[0113] The fourth aspect of the present application provides a computer-readable storage medium, on which a computer program instruction is stored. When the computer program instruction is executed by a processor, the method for determining the reason for the return of the business text in the above-mentioned embodiment can be implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here. Among them, the above-mentioned computer-readable storage medium may include a non-transitory computer-readable storage medium, such as a read-only memory (Read-Only Memory, referred to as ROM), a random access memory (Random Access Memory, referred to as RAM), a disk or an optical disk, etc., which is not limited here.

[0114] The fifth aspect of the present application provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the method for determining the reason for the return of the business text in the above-mentioned embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0115] It should be clear that each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. For device embodiments, equipment embodiments, computer-readable storage medium embodiments, and computer program product embodiments, the relevant parts can refer to the description part of the method embodiment. The present application is not limited to the specific steps and structures described above and shown in the figures. Those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application. In addition, for the sake of brevity, a detailed description of known method technologies is omitted here.

[0116] The above reference is according to the method of the embodiment of the present application, the flow chart of the device (system) and the computer program product and / or the block diagram described various aspects of the present application.It should be understood that each square box in the flow chart and / or the block diagram and the combination of each square box in the flow chart and / or the block diagram can be realized by computer program instructions.These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the realization of the function / action specified in one or more square boxes of the flow chart and / or the block diagram.Such a processor can be but is not limited to a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit.It can also be understood that each square box in the block diagram and / or the flow chart and the combination of the square boxes in the block diagram and / or the flow chart can also be realized by the dedicated hardware that performs the specified function or action, or can be realized by the combination of dedicated hardware and computer instructions.

[0117] Those skilled in the art should understand that the above embodiments are exemplary rather than restrictive. Different technical features appearing in different embodiments can be combined to achieve beneficial effects. Based on the study of the drawings, the specification and the claims, those skilled in the art should be able to understand and implement other variations of the disclosed embodiments. In the claims, the term "comprising" does not exclude other devices or steps; the quantifier "one" does not exclude multiple; the terms "first" and "second" are used to indicate names rather than to indicate any specific order. Any figure marks in the claims should not be understood as limiting the scope of protection. The functions of multiple parts appearing in the claims can be implemented by a single hardware or software module. The appearance of certain technical features in different dependent claims does not mean that these technical features cannot be combined to achieve beneficial effects.

Claims

1. A method for determining the reason for returning a business document, characterized in that: include: After the sample dialogue is pre-input into the dialogue understanding language model, the approval text corresponding to the business text is input into the dialogue understanding language model as a question to obtain a first text output by the dialogue understanding language model as an answer, wherein the sample dialogue includes a sample question and a sample answer, the sample question includes a sample approval text, the sample answer includes a sample return reason, and the first text includes a return reason text corresponding to the approval text; Using a vector conversion model, converting the first text and a standard text in a standard reason database into a first semantic vector and a second semantic vector respectively, wherein the standard text represents the category of the return reason; Performing a matching operation on the first semantic vector and the second semantic vector to obtain a matching probability between the first semantic vector and each of the second semantic vectors; The categories of the return reasons corresponding to the N second semantic vectors with the highest matching probabilities are selected as the categories of the return reasons corresponding to the first text, where N is a positive integer.

2. The method according to claim 1, characterized in that The vector conversion model includes a word frequency inverse text frequency vector model, the first semantic vector includes a first sub-vector, and the second semantic vector includes a second sub-vector; The using of the vector conversion model to convert the first text and the standard text in the standard reason database into a first semantic vector and a second semantic vector respectively includes: Using a word segmentation tool to segment the first text and the standard text, and establishing a word library based on the words obtained by the word segmentation; Calculating the inverse text frequency value of the word frequency of each word in the first text and the inverse text frequency value of the word frequency of each word in the standard text; The first sub-vector and the second sub-vector are obtained according to the arrangement order of the words in the word library, the word frequency inverse text frequency value of each word in the first text, and the word frequency inverse text frequency value of each word in the standard text.

3. The method according to claim 1, characterized in that The vector conversion model includes a BERT model, the first semantic vector includes a third sub-vector, and the second semantic vector includes a fourth sub-vector; The using of the vector conversion model to convert the first text and the standard text in the standard reason database into a first semantic vector and a second semantic vector respectively includes: By using the BERT model, each word in the first text and the standard text is converted into a vector encoding; The vector code corresponding to the first text and the vector code corresponding to the standard text are respectively subjected to maximum pooling processing to obtain the third sub-vector and the fourth sub-vector.

4. The method according to claim 1, characterized in that: The performing a matching operation on the first semantic vector and the second semantic vector to obtain a matching probability between the first semantic vector and each second semantic vector includes: Calculating a similarity parameter between the first semantic vector and each of the second semantic vectors; The similarity parameters are normalized to obtain a matching probability between the first semantic vector and each second semantic vector.

5. The method according to claim 4, characterized in that If the vector conversion model includes a word frequency inverse text frequency vector model, the first semantic vector includes a first sub-vector, and the second semantic vector includes a second sub-vector, then the similarity parameter between the first semantic vector and each second semantic vector is a first similarity parameter, and the first similarity parameter is a similarity parameter between the first sub-vector and each second sub-vector; If the vector conversion model includes a BERT model, the first semantic vector includes a third sub-vector, and the second semantic vector includes a fourth sub-vector, then the similarity parameter between the first semantic vector and each second semantic vector is a second similarity parameter, and the second similarity parameter is a similarity parameter between the third sub-vector and each fourth sub-vector; If the vector conversion model includes a word frequency inverse text frequency vector model and a BERT model, the similarity parameter between the first semantic vector and each second semantic vector is a third similarity parameter, and the third similarity parameter is obtained based on the first similarity parameter, the second similarity parameter and a weight coefficient.

6. The method according to claim 1, characterized in that Also includes: If the matching probability between the first semantic vector and any of the second semantic vectors is less than a preset standard threshold, the first text corresponding to the first semantic vector and the newly added return reason summary requirement are input into the dialogue understanding language model to obtain a second text output by the dialogue understanding language model; The second text is stored as the standard text in the standard reason database.

7. The method according to claim 1, characterized in that Also includes: If the matching probability between the first semantic vector and any of the second semantic vectors is less than a preset standard threshold, calling an external database; Using the vector conversion model, converting the standby standard text in the external database into a third semantic vector, the standby standard text representing the category of the return reason; Performing a matching operation on the first semantic vector and the third semantic vector to obtain a matching probability between the first semantic vector and each of the third semantic vectors; If the matching probability between the first semantic vector and the third semantic vector is greater than or equal to the preset standard threshold, the categories of return reasons corresponding to the M third semantic vectors with the highest matching probability are selected as the categories of return reasons corresponding to the first text, where M is a positive integer.

8. The method according to claim 1, characterized in that The standard text is obtained by inputting the standard approval text as a question into the dialogue understanding language model.

9. The method according to any one of claims 1 to 8, characterized in that Before inputting the approval text corresponding to the business text as a question into the dialogue understanding language model, the method further includes: Inputting keywords into the dialogue understanding language model, wherein the keywords include entities and events; The first text includes entities and events, wherein the entities represent the subject of the return reason, and the events represent the description of the subject of the return reason.

10. A device for determining the reason for return of a business document, characterized in that: include: a text output module, configured to input the approval text corresponding to the business text as a question into the dialogue understanding language model after the sample dialogue is pre-input into the dialogue understanding language model, so as to obtain a first text as an answer output by the dialogue understanding language model, wherein the sample dialogue includes a sample question and a sample answer, the sample question includes a sample approval text, the sample answer includes a sample return reason, and the first text includes a return reason text corresponding to the approval text; A vector conversion module, used to convert the first text and the standard text in the standard reason database into a first semantic vector and a second semantic vector respectively by using a vector conversion model, wherein the standard text represents the category of the return reason; A matching module, configured to perform a matching operation on the first semantic vector and the second semantic vector to obtain a matching probability between the first semantic vector and each of the second semantic vectors; A category determination module is used to select the categories of the return reasons corresponding to the N second semantic vectors with the highest matching probabilities as the categories of the return reasons corresponding to the first text, where N is a positive integer.

11. A device for determining the reason for return of a business document, characterized in that: include: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, it implements the method for determining the reason for return of a business text as described in any one of claims 1 to 9.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, which, when executed by a processor, implement the method for determining the reason for return of a business text as described in any one of claims 1 to 9.

13. A computer program product, characterized in that It includes a computer program, which, when executed by a processor, implements the method for determining the reason for return of a business text as described in any one of claims 1 to 9.

Citation Information

Patent Citations

  • Customer service robot session text classification method, device and apparatus, and storage medium

    CN109543030A

  • Artificial intelligence conflict semantic recognition method and device

    CN111460118A

  • Text semantic matching method and device, computer equipment and storage medium

    CN111639502A

  • Order withdrawing processing model training method and device thereof, processing method and device, equipment and medium

    CN112699944A

  • Text data processing method and device

    CN113723110A