Processing device, processing method, and program

The processing device enhances response accuracy by generating models from learning data vectors to recommend appropriate answers with reasons, reducing inappropriate responses through improved understanding and validation.

JP7563832B2Active Publication Date: 2024-10-08NEC PLATFROMS LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2023042958
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2023-03-17
Publication Date
2024-10-08
Estimated Expiration
2043-03-17

AI Technical Summary

Technical Problem

Operators providing responses to questions often answer inappropriately due to lack of understanding the reasoning behind recommended answer texts.

Method used

A processing device and method that generates sentence vectors from learning data to create models for recommending appropriate answers and their reasons, using techniques like TF-IDF, BERT, and Word2vec, and calculates similarity using cosine or Euclidean norms to enhance response accuracy.

Benefits of technology

Reduces the likelihood of inappropriate responses by providing recommended answers with clear reasoning, allowing operators to validate their responses and improve accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007563832000003
    Figure 0007563832000003
  • Figure 0007563832000004
    Figure 0007563832000004
  • Figure 0007563832000005
    Figure 0007563832000005
Patent Text Reader

Abstract

To provide a processing device capable of reducing a possibility that an operator performs an inappropriate response when presenting a response corresponding to a question.SOLUTION: A processing device includes: a first processing section for generating a first sentence vector including a vector regarding a question sentence for all the learning data including the question sentence, a label, and a response sentence, and generating a first model for outputting a label corresponding to an inputted question sentence when the question sentence is inputted on the basis of the firs sentence vector; a second processing section for dividing all the learning data for each label, generating a second sentence vector including a vector for each word for a question sentence included in learning data for each divided label, and setting the second sentence vector as a second model; and a third processing section for generating a recommended response sentence and a recommended reason of a recommended response sentence for a new question sentence on the basis of the first model and the second model, and presenting the generated, recommended response sentence and recommended reason.SELECTED DRAWING: Figure 12
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to a processing device, a processing method, and a program. [Background technology]

[0002] With the spread of online shopping and the like, it is expected that there will be an increasing number of opportunities for users to ask questions to operators and for the operators to respond. Patent Document 1 discloses, as a related technique, a technique relating to a presentation device that presents a response corresponding to a question. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2013-143066 A Summary of the Invention [Problem to be solved by the invention]

[0004] Incidentally, when a response corresponding to a question is presented as in the device described in Patent Document 1, the operator who responds in response to the presentation will answer based on the recommended answer sentence. However, since the operator answers without knowing the reason why the answer sentence was recommended, there is a high possibility that the answer will be inappropriate. Therefore, there is a demand for a technology that can reduce the possibility that the operator will give an inappropriate answer when presenting a response corresponding to a question.

[0005] An object of each aspect of the present disclosure is to provide a processing device, a processing method, and a program that can solve the above-mentioned problems. [Means for solving the problem]

[0006] In order to achieve the above-mentioned object, according to one embodiment of the present disclosure, a processing device includes a first processing unit that generates a first sentence vector including a vector for a question sentence for all learning data including a question sentence, a label, and an answer sentence, and generates a first model based on the first sentence vector that outputs a label corresponding to the question sentence input when the question sentence is input; a second processing unit that divides all the learning data by label, generates second sentence vectors including vectors for each word for the question sentence included in the learning data for each divided label, and uses the second sentence vector as a second model; and a third processing unit that generates a recommended answer sentence for a new question sentence and a reason for recommending the recommended answer sentence based on the first model and the second model, and presents the generated recommended answer sentence and the reason for recommending the recommended answer sentence.

[0007] In order to achieve the above object, according to another aspect of the present disclosure, a processing method includes: A processing method executed by a processing device, the method comprising: generating a first sentence vector including a vector for a question sentence for all learning data including a question sentence, a label, and an answer sentence; generating a first model that outputs a label corresponding to the input question sentence when the question sentence is input based on the first sentence vector; dividing all the learning data by label, generating a second sentence vector including a vector for each word for a question sentence included in the learning data for each divided label, and using the second sentence vector as a second model; generating a recommended answer sentence for a new question sentence and a reason for recommending the recommended answer sentence based on the first model and the second model, and presenting the generated recommended answer sentence and the reason for recommending the recommended answer sentence. .

[0008] In order to achieve the above-mentioned object, according to another aspect of the present disclosure, a program causes a computer to perform the following steps: for all training data including a question sentence, a label, and an answer sentence, generate a first sentence vector including a vector for the question sentence, and generate a first model based on the first sentence vector that outputs a label corresponding to the input question sentence when the question sentence is input; divide all the training data by label, generate second sentence vectors including vectors for each word for the question sentence included in the training data for each divided label, and use the second sentence vector as a second model; and generate a recommended answer sentence for a new question sentence and a reason for recommending the recommended answer sentence based on the first model and the second model, and present the generated recommended answer sentence and the reason for recommending the recommended answer sentence. Effect of the Invention

[0009] According to each aspect of the present disclosure, when presenting a response corresponding to a question, the possibility that an operator will give an inappropriate answer can be reduced. [Brief description of the drawings]

[0010] [Figure 1] FIG. 1 is a diagram illustrating an example of a configuration of a response system according to an embodiment of the present disclosure. [Diagram 2] FIG. 2 is a diagram illustrating an example of response history data according to an embodiment of the present disclosure. [Diagram 3] FIG. 2 is a diagram illustrating an example of a configuration of a model update unit according to an embodiment of the present disclosure. [Figure 4] FIG. 2 is a diagram illustrating a first example of a processing flow of a response system according to an embodiment of the present disclosure. [Diagram 5] A diagram showing a second example of a processing flow of the response system according to an embodiment of the present disclosure. [Figure 6] A diagram showing a third example of a processing flow of the response system according to an embodiment of the present disclosure. [Figure 7] A diagram showing a fourth example of a processing flow of the response system according to an embodiment of the present disclosure. [Figure 8] A diagram showing a fifth example of a processing flow of a response system according to an embodiment of the present disclosure. [Figure 9] FIG. 13 is a diagram showing an example of a display showing how many other events with the same label exist in an embodiment of the present disclosure. [Figure 10] FIG. 13 is a diagram showing an example of words corresponding to each term aibi after rearrangement and the numerical values ​​of those terms according to an embodiment of the present disclosure. [Figure 11] FIG. 11 is a diagram showing an example of a recommendation result according to an embodiment of the present disclosure. [Figure 12] FIG. 2 illustrates a minimum configuration of a processing device according to an embodiment of the present disclosure. [Figure 13] FIG. 13 is a diagram illustrating an example of a processing flow of a processing device with a minimum configuration according to an embodiment of the present disclosure. [Figure 14] FIG. 1 is a schematic block diagram illustrating a configuration of a computer according to at least one embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] Hereinafter, the embodiments will be described in detail with reference to the drawings. <Embodiment> A response system 1 (an example of a processing device) according to an embodiment of the present disclosure is a system that presents recommended reply sentences and reasons for recommending the recommended reply sentences.

[0012] 1 is a diagram illustrating an example of a configuration of a response system 1 according to an embodiment of the present disclosure. As shown in FIG. 1, the response system 1 includes a terminal device 10, a response history database 20 (hereinafter, referred to as a response history DB20), and a response presentation device 30.

[0013] The terminal device 10 is a terminal device operated by an operator of a call center. The terminal device 10 records in the response history DB 20 history information of questions and answers, such as responses to telephone calls and emails, by the operator.

[0014] The response history DB 20 stores history information of questions and answers handled by the agents. The history information in the response history DB 20 is accumulated every time an agent handles a question and answer session.

[0015] The response presentation device 30 includes a learning unit 100, a recommendation unit 200, and a model storage unit 300. The learning unit 100 learns a class classifier, which is a class classification model. As shown in FIG. 1, the learning unit 100 includes a preprocessing unit 110, a first feature extraction unit 120, a class classification model generation unit 130, a second feature extraction unit 140, and a recommendation model generation unit 150.

[0016] The preprocessing unit 110 acquires all of the questions T10 in the data in the response history DB20. The preprocessing unit 110 performs morphological analysis using all of the acquired questions T10. FIG. 2 is a diagram showing an example of response history data in an embodiment of the present disclosure. The response history data includes questions T10, categories T20, and answers T30, as shown in FIG. 2. For example, the questions T10 are sentences such as "I don't know how to enter the BIOS settings," "I want to know how to update the BIOS," "I don't know how to connect to WiFi," and "I don't know how to use application programs," as shown in FIG. 2. WiFi is a registered trademark. For example, in the case of the above-mentioned question T10, since the question T10 is a question related to BIOS, the categories T20 are "BIOS," "WiFi," and "application programs," as shown in FIG. 2. The categories T20 describe the model name, unit name, function name, and major categories of failures and malfunctions related to the question T10. The categories T20 are also called class labels. For example, in the case of the question T10 mentioned above, the answer T30 is a sentence showing the answer to the question such as "Press and hold F2 during startup", "Download the rom file...", "Click the XX icon at the bottom right of the screen...", "Click the XX icon at the bottom left of the screen to display a list of application programs and select one". The response history data is used as learning data.

[0017] The first feature extraction unit 120 creates a first sentence vector from all the results of the morphological analysis by the preprocessing unit 110. Methods for creating the first sentence vector from all the results of the morphological analysis include using TF-IDF (Term Frequency-Inverse Document Frequency), BERT (Bidirectional Encoder Representations from Transformers), and Word2vec (Word to Vector). However, the sentence vector may be created using any method.

[0018] The class classification model generation unit 130 trains a classifier using the first sentence vector created by the first feature extraction unit 120 and the classification T20 (class label) assigned to the response history DB20. For example, the class classification model generation unit 130 trains a class classification model so that when the first sentence vector created by the first feature extraction unit 120 is input to the classifier, a classification corresponding to the input first sentence vector is output. Examples of the classifier include a support vector machine (SVM) and a classifier using deep learning. However, the classifier may be one using any method. The class classification model generation unit 130 records the generated classifier in the model storage unit 300 as the class classification model 310.

[0019] The second feature extraction unit 140 divides the learning data for each type of label indicated by the classification T20. For example, in the case of the classification T20 shown in FIG. 2, the second feature extraction unit 140 divides the learning data into BIOS, WiFi, and application programs. The second feature extraction unit 140 creates a second text vector from the result of morphological analysis for each of the divided learning data. As a method for creating the second text vector from the result of morphological analysis, a method using TF-IDF or Word2vec, similar to the method for creating the first text vector, can be used. The second text vector may be created using a method different from that for the first text vector. However, in order to present the recommendation reason, it is necessary to use a text vector method in which words are components, such as the TF-IDF vector. In other words, the first text vector is generated for all classifications T20 regardless of the type of label. In contrast, the second text vector is generated for classifications T20 for each type of label.

[0020] The recommendation model generating unit 150 records the second sentence vector created by the second feature extracting unit 140 in the model storing unit 300 as a recommendation model 320. That is, the recommendation model 320 here is a vector.

[0021] The recommendation unit 200 recommends an answer to a new question. As shown in FIG. 1 , the recommendation unit 200 includes a preprocessing unit 210, a first feature extraction unit 220, a classification execution unit 230, a second feature extraction unit 240, a recommendation generation unit 250, a recommendation reason generation unit 260, a recommendation output unit 270, and a model update unit 280.

[0022] The pre-processing unit 210 acquires new question-and-answer data input to the response presentation device 30. The pre-processing unit 210 performs morphological analysis using the new question sentence in the acquired question-and-answer data.

[0023] The first feature extraction unit 220 creates a first sentence vector from the result of the morphological analysis by the preprocessing unit 210. The sentence vector may be one that uses TF-IDF, one that uses BERT, one that uses Word2vec, etc. However, the sentence vector may be one that uses any method.

[0024] The classification execution unit 230 loads the classification model 310 stored in the model storage unit 300. The classification execution unit 230 inputs the first sentence vector created by the first feature extraction unit 220 into the loaded classification model 310, and executes classification.

[0025] The second feature extraction unit 240 creates a second sentence vector for the new question and answer data acquired by the preprocessing unit 210. The second feature extraction unit 240 may create the second sentence vector using the same method as the second feature extraction unit 140.

[0026] The recommendation generating unit 250 loads the recommendation model 320 stored in the model storage unit 300. The recommendation generating unit 250 calculates the similarity between the second sentence vector corresponding to the class obtained as a result of the classification performed by the classification executing unit 230 and the second sentence vector stored in the loaded recommendation model 320. Examples of the similarity include cosine similarity and Euclidean norm. For example, the recommendation generating unit 250 sets the second sentence vector corresponding to the class obtained as a result of the classification performed by the classification executing unit 230 as vector a. The recommendation generating unit 250 also sets the second sentence vector stored in the loaded recommendation model 320 as vector b. The recommendation generating unit 250 then calculates the similarity by performing an operation using an equation similar to equation (1) or equation (2) used to generate information to be presented as a recommendation reason, which will be described later. The recommendation generation unit 250 generates the answer sentence T30 in the response history DB20 that has a high similarity as recommendation information. When there are multiple labels of the same class with high similarity or labels not used in learning, the recommendation information may be generated by presenting a representative example and displaying how many other events with the same label exist. This makes it possible to efficiently recommend multiple candidates, and also makes it possible to use the number of events with the same label as a criterion for judging the reliability of the recommendation.

[0027] The recommendation reason generating unit 260 generates information on which words or phrases contributed significantly to the similarity, thereby presenting the recommendation reason. Here, the generation of information presented as the recommendation reason by the recommendation reason generating unit 260 will be described.

[0028] First, an example of generating information to be presented as a recommendation reason when cosine similarity is used as the similarity will be described.

[0029] The cosine value between vectors a and b is expressed as shown in equation (1).

[0030]

number

[0031] Here, vector a is the second sentence vector for the new question and answer data, and vector b is the second sentence vector created from the recommendation model 320. In this case, the cosine value can be treated as the similarity between sentences.

[0032] Here, attention is paid to each term aibi in the numerator on the rightmost side of formula (1). The subscript i of each term aibi represents the element number of the vector. In the case of a text vector such as TF-IDF, each term aibi corresponds to a phrase such as "BIOS", "settings", and "how to enter". By sorting and extracting these terms in descending order of numerical value and presenting the corresponding phrase and its numerical value, for example, in the form of a table, it is possible to inform the operator via the terminal device 10 which phrase caused the recommendation. In addition, by dividing the numerical value of this term by the cosine value and displaying it, it is possible to present it as a contribution rate.

[0033] Next, an example of generating information to be presented as a recommendation reason when the Euclidean norm is used as the similarity will be described.

[0034] The Euclidean norm between vectors a and b is expressed as in equation (2).

[0035]

number

[0036] Unlike cosine similarity, the similarity using the Euclidean norm indicates that the smaller the value, the closer the distance between vectors. Therefore, in the similarity using the Euclidean norm, the smaller the value, the higher the similarity. This makes it possible to present phrases that have a small ai-bi value on the right side of formula (2) and that correspond to ai ≠ 0 and bi ≠ 0 as phrases that contribute highly to the similarity.

[0037] The recommendation output unit 270 formats the recommendation information generated by the recommendation generation unit 250 and the recommendation reason generated by the recommendation reason generation unit 260. The recommendation output unit 270 outputs the formatted recommendation information and the formatted recommendation reason as recommendation results.

[0038] 3 is a diagram illustrating an example of a configuration of the model update unit 280 according to an embodiment of the present disclosure. As shown in FIG. 3, the model update unit 280 includes an unnecessary recommendation deletion receiving unit 400, an unnecessary recommendation deletion reflecting unit 410, a model format update receiving unit 420, and a model format update reflecting unit 430.

[0039] The unnecessary recommendation deletion receiving unit 400 receives an input regarding the presence or absence of useful / unnecessary recommended information from the terminal device 10 through an operation by an operator on the terminal device 10 .

[0040] When the unnecessary recommendation deletion receiving unit 400 receives unnecessary recommendation information as an input result from the terminal device 10, the unnecessary recommendation deletion reflecting unit 410 deletes the unnecessary recommendation data from the recommendation model 320. Then, the unnecessary recommendation deletion reflecting unit 410 ends the reception of input from the terminal device 10.

[0041] Moreover, when the unnecessary recommendation deletion receiving unit 400 does not receive unnecessary recommendation information as an input result from the terminal device 10, the unnecessary recommendation deletion reflecting unit 410 ends the reception of input from the terminal device 10.

[0042] The model format update receiving unit 420 receives additions of content that conforms to a new format for useful recommendations.

[0043] The model format update reflecting unit 430 reflects the content conforming to the new format received by the model format update receiving unit 420 in the recommended model 320 in the model storage unit 300 .

[0044] In addition, the model format update reflecting unit 430 ends the process if there are no useful recommendations or if there is no additional content according to the new format. As a result, events that have a history of recommendations and have been useful are preferentially updated according to the new format. Then, when data updated according to the new format is accumulated, it becomes possible to create a new machine learning model.

[0045] The model storage unit 300 stores a class classification model 310 generated by the class classification model generation unit 130 of the learning unit 100 and a recommendation model 320 generated by the recommendation model generation unit 150 of the learning unit 100 .

[0046] Next, the processing performed by the response system 1 according to an embodiment of the present disclosure will be described with reference to Figs. 4 to 8. Fig. 4 is a diagram showing a first example of a processing flow of the response system 1 according to an embodiment of the present disclosure. Fig. 5 is a diagram showing a second example of a processing flow of the response system 1 according to an embodiment of the present disclosure. Fig. 6 is a diagram showing a third example of a processing flow of the response system 1 according to an embodiment of the present disclosure. Fig. 7 is a diagram showing a fourth example of a processing flow of the response system 1 according to an embodiment of the present disclosure. Fig. 8 is a diagram showing a fifth example of a processing flow of the response system 1 according to an embodiment of the present disclosure.

[0047] First, the procedure of learning the classifier performed by the response system 1 will be described with reference to FIG.

[0048] The preprocessing unit 110 acquires all of the questions T10 in the data in the response history DB 20 as learning question-and-answer data (step S100). The preprocessing unit 110 performs morphological analysis using all of the acquired questions T10 (learning question-and-answer data). The first feature extraction unit 120 creates a first sentence vector from the result of the morphological analysis by the preprocessing unit 110 (step S101).

[0049] The classification model generation unit 130 uses the first sentence vector created by the first feature extraction unit 120 and the classification T20 (i.e., class label) assigned to the interaction history DB20 to train a classifier represented by the classification model 310 (step S102). The model storage unit 300 records the trained classifier generated by the classification model generation unit 130 of the learning unit 100 together with the first sentence vector (for example, in the model storage unit 300) (step S103).

[0050] The second feature extraction unit 140 divides the learning data into groups of labels indicated by the classification T20. The second feature extraction unit 140 creates a second sentence vector for each group of divided learning data from the results of the morphological analysis (step S104). The recommendation model generation unit 150 records the second sentence vector created by the second feature extraction unit 140 as a recommendation model 320 in the model storage unit 300 (step S105).

[0051] Next, a procedure for the response system 1 to recommend a plurality of candidates will be described with reference to FIG.

[0052] The operator receives a new inquiry. In response to the received new inquiry, the operator operates the terminal device 10 to input new question-and-answer data to the response presentation device 30. The terminal device 10 inputs the new question-and-answer data to the response presentation device 30 in response to the operation by the operator.

[0053] The pre-processing unit 210 acquires new question-and-answer data input to the response presentation device 30 (step S200). The pre-processing unit 210 performs morphological analysis using a new question sentence in the acquired question-and-answer data. The first feature extraction unit 220 creates a first sentence vector from the result of the morphological analysis by the pre-processing unit 210 (step S201).

[0054] The classification execution unit 230 loads the classification model 310 stored in the model storage unit 300 (step S202). The classification execution unit 230 inputs the first sentence vector created by the first feature extraction unit 220 into the loaded classification model 310 and executes classification (step S203).

[0055] The recommendation generation unit 250 loads the recommendation model 320 stored in the model storage unit 300 (step S204). The second feature extraction unit 240 creates a second sentence vector for the new question and answer data acquired by the preprocessing unit 210 (step S205). The recommendation generation unit 250 calculates the similarity between the second sentence vector model corresponding to the class obtained by the execution result of the classification execution unit 230 and the second sentence vector stored in the loaded recommendation model 320 (step S206). The recommendation generation unit 250 generates the answer sentence T30 in the response history DB20 that has a high similarity as recommendation information (step S207).

[0056] In addition, the similarity calculation uses cosine similarity or similarity using Euclidean norm. In generating recommendation information, when there are multiple labels with the same class label or labels not used in learning among the top similarities, one representative example may be presented and the number of other events with the same label may be displayed. FIG. 9 is a diagram showing a display example of how many other events with the same label exist in one embodiment of the present disclosure. For example, as shown in part (a) of FIG. 9, when there are three parts A, two parts B, and one part C as labels, the recommendation generation unit 250 sets the highest similarity in the same label as the similarity of that label, and arranges the labels in descending order of similarity. Then, as shown in part (b) of FIG. 9, the recommendation generation unit 250 associates the number of cases of each label with each label and the similarity of each label. In this way, the recommendation generation unit 250 generates recommendation information in step S207.

[0057] Here, with reference to FIG. 6, a process performed by the recommendation reason generating unit 260 for generating a recommendation reason, which is information indicating which word or phrase has contributed greatly to the similarity, will be described.

[0058] First, the process in which the recommendation reason generating unit 260 generates a recommendation reason will be described using cosine similarity as an example of similarity.

[0059] The cosine value between vectors a and b is expressed as in the above formula (1). The recommendation reason generation unit 260 acquires the second sentence vector for the new question and answer data as vector a, and the second sentence vector created from the recommendation model 320 as vector b (step S300). In this case, the recommendation reason generation unit 260 treats the cosine value as the similarity between sentences.

[0060] The recommendation reason generating unit 260 obtains each element of the similarity calculation as each term aibi of the numerator on the rightmost side of the formula (1) (step S301). Here, attention is paid to each term aibi of the numerator on the rightmost side of the formula (1). The subscript i of each term aibi represents the element number of the vector. In the case of a text vector such as TF-IDF, each term aibi corresponds to a phrase such as "BIOS", "setting", and "how to enter". The recommendation reason generating unit 260 rearranges the element numbers of each term aibi in descending order of numerical value (i.e., contribution degree) (step S302). Then, the recommendation reason generating unit 260 generates the words corresponding to each term aibi after rearrangement and the numerical value of the term as recommendation information (for example, in the form of a table) (step S303). The recommendation reason generating unit 260 presents the top words with the largest numerical value (i.e., the largest contribution degree) (step S304). The recommendation reason generating unit 260 can generate the contribution rate by dividing the numerical value of this term by the cosine value and displaying the result.

[0061] Fig. 10 is a diagram showing an example of a phrase corresponding to each item aibi after rearrangement in one embodiment of the present disclosure and the numerical value of that item. In the example shown in Fig. 10, the phrases corresponding to the items are arranged in descending order of similarity, such as "I don't know how to enter the BIOS settings," "I want to know how to update the BIOS," and "I don't know how to set up an application program (in Fig. 10, it is written as "I don't know how to set up the application program")," and a numerical value of the similarity is generated together with the phrase.

[0062] Next, the process performed by the recommendation reason generating unit 260 will be described using the Euclidean norm as an example of similarity.

[0063] The Euclidean norm between vectors a and b is expressed as in the above formula (2). The recommendation reason generation unit 260 acquires vector a as the second sentence vector for the new question and answer data, and vector b as the second sentence vector created from the recommendation model 320 (processing corresponding to step S300). In this case, the recommendation reason generation unit 260 treats the Euclidean norm as the similarity between sentences.

[0064] The recommendation reason generating unit 260 obtains each term (ai-bi)^2 on the right side of the formula (2) (processing corresponding to step S301). Unlike the case of cosine similarity, the smaller the Euclidean norm value, the closer the distance between vectors a and b. Therefore, the smaller the Euclidean norm value, the higher the similarity. Therefore, a phrase with a low numerical value of (ai-bi)^2 and corresponding to ai≠0 and bi≠0 is a phrase that contributes to the similarity to a large extent. The recommendation reason generating unit 260 rearranges each term (ai-bi)^2 in ascending numerical order (processing corresponding to step S302). Then, the recommendation reason generating unit 260 generates the words corresponding to each rearranged term (ai-bi)^2 and the numerical values ​​of the terms as recommendation information (for example, in the form of a table) (processing corresponding to step S303). The recommendation reason generating unit 260 presents the top words with small numerical values ​​(that is, with large contributions) (processing corresponding to step S304).

[0065] Following the process of step S303 (or the process corresponding to step S303), the recommendation output unit 270 formats the recommendation information generated by the recommendation generation unit 250 and the recommendation reason generation unit 260, and outputs the formatted recommendation information as a recommendation result. FIG. 11 is a diagram showing an example of a recommendation result in an embodiment of the present disclosure. For example, the recommendation output unit 270 formats the recommendation information, and outputs the numerical value of the similarity (referred to as "similarity" in FIG. 11), past question contents (referred to as "past question contents" in FIG. 11), and action contents for the question contents (referred to as "action contents" in FIG. 11) to the terminal device 10 as a recommendation result in order of similarity (referred to as "similarity ranking" in FIG. 11).

[0066] Here, the process performed by the unnecessary recommendation deletion receiving unit 400 and the unnecessary recommendation deletion reflecting unit 410 regarding model updates will be described with reference to FIG.

[0067] The operator receives the recommendation results output by the recommendation output unit 270 via the terminal device 10. The operator checks the recommendation results and performs an operation on the terminal device 10 to select useful recommendation results and unnecessary recommendation results. Examples of unnecessary recommendation results include a response sentence of "I don't know" as a past recommendation result, and a response sentence recommended in the past before the content was improved. The unnecessary recommendation deletion receiving unit 400 receives input regarding the presence or absence of useful recommendation results and unnecessary recommendation results according to the operation by the operator (step S400). The unnecessary recommendation deletion reflecting unit 410 checks the input result received from the terminal device 10 (step S401). The unnecessary recommendation deletion reflecting unit 410 determines whether or not there are unnecessary recommendation results (step S402). Then, if there are unnecessary recommendation results (YES in step S402), the unnecessary recommendation deletion reflecting unit 410 deletes the unnecessary recommendation results from the recommendation model 320 (step S403). Then, the unnecessary recommendation deletion reflecting unit 410 stops accepting input from the terminal device 10 (step S404). On the other hand, if there are no unnecessary recommendation results (NO in step S402), the unnecessary recommendation deletion accepting unit 400 proceeds to the process of step S404. As a result, the words are arranged and presented in order of the degree of similarity, so that the operator can be informed via the terminal device 10 of which words contributed to the recommendation.

[0068] In one embodiment of the present disclosure, useful recommendation results and unnecessary recommendation results are determined by one input. However, if the same recommendation result is output many times, and the recommendation result is not determined to be useful a predetermined number of times (e.g., N times), the learning data for the recommendation result may be deleted from the recommendation model 320. The predetermined number of times N may be set as a variable parameter.

[0069] Furthermore, learning data for recommendation results that the operator selects as unnecessary may be immediately deleted from the recommendation model 320.

[0070] In addition, the method is not limited to either of the above two methods, and both methods may be used to delete unnecessary learning data from the recommendation model 320 and update the recommendation model 320.

[0071] Next, a procedure for updating the recommended model 320 to update the data format performed by the model format update receiving unit 420 will be described with reference to FIG.

[0072] The recommendation model 320 is created as a trained model by learning using old-format data (the newest data among past data). After the answer sentence of the past case is recommended based on the similarity by the model created with the old-format data, the operator 10 checks the recommendation result and performs an operation to input a useful recommendation to the model format update receiving unit 420. The model format update receiving unit 420 determines whether or not a useful recommendation exists in the old-format data (step S500). If the model format update receiving unit 420 determines that a useful recommendation exists in the old-format data (YES in step S500), it ends the process. Also, if the model format update receiving unit 420 determines that a useful recommendation does not exist in the old-format data (NO in step S500), it adds the useful recommendation to the old-format data (step S501). Then, the model format update receiving unit 420 reflects the data in which the useful recommendations have been added to the old format data as new format data (the newest data after the useful recommendations have been added, which will become old format data in the next step S500) in the recommendation model 320 in the model storage unit 300 (step S502). This allows events that have a history of being recommended and have been useful to be updated preferentially to the new format. It becomes possible to create a new model again when new format data is accumulated.

[0073] In the embodiment of the present disclosure, the response presentation device 30 is described as an independent device, but each function may be provided as a program. For example, the response presentation device 30 may be realized by installing a program in an operation management server (an example of a computer) or the like, in a terminal / tablet terminal or a client PC (a personal computer, an example of a computer) used by the operator 10, or in a virtual server (an example of a computer) on the cloud.

[0074] The above describes the response system 1 according to an embodiment of the present disclosure. In the response system 1 (an example of a processing device), the first processing unit generates a first sentence vector including a vector for a question sentence for all learning data including a question sentence, a label, and an answer sentence, and generates a first model that outputs a label corresponding to the input question sentence when the question sentence is input based on the first sentence vector. The second processing unit divides all the learning data by label, generates a second sentence vector including a vector for each word for the question sentence included in the learning data for each divided label, and sets the second sentence vector as a second model. The third processing unit presents a recommended answer sentence for a new question sentence and a reason for recommending the recommended answer sentence based on the first model and the second model.

[0075] This response system 1 can present recommended answer sentences and reasons for recommending the recommended answer sentences, and by understanding the reasons for the recommendation, the operator can use the information to judge the validity and accuracy of the recommended answer. Therefore, the operator can provide a more appropriate answer to the questioner based on the recommended answer sentence. As a result, this response system 1 can reduce the possibility that the operator will give an inappropriate answer when presenting a response corresponding to a question.

[0076] In addition, the response system 1 according to one embodiment of the present disclosure described above can eliminate data that the operator determines to be unnecessary, thereby reducing the possibility that the model will recommend meaningless answers without the need for re-learning.

[0077] Furthermore, with the response system 1 according to the embodiment of the present disclosure described above, even if an appropriate answer to a new question cannot be obtained with old-format data based on past data, useful recommendations can be added to the old-format data, and the new-format data can be reflected in the model. As a result, a more appropriate answer to the new question can be obtained.

[0078] A part or all of the response system 1 according to each embodiment of the present disclosure may be installed in a call center. Also, a part or all of the response system 1 according to each embodiment of the present disclosure may be introduced into a help desk operation.

[0079] In another embodiment of the present disclosure, the classification T20 may be further subdivided into classification items, and the classifier generated by the class classification model generation unit 130 may be multiple classifiers (e.g., performing two-stage classification) instead of one.

[0080] FIG. 12 is a diagram showing a minimum configuration of a processing device 500 according to an embodiment of the present disclosure. As shown in FIG. 12, the processing device 500 includes a first processing means 501, a second processing means 502, and a third processing means 503. The first processing means 501 generates a first sentence vector including a vector for a question sentence for all learning data including a question sentence, a label, and an answer sentence, and generates a first model that outputs a label corresponding to the input question sentence when the question sentence is input based on the first sentence vector. The second processing means 502 divides all the learning data by label, generates a second sentence vector including a vector for each word for the question sentence included in the learning data for each divided label, and sets the second sentence vector as a second model. The third processing means 503 generates a recommended answer sentence for a new question sentence and a recommendation reason for the recommended answer sentence based on the first model and the second model, and presents the generated recommended answer sentence and the recommendation reason. The first processing means 501 can be realized, for example, by using the functions of the preprocessing unit 110, the first feature extraction unit 120, and the class classification model generation unit 130 illustrated in Fig. 1. The second processing means 502 can be realized, for example, by using the functions of the second feature extraction unit 140 and the recommendation model generation unit 150 illustrated in Fig. 1. The third processing means 503 can be realized, for example, by using the functions of the recommendation generation unit 250 and the recommendation reason generation unit 260 illustrated in Fig. 1.

[0081] 13 is a diagram showing an example of a processing flow of the processing device 500 with a minimum configuration according to the embodiment of the present disclosure. Next, processing of the processing device 500 with a minimum configuration according to the embodiment of the present disclosure will be described with reference to FIG.

[0082] The first processing means 501 generates a first sentence vector including a vector for the question sentence for all learning data including a question sentence, a label, and an answer sentence, and generates a first model that outputs a label corresponding to the input question sentence when the question sentence is input based on the first sentence vector (step S101). The second processing means 502 divides all learning data by label, generates a second sentence vector including a vector for each word for the question sentence included in the learning data for each divided label, and sets the second sentence vector as a second model (step S102). The third processing means 503 generates a recommended answer sentence for a new question sentence and a recommendation reason for the recommended answer sentence based on the first model and the second model, and presents the generated recommended answer sentence and the recommendation reason (step S103).

[0083] The above describes the processing device 500 with a minimum configuration according to an embodiment of the present disclosure. The processing device 500 can reduce the possibility that an operator will give an inappropriate answer when presenting a response corresponding to a question.

[0084] It should be noted that the order of the processes in the embodiments of the present disclosure may be changed as long as appropriate processes are performed.

[0085] Although the embodiments of the present disclosure have been described, the above-mentioned response system 1, terminal device 10, response history DB 20, response presentation device 30, learning unit 100, recommendation unit 200, and other control devices may have a computer system inside. The above-mentioned process steps are stored in a computer-readable recording medium in the form of a program, and the above-mentioned process is performed by the computer reading and executing this program. Specific examples of computers are shown below.

[0086] FIG. 14 is a schematic block diagram showing the configuration of a computer according to at least one embodiment. As shown in FIG. 14, the computer 5 includes a CPU 6, a main memory 7, a storage 8, and an interface 9. For example, the above-mentioned response system 1, the terminal device 10, the response history DB 20, the response presentation device 30, the learning unit 100, the recommendation unit 200, and other control devices are each implemented in the computer 5. The operations of each of the above-mentioned processing units are stored in the storage 8 in the form of a program. The CPU 6 reads the program from the storage 8 and expands it in the main memory 7, and executes the above-mentioned processing according to the program. The CPU 6 also secures a storage area corresponding to each of the above-mentioned storage units in the main memory 7 according to the program.

[0087] Examples of the storage 8 include a hard disk drive (HDD), a solid state drive (SSD), a magnetic disk, a magneto-optical disk, a compact disc read only memory (CD-ROM), a digital versatile disc read only memory (DVD-ROM), and a semiconductor memory. The storage 8 may be an internal medium directly connected to the bus of the computer 5, or an external medium connected to the computer 5 via an interface 9 or a communication line. In addition, when the program is distributed to the computer 5 via a communication line, the computer 5 that receives the program may load the program into the main memory 7 and execute the above-mentioned process. In at least one embodiment, the storage 8 is a non-transitory tangible storage medium.

[0088] The program may also realize some of the functions described above. Furthermore, the program may be a file that can realize the functions described above in combination with a program already recorded in the computer system, that is, a so-called differential file (differential program).

[0089] Although some embodiments of the present disclosure have been described, these embodiments are merely examples and do not limit the scope of the disclosure. Various additions, omissions, substitutions, and modifications may be made to these embodiments without departing from the spirit of the disclosure.

[0090] Note that some or all of the above-described embodiments can be described as, but are not limited to, the following supplementary notes.

[0091] (Appendix 1) a first processing unit that generates a first sentence vector including a vector for the question sentence for all learning data including a question sentence, a label, and an answer sentence, and generates a first model that outputs a label corresponding to the input question sentence when the question sentence is input based on the first sentence vector; a second processing unit that divides all of the learning data by label, generates a second sentence vector including a vector for each word of a question sentence included in the learning data for each divided label, and sets the second sentence vector as a second model; a third processing unit that generates a recommended answer sentence and a recommendation reason for the recommended answer sentence for a new question sentence based on the first model and the second model, generates the generated recommended answer sentence and the recommendation reason, and presents the generated recommended answer sentence and the recommendation reason; A processing device comprising:

[0092] (Appendix 2) The second processing unit is Calculating a similarity between the question sentence included in the learning data for each of the divided labels and the new question sentence based on the second model; The third processing unit presents the recommended answer sentence and the recommendation reason based on the similarity. 2. The processing device of claim 1.

[0093] (Appendix 3) The second processing unit is calculating a similarity between a vector for each word in a question sentence included in the learning data for each divided label and a vector for each word in the new question sentence, using a cosine similarity or a Euclidean norm; the third processing unit presents, as the recommendation reasons, the words in descending order of their contribution to the similarity calculated by the second processing unit. 3. The processing device according to claim 1 or 2.

[0094] (Appendix 4) a fourth processing unit that deletes data related to unnecessary answer sentences and recommendation reasons from the recommended answer sentences and the recommendation reasons; 4. The processing device according to claim 1, further comprising:

[0095] (Appendix 5) a fifth processing unit that adds useful answer sentences and recommendation reasons from among the recommended answer sentences and the recommendation reasons to the first model and the second model; 5. The processing device of claim 1, further comprising:

[0096] (Appendix 6) generating a first sentence vector including a vector for the question sentence for all learning data including a question sentence, a label, and an answer sentence, and generating a first model that outputs a label corresponding to the input question sentence when the question sentence is input based on the first sentence vector; Dividing all of the learning data by label, generating a second sentence vector including a vector for each word for a question sentence included in the learning data for each divided label, and setting the second sentence vector as a second model; generating a recommended answer sentence and a recommendation reason for the recommended answer sentence for a new question sentence based on the first model and the second model, and presenting the generated recommended answer sentence and the recommendation reason; A processing method comprising:

[0097] (Appendix 7) On the computer, generating a first sentence vector including a vector for the question sentence for all learning data including a question sentence, a label, and an answer sentence, and generating a first model that outputs a label corresponding to the input question sentence when the question sentence is input based on the first sentence vector; Dividing all of the learning data by label, generating a second sentence vector including a vector for each word for a question sentence included in the learning data for each divided label, and setting the second sentence vector as a second model; generating a recommended answer sentence and a recommendation reason for the recommended answer sentence for a new question sentence based on the first model and the second model, and presenting the generated recommended answer sentence and the recommendation reason; A program that executes the following. [Explanation of symbols]

[0098] 1. Response system 5. Computers 6. CPU 7. Main memory 8. Storage 9. Interface 10. Terminal device 20. Response history database 30. Response presentation device 100. Learning Department 110...Pretreatment section 120 First feature extraction unit 130 Classification model generation unit 140 Second feature extraction unit 150 Recommendation model generation part 200···Recommendation Section 210...Pretreatment section 220 First feature extraction unit 230 Classification execution unit 240 Second feature extraction unit 250 Recommendation generation unit 260... Recommendation reason generation unit 270 Recommendation output section 280···Model Update Section 300...Model storage section 310...Classification Model 400: Unnecessary recommendation deletion reception section 410: Unnecessary recommendation deletion reflection section 420...Model Format Update Reception Department 430...Model format update reflection part

Claims

1. a first processing unit that generates a first sentence vector including a vector for the question sentence for all learning data including a question sentence, a label, and an answer sentence, and generates a first model that outputs a label corresponding to the input question sentence when the question sentence is input based on the first sentence vector; a second processing unit that divides all of the learning data by label, generates a second sentence vector including a vector for each word for a question sentence included in the learning data for each divided label, and sets the second sentence vector as a second model; a third processing unit that generates a recommended answer sentence and a recommendation reason for the recommended answer sentence for a new question sentence based on the first model and the second model, and presents the generated recommended answer sentence and the recommendation reason; A processing device comprising:

2. The second processing unit is Calculating a similarity between a question sentence included in the learning data for each of the divided labels and the new question sentence based on the second model; The third processing unit presents the recommended answer sentence and the recommendation reason based on the similarity. The processing device of claim 1 .

3. The second processing unit is calculating a similarity between a vector for each word in a question sentence included in the learning data for each divided label and a vector for each word in the new question sentence, using a cosine similarity or a Euclidean norm; the third processing unit presents, as the recommendation reasons, the words in descending order of contribution to the similarity calculated by the second processing unit. The processing device of claim 1 .

4. a fourth processing unit that deletes data related to unnecessary answer sentences and recommendation reasons from the learning data, among the recommended answer sentences and the recommendation reasons; The processing device of claim 1 .

5. a fifth processing unit that adds useful answer sentences and recommendation reasons from among the recommended answer sentences and the recommendation reasons to the first model and the second model; The processing apparatus according to claim 1 , further comprising:

6. A processing method executed by a processing device, comprising: generating a first sentence vector including a vector for the question sentence for all learning data including a question sentence, a label, and an answer sentence, and generating a first model that outputs a label corresponding to the input question sentence when the question sentence is input based on the first sentence vector; Dividing all of the learning data by label, generating a second sentence vector including a vector for each word for a question sentence included in the learning data for each divided label, and setting the second sentence vector as a second model; generating a recommended answer sentence and a recommendation reason for the recommended answer sentence for a new question sentence based on the first model and the second model, and presenting the generated recommended answer sentence and the recommendation reason; A processing method comprising:

7. On the computer, generating a first sentence vector including a vector for the question sentence for all learning data including a question sentence, a label, and an answer sentence, and generating a first model that outputs a label corresponding to the input question sentence when the question sentence is input based on the first sentence vector; Dividing all of the learning data by label, generating a second sentence vector including a vector for each word for a question sentence included in the learning data for each divided label, and setting the second sentence vector as a second model; generating a recommended answer sentence and a recommendation reason for the recommended answer sentence for a new question sentence based on the first model and the second model, and presenting the generated recommended answer sentence and the recommendation reason; A program that executes the following.

Citation Information

Patent Citations

  • Legal question and answer method based on weak supervised learning and joint learning mechanism, and equipment

    CN113297360A

  • Question and answer program, server and method which use large amount of comment texts

    JP2013143066A

  • Processor

    JP2018185690A

  • Information processing device, information processing method, and program

    JP2018206307A

  • Deburring device

    JP2021010966A