System, method, and program for answering questions, and recording medium having the program recorded thereon

The system addresses the challenge of controlling reflection topics and responding to free-form questions by using filtering tags and feedback messages to guide users to desired answers, enhancing the responsiveness of question-and-answer systems.

JP7556716B2Active Publication Date: 2024-09-26ENOKI CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2020127394
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-07-28
Publication Date
2024-09-26
Estimated Expiration
2040-07-28

AI Technical Summary

Technical Problem

Existing question-and-answer systems struggle to control the topic of reflection and respond effectively to user inputs that do not follow a predetermined flow, particularly when faced with free-form questions.

Method used

Implement a system that uses filtering tags, including hypothetical question sentences, answer sentences, and narrowing-down tags with specified listening orders, to select and output answer candidates based on similarity and priority, and provide feedback messages to guide users to the desired answers.

Benefits of technology

Enables effective control over the topic of reflection and allows the system to respond to user inputs, even when questions deviate from the expected flow, by narrowing down answer candidates and providing guided feedback.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007556716000007
    Figure 0007556716000007
  • Figure 0007556716000013
    Figure 0007556716000013
  • Figure 0007556716000011
    Figure 0007556716000011
Patent Text Reader

Abstract

To provide a question-and-answer system, a method, and a program, which enable a provider of a question-and-answer service to control the topic of ask-back for narrowing down answer candidates, and a recording medium on which the program is recorded.SOLUTION: A question-and-answer system 1 includes: an answer candidate question sentence data selection unit 107 configured to select answer candidate question sentence data from multiple question sentence data based on the multiple question sentence data including a hypothetical question sentence, an answer sentence to the hypothetical question sentence, and a narrowing-down tag of at least one category and also based on the similarity of an input question sentence; an answer sentence output unit 111 configured to output the answer sentence when there is only one selected answer candidate question sentence data; and an ask-back message output unit 115 configured to output an ask-back message in which the values of multiple narrowing-down tags for the same category with the earliest ask-back order are selectable, when there are multiple selected answer candidate question sentence data and there are multiple narrowing-down tag values for the same category.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a system, method, program, and recording medium for recording a program for answering a question. [Background technology]

[0002] A question-answering system has been proposed that presents an appropriate answer to a user's input question text, and when a unique answer to a question cannot be determined, the system presents candidates and guides the user to the answer through a subsequent dialogue. For example, the question-answering system of the following Patent Document 1 interprets the intention of a customer's inquiry while guiding the user through a dialogue based on asking back, complements the content, and presents an answer. Syntax and semantic analysis is performed on the text of the inquiry, and the content of the back-questioning to identify answer candidates is set, and a dialogue text to be presented to the user is generated. The back-questioning is calculated and presented using the relevance of the attributes assigned to the answer candidates. [Prior art documents] [Patent documents]

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

[0004] However, in the question and answering system of the above-mentioned Cited Document 1, the topic of retrieval to narrow down the answer candidates is determined based on the relevance of the attributes assigned to the answer candidates, making it difficult for the provider of the question and answering service to control the topic of retrieval.

[0005] Furthermore, the question and answering system of the above cited document 1 has difficulty in dealing with a case in which a user inputs a question that does not follow the flow of narrowing down the search results, and has difficulty in dealing with a user's free input of a question.

[0006] Therefore, one of the objects of the present invention is to provide a system, method, program, and recording medium for question answering that allows a provider of a question answering service to control the topics of reflective asking to narrow down answer candidates.

[0007] Another object of the present invention is to provide a system, method, program, and recording medium having the program recorded thereon for question answering that enables narrowing down of answer candidates in response to a user's freely input question. [Means for solving the problem]

[0008] According to one aspect of the present invention, there is provided a method for outputting a response message from a plurality of question sentence data including an expected question sentence, an answer sentence to the expected question sentence, and a refinement tag of at least one category, the refinement tag being specified for the category in a request for a response order; an answer candidate question sentence data selection unit that selects answer candidate question sentence data from the plurality of question sentence data based on a similarity of an input question sentence; an answer sentence output unit that outputs an answer sentence of the selected answer candidate question sentence data when only one answer candidate question sentence data is selected; and a reflection message output unit that outputs a reflection message having options of the values ​​of the refinement tags of the plurality of selected answer candidate question sentence data for the same category that are the earliest in the response order, when a plurality of selected answer candidate question sentence data exists and a plurality of values ​​of the refinement tags of the plurality of selected answer candidate question sentence data exists for the same category, the reflection message output unit being configured to select an answer candidate question sentence data selected at the time of outputting the reflection message, the question sentence input for the reflection message being specified for the plurality of answer candidate question sentence data selected at the time of outputting the reflection message, a first order of categories corresponding to the narrowing tag of the answer candidate question sentence data is selected when there is answer candidate question sentence data that satisfies a first matching condition for the narrowing tag of the answer candidate question sentence data, where the first order of categories is determined by the category of the narrowing tag set as an option in the reflection message, and thereafter by the reflection order; when there is only one answer candidate question sentence data selected, the answer sentence output unit outputs an answer sentence of the selected answer candidate question sentence data; and when there is a plurality of selected answer candidate question sentence data and there are a plurality of values ​​of the narrowing tags of the selected answer candidate question sentence data for the same category, the reflection message output unit outputs a reflection message having options for the values ​​of the narrowing tags for the category that is set earliest in the reflection order, when a reflection message is output.

[0009] In the narrowing down process, when there is no answer candidate question sentence data among the answer candidate question sentence data selected at the time of outputting the kth reflection message, which is the current reflection message, in which the question sentence input for the kth reflection message satisfies the first matching condition with respect to the narrowing down tag of the answer candidate question sentence data, the system can output one answer sentence from the answer candidate question sentence data when there is answer candidate question sentence data selected at the time of outputting the reflection message, in which the question sentence input for the kth reflection message satisfies a second matching condition with respect to the narrowing down tag of the answer candidate question sentence data, and in which the second order of the reflection message when the answer candidate question sentence data was selected is the first, and here the second order is specified in reverse of the output order from the k-2th reflection message, which is the reflection message output two messages before the kth reflection message.

[0010] The output of the answer sentence includes, when there is answer candidate question sentence data selected by the answer candidate question sentence data selection unit when the answer candidate question sentence data selection unit outputs a reflection message, the question sentence input in response to the kth reflection message satisfies a second matching condition for a narrowing tag of the answer candidate question sentence data, and the second order of the reflection message when the answer candidate question sentence data was selected is the first, and here, the second order is specified in a reverse order of output from the k-2th reflection message, which is the reflection message output two messages before the kth reflection message, and when only one answer candidate question sentence data is selected, the answer sentence output unit outputs the answer sentence of the selected answer candidate question sentence data. When a plurality of answer candidate question sentence data are selected and a plurality of values ​​of narrowing tags of the plurality of selected answer candidate question sentence data exist for the same category, the reflection message output unit outputs a reflection message with options for the values ​​of the narrowing tags for the category that comes first in the reflection order. And the narrowing process can be repeated when the reflection message is output.

[0011] The question sentence data may further include a priority, and the answer candidate question sentence data selection unit may select the answer candidate question sentence data based on the similarity between the input question sentence and the multiple question sentence data and / or the priority.

[0012] The question sentence data may further include keywords related to the anticipated question sentence.

[0013] In the narrowing-down process, the question inputted in response to the reflection message includes a question in which at least one of the words constituting the question inputted in response to the reflection message is replaced with a transliteration of the word, and the transliteration of the word is set for each category of the narrowing-down tag, and the transliteration is obtained by using a dictionary including the words constituting the narrowing-down tag of the category.

[0014] One aspect of the present invention is a question answering method executed by a computer, comprising the steps of: selecting answer candidate question sentence data from among a plurality of question sentence data, the plurality of question sentence data including an expected question sentence, an answer sentence to the expected question sentence, and a refinement tag for at least one category, the refinement tag for the category being specified as a request for asking again, based on a similarity of an input question sentence; and, if only one answer candidate question sentence data is selected, outputting the answer sentence of the selected answer candidate question sentence data. a step of outputting a reflection message having as options the values ​​of the refinement tags for the same category that are first in the reflection order, when there are a plurality of selected answer candidate question sentence data and a plurality of values ​​of the refinement tags for the same category that are first in the reflection order, and a step of: when there is answer candidate question sentence data selected when the reflection message is output, in which a question input for the reflection message satisfies a first matching condition for the refinement tags of the answer candidate question sentence data, selecting the answer candidate question sentence data that is first in the first order of the category corresponding to the refinement tag of the answer candidate question sentence data, and wherein the first in the first order of the category is selected, the order of 1 is determined by the categories of the filtering tags set as options in the reflection message, followed by the order of the reflection; if only one of the answer candidate question sentence data is selected, outputting an answer sentence of the selected answer candidate question sentence data; and if a plurality of the selected answer candidate question sentence data are selected and there are a plurality of values ​​of the filtering tags of the selected answer candidate question sentence data for the same category, outputting a reflection message with the values ​​of the filtering tags for the category that is first in the reflection order as options, when the reflection message is output.

[0015] The method may further include a step of: in the narrowing down process, when there is no answer candidate question sentence data among the answer candidate question sentence data selected at the time of outputting the kth reflection message, which is the current reflection message, in which the question sentence input for the kth reflection message satisfies the first matching condition with respect to the narrowing down tag of the answer candidate question sentence data, outputting one answer sentence from the answer candidate question sentence data when there is answer candidate question sentence data selected at the time of outputting the reflection message, in which the question sentence input for the kth reflection message satisfies a second matching condition with respect to the narrowing down tag of the answer candidate question sentence data, and in which the second order of the reflection message when the answer candidate question sentence data was selected is the first, and here the second order is specified in reverse order of output from the k-2th reflection message, which is the reflection message output two messages before the kth reflection message.

[0016] The step of outputting the answer sentence may include a step of selecting answer candidate question sentence data when there is answer candidate question sentence data selected at the time of output of a reflection message, where the question sentence input in response to the kth reflection message satisfies a second matching condition for the narrowing tag of the answer candidate question sentence data, and the second order of the reflection message when the answer candidate question sentence data was selected is the first, and the second order is specified in reverse of the output order from the k-2th reflection message, which is the reflection message output two messages before the kth reflection message, and outputting the answer sentence of the selected answer candidate question sentence data when there is only one selected answer candidate question sentence data; when there is a plurality of selected answer candidate question sentence data and there are a plurality of values ​​of the narrowing tags of the plurality of selected answer candidate question sentence data for the same category, outputting a reflection message having as options the values ​​of the narrowing tags for the category that is first in the reflection order; and a step of repeating the narrowing process when a reflection message is output.

[0017] The question sentence data may further include a priority, and the step of selecting the answer candidate question sentence data based on the similarity between the plurality of question sentence data and the input question sentence may be a step of selecting the answer candidate question sentence data based on the similarity between the input question sentence and the plurality of question sentence data and / or the priority.

[0018] The question sentence data may further include keywords related to the anticipated question sentence.

[0019] In the narrowing-down process, the question inputted in response to the reflection message includes a question in which at least one of the words constituting the question inputted in response to the reflection message is replaced with a transliteration of the word, and the transliteration of the word is set for each category of the narrowing-down tag, and the transliteration is obtained by using a dictionary including the words constituting the narrowing-down tag of the category.

[0020] One aspect of the present invention provides a program for causing a computer to execute the above method.

[0021] One aspect of the present invention provides a computer-readable recording medium having the above-mentioned program recorded thereon.

[0022] One aspect of the present invention provides a method for generating a question and answering system by installing the program on the computer.

[0023] In this specification and claims, the "matching condition" may be a perfect match or a partial match, or may be a condition that can be evaluated as a match depending on the degree of match or concept required. For example, the "matching condition" may be a matching condition that does not take into account the variation in expression, or may be a matching condition that takes into account the variation in expression and similar expressions. For example, in the case where "a question sentence inputted in response to a reflective message satisfies a first matching condition with respect to the narrowing tag of the answer candidate question sentence data", the first matching condition may not take into account the variation in expression of the question sentence and the narrowing tag, or may take into account the variation in expression and similar expressions. Effect of the Invention

[0024] According to the present invention having the above configuration, it is possible to provide a system, a method, a program, and a recording medium having the program recorded thereon, which enable a provider of a question and answer service to control the topics of reflective asking for narrowing down answer candidates.

[0025] Furthermore, according to the present invention having the above-mentioned configuration, it is possible to provide a system, method, program, and recording medium having a program recorded thereon for question answering that enables narrowing down of answer candidates in response to a user's freely input question. [Brief description of the drawings]

[0026] [Figure 1] 1 is a diagram showing an overall configuration of a question and answering system according to a first embodiment of the present invention. [Diagram 2] FIG. 2 is a diagram showing an example of a question data table according to the first embodiment of the present invention. [Diagram 3] FIG. 4 is a diagram showing an example of a review message table according to the first embodiment of the present invention. [Figure 4] 1 is a diagram showing a hardware configuration of a question and answering system according to a first embodiment of the present invention. [Diagram 5] FIG. 1 is a diagram showing an overview of an example of a question and answering process in the question and answering system according to the first embodiment of the present invention. [Figure 6] 4 is a schematic flowchart of an example of a question and answer process according to the first embodiment of the present invention. [Figure 7A] 11 is a flowchart of an example of a narrowing-down preparation process according to the first embodiment of the present invention. [Figure 7B] 11 is a flowchart of an example of a narrowing-down preparation process according to the first embodiment of the present invention. [Figure 8A] 11 is a flowchart of an example of a narrowing-down process according to the first embodiment of the present invention. [Figure 8B] 11 is a flowchart of an example of a narrowing-down process according to the first embodiment of the present invention. [Figure 9] FIG. 1 is a diagram showing an overall configuration of a question and answering system according to a second embodiment of the present invention. [Figure 10] FIG. 11 is a diagram showing an example of a question data table according to the second embodiment of the present invention. [Figure 11] FIG. 11 is a diagram showing an overview of an example of a question and answering process in the question and answering system according to the second embodiment of the present invention. [Figure 12A] 13 is a flowchart of an example of a narrowing-down process according to the second embodiment of the present invention. [Figure 12B] 13 is a flowchart of an example of a narrowing-down process according to the second embodiment of the present invention. [Figure 12C] 13 is a flowchart of an example of a narrowing-down process according to the second embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0027] Hereinafter, an embodiment of the present invention will be described with reference to the drawings.

[0028] (First embodiment) 1 is a diagram showing the overall configuration of a question and answering system according to a first embodiment of the present invention. The question and answering system 1 includes a server 10 and a terminal 30, which are connected to each other via a network 20. Each of the server 10 and the terminal 30 does not have to be configured as a single physical device, and may be configured as a plurality of physical devices.

[0029] As the terminal 30, any appropriate terminal such as a PC, a smartphone, a tablet terminal, or a mobile phone can be used.

[0030] The server 10 includes a question sentence receiving unit 101, an analysis unit 103, a narrowing-down preparation search unit 105, an answer candidate question sentence data selection unit 107, a re-question request message output unit 109, an answer sentence output unit 1111, a narrowing-down tag determination unit 113 for asking back, a message output unit 115, a narrowing-down processing flag determination unit 117, a narrowing-down search unit 119, and a memory unit 123.

[0031] The question receiving unit 101 receives a question input from a user.

[0032] The analysis unit 103 extracts words from the question received by the question receiving unit 101 .

[0033] The narrowing-down preparation search unit 105 searches for the words extracted by the analysis unit 103 in at least a part of each of a plurality of question sentence data stored in a question sentence data table 501 described later. The search for the words extracted by the analysis unit 103 may be performed taking into consideration synonyms, similar words, spelling variations, etc. For example, in addition to or instead of the words extracted from the question sentences, synonyms, similar words, and different spellings of the words extracted from the question sentences may be searched for.

[0034] The answer candidate question sentence data selection unit 107 selects answer candidate question sentence data from among the multiple question sentence data based on the similarity between the multiple question sentence data stored in the question sentence data table 501 and the input question sentence.

[0035] As an example, when at least one question sentence data containing a hit word is found as a result of the search by the narrowing-down preparation search unit 105, the answer candidate question sentence data selection unit 107 selects answer candidate question sentence data from the question sentence data containing the hit word based on the similarity between the input question sentence and the question sentence data containing the hit word.

[0036] Furthermore, when there exists answer candidate question sentence data that is selected when the reflection message output unit 115 described below outputs a reflection message, and the question input for the reflection message satisfies a first matching condition for the narrowing tag of the answer candidate question sentence data, the answer candidate question sentence data selection unit 107 selects the answer candidate question sentence data that is first in the first order of the category corresponding to the narrowing tag of the answer candidate question sentence data (the category of the narrowing tag that is set as an option in the reflection message, and thereafter in the order specified by the reflection order described below).

[0037] As an example, when, as a result of a search by the narrowing search unit 119 described below, at least one answer candidate question sentence data is found among the answer candidate question sentence data selected at the time of outputting the reflection message, in which the question input in response to the reflection message contains the entire value (character string) of the narrowing tag, the answer candidate question sentence data selection unit 107 selects the answer candidate question sentence data.

[0038] The re-ask request message output unit 109 outputs a message requesting the user to ask the question again when there is no question sentence data containing the word hit as a result of the search by the narrowing preparation search unit 105, or when there is no answer candidate question sentence data containing the entire value of the narrowing tag in the question entered for the ask-back message among the answer candidate question sentence data selected at the time of outputting the ask-back message as a result of the search by the narrowing search unit 119.

[0039] When only one answer candidate question sentence data is selected by the answer candidate question sentence data selection unit 107, the answer sentence output unit 111 outputs the answer sentence of the selected answer candidate question sentence data.

[0040] When there are multiple answer candidate question sentence data selected by the answer candidate question sentence data selection unit 107, the narrowing tag determination unit 113 determines, in the order of asking back, whether there are multiple values ​​of the narrowing tags of the multiple selected answer candidate question sentence data.

[0041] When there are a plurality of answer candidate question sentence data selected by the answer candidate question sentence data selection unit 107 and a plurality of values ​​of the narrowing tags of the plurality of selected answer candidate question sentence data for the same category exist, the reflection message output unit 115 outputs a reflection message with options being the values ​​of the narrowing tags for the same category that come first in the reflection order.

[0042] As an example, when the narrowing tag determination unit for asking back 113 determines that there are multiple values ​​of the narrowing tag, the reply message output unit 115 outputs a reply message with the multiple values ​​of the narrowing tag as options.

[0043] The narrowing down process flag determination unit 117 determines whether the narrowing down process flag is ON or OFF.

[0044] A narrowing search unit 119 searches for answer candidate question sentence data in which the question inputted for the reflect message includes the entire value of the narrowing tag among the answer candidate question sentence data selected when the reflect message is outputted, in the categories of the narrowing tags selected as options in the reflect message, and thereafter in the order of reflecting.

[0045] The storage unit 123 stores various types of information. The storage unit 123 includes a question data table 501 and a reflection message table 503. The storage unit 123 may be configured as one physical device, or may be distributed and arranged in multiple physical devices.

[0046] FIG. 2 is a diagram showing an example of a question sentence data table according to the first embodiment of the present invention. The question sentence data table 501 stores question sentence data. Each question sentence data is composed of an ID number, which is identification information of the question sentence data, an expected question sentence, an answer sentence to the expected question sentence, a keyword related to the expected question sentence, a priority when selecting question sentence data of an answer candidate, and one or more category narrowing tags. The narrowing tag is composed of a character string. The order of repetition is specified for the category of the narrowing tag, and in this embodiment, the narrowing tags of the categories are arranged in the order of repetition. That is, the narrowing tags of each category, namely, the device tag, the symptom tag, the situation tag, and the target tag, are arranged from the left in the order of repetition. The elements constituting the question sentence data are not limited to these, and may not include keywords and priorities, and may include any other appropriate elements.

[0047] 3 is a diagram showing an example of a reflective message table according to the first embodiment of the present invention. In the reflective message table 503, a template of a reflective message is stored in association with a category of each narrowing tag. The template of the reflective message is configured to have options embedded therein. That is, when there are a plurality of answer candidate question sentence data selected by the answer candidate question sentence data selection unit 107, and there are a plurality of values ​​of the narrowing tags of the plurality of selected answer candidate question sentence data for the same category, the template of the reflective message corresponding to the same category that comes first in the reflective message order is acquired from the reflective message table 503, and the values ​​of the plurality of narrowing tags are embedded as options in the template of the reflective message to output the reflective message.

[0048] 4 is a diagram showing a hardware configuration of a server 10 according to a first embodiment of the present invention. The server 10 includes a CPU 10a, a RAM 10b, a ROM 10c, an external memory 10d, an input unit 10e, an output unit 10f, and a communication unit 10g. The RAM 10b, the ROM 10c, the external memory 10d, the input unit 10e, the output unit 10f, and the communication unit 10g are connected to the CPU 10a via a system bus 10h.

[0049] The CPU 10a comprehensively controls each device connected to the system bus 10h.

[0050] The ROM 10c and the external memory 10d store the BIOS and OS, which are control programs for the CPU 10a, as well as various programs and data required to realize the functions executed by the computer.

[0051] The RAM 10b functions as the CPU's main memory, work area, etc. The CPU 10a loads programs and the like required for executing processes from the ROM 10c or the external memory 10d to the RAM 10b, and executes the loaded programs to realize various operations.

[0052] The external memory 10d is composed of, for example, a flash memory, a hard disk, a DVD-RAM, a USB memory, or the like.

[0053] The input unit 10e receives operation instructions and the like from a user, etc. The input unit 10e is composed of input devices such as, for example, an input button, a keyboard, a pointing device, a wireless remote control, a microphone, and a camera.

[0054] The output unit 10f outputs data processed by the CPU 10a and data stored in the RAM 10b, the ROM 10c, and the external memory 10d. The output unit 10f is composed of output devices such as a CRT display, an LCD, an organic EL panel, a printer, and a speaker.

[0055] The communication unit 10g is an interface for connecting and communicating with an external device directly or via a network, and is configured with an interface such as a serial interface or a LAN interface.

[0056] The hardware configuration of the terminal 30 is also similar.

[0057] Each unit of the server 10 shown in FIG. 1 is realized by various programs stored in the ROM or external memory using the CPU, RAM, ROM, external memory, input unit, output unit, communication unit, etc. as resources.

[0058] On the premise of the above system configuration, an example of question and answering processing of the question and answering system according to the first embodiment of the present invention will be described below with reference to Figs. 1 to 8B etc.

[0059] <Summary> FIG. 5 is a diagram showing an overview of an example of a question and answering process of the question and answering system according to the first embodiment of the present invention.

[0060] When the user inputs an initial question such as "The power won't turn on," the analysis unit 103 performs morphological analysis on the initial question, removes particles, and extracts the words "power," "not on," and "not." The refinement preparation search unit 105 searches for the extracted words "power," "not on," and "not" in the keywords and refinement tags for each of the question sentence data stored in the question sentence data list 501, and selects the question sentence data with ID numbers ID3, ID4, and ID6 that have the largest number of hit words as answer candidate question sentence data. The re-asking filtering tag determination unit 113 determines whether there are multiple values ​​for the filtering tags of the selected answer candidate question sentence data of ID3, ID4, and ID6, based on the re-asking order of the filtering tag category. However, since there are multiple values, "printer" and "WiFi router", for the device tag that is first in the re-asking order, the re-asking message output unit 115 embeds these values ​​in the response wording of the device tag stored in the re-asking message table 503, and outputs the initial re-asking message, "Which device is it? [Printer] [WiFi router]".

[0061] When the user inputs a second question, "It's a printer," in response to this first return message, the narrowing search unit 119 searches for answer candidate question sentence data whose second question contains the entire value of the narrowing tag from among the selected answer candidate question sentence data of ID3, ID4, and ID6, and the answer candidate question sentence data selection unit 107 selects the question sentence data of ID3 and ID4 whose second question contains the entire value of the narrowing tag as answer candidate question sentence data. The re-asking narrowing tag determination unit 113 determines whether there are multiple values ​​for the narrowing tags of the selected answer candidate question sentence data of ID3 and ID4, based on the re-asking order of the narrowing tag categories. The first device tag and the second symptom tag in the re-asking order have the same value, and the third situation tag in the re-asking order has multiple values, such as "not connected to a PC" and "connected to a PC." Therefore, the re-asking message output unit 115 embeds these values ​​in the response text of the situation tag stored in the re-asking message table 503, and outputs a second re-asking message saying "Please tell us your usage status [connected to a PC] [not connected to a PC]."

[0062] When the user inputs a third question sentence "It is not connected to a PC" in response to the second return message, the narrowing search unit 119 searches for answer candidate question sentence data in which the entire value of the narrowing tag is included in the third question sentence among the selected answer candidate question sentence data of ID3 and ID4, and the answer candidate question sentence data selection unit 107 selects the question sentence data of ID3 in which the entire value of the narrowing tag is included in the third question sentence as the answer candidate question sentence data. Since the selected answer candidate question sentence data has been narrowed down to one and the answer sentence to be output has been determined, the answer sentence output unit 111 outputs the answer sentence "It is designed not to turn on unless a PC is connected" of the selected answer candidate question sentence data of ID3, and the question answering process ends.

[0063] Next, a specific question and answer process for the above example will be described.

[0064] 6 is a schematic flowchart of an example of a question answering process according to the first embodiment of the present invention. The question answering process of the question answering system according to the first embodiment of the present invention consists of a narrowing down preparation process (S1), a narrowing down process flag determination process (S2), and a narrowing down process (S3). If it is determined in the narrowing down process flag determination process that the narrowing down process flag is not ON, the narrowing down process (S3) is not performed and the question answering process ends. Each process will be described in detail below.

[0065] <Preparation for filtering> 7A and 7B are flowcharts illustrating an example of a narrowing-down preparation process according to the first embodiment of the present invention.

[0066] The question receiving unit 101 of the server 10 receives a question ("The power won't turn on.") from the user input via the terminal 30 (S101). Then, the analysis unit 103 of the server 10 extracts words based on a morphological analysis of the received question (S103). Specifically, the question receiving unit 101 of the server 10 receives an initial question input from the user via the terminal 30. Then, the analysis unit 103 of the server 10 performs a morphological analysis of the received initial question, "The power won't turn on," removes particles, and extracts the words "power," "on," and "not." The method of extracting words from a question is not limited to this, and extraction can be performed by any other appropriate method.

[0067] The narrowing preparation search unit 105 of the server 10 searches for words extracted based on the morphological analysis of step S103 in at least a part of each of the question sentence data stored in the question sentence data list 501 (S105). Specifically, in this embodiment, among the elements constituting the question sentence data, the words "power", "not on", and "not" are searched for, which are extracted based on the morphological analysis of step S103, in the keywords and narrowing tags. This makes it possible to perform a search that absorbs the fluctuation in expression due to the difference in particles. The search target is not limited to this, and may be, for example, instead of or in addition to this, any other appropriate element constituting question sentence data such as a hypothetical question sentence. In addition, the search for the extracted words in S105 may be performed taking into consideration synonyms, similar words, spelling variations, etc. For example, in addition to or instead of the words extracted from the question sentence, synonyms, similar words, and different spellings of the words extracted from the question sentence may be searched for.

[0068] When at least one question sentence data including the hit word is found as a result of the search (S107-Yes), the answer candidate question sentence data selection unit 107 of the server 10 selects answer candidate question sentence data from among the question sentence data including the hit word, based on the similarity between the input question sentence and the question sentence data including the hit word and the priority (S109). In this embodiment, the similarity is the number of hit words. Since the keyword "not connected" and the symptom tag "not recognized" of the question sentence data of ID1, ID2, and ID5 are hit against the word "not", the number of hit words for the question sentence data of ID1, ID2, and ID5 is 1. On the other hand, the keyword "power lamp" and the symptom tag "power not turned on" of the question sentence data of ID3, ID4, and ID6 are hit against the words "power", "on", and "not", so the number of hit words for the question sentence data of ID3, ID4, and ID6 is 3. Therefore, in this embodiment, the question sentence data of ID3, ID4, and ID6 have the same priority of 1, so the question sentence data of ID3, ID4, and ID6 with the largest number of hit words are selected as the answer candidate question sentence data. The method of selecting the answer candidate question sentence data is not limited to this, and any other appropriate method can be used. The similarity can be any other appropriate index such as TF / IDF. Also, for example, the proximity of the positions of the hit words in the question sentence can be taken into consideration. Also, for example, the selection may be made with emphasis on the similarity rather than the priority, or the selection may be made with consideration of only the priority or only the similarity.

[0069] If the search results in no question sentence data containing the word that was hit (S107-No), the re-question message output unit 109 of the server 10 outputs a message requesting the user to ask the question again, such as "I don't understand, please enter it again" (S111).

[0070] In the above embodiment, the answer candidate question sentence data selection unit searches for the word extracted from the input question sentence in at least a part of each of the multiple question sentence data, and when there is at least one question sentence data in which the hit word exists as a result of the search, it selects answer candidate question sentence data from the question sentence data in which the hit word exists based on the similarity between the input question sentence and the question sentence data in which the hit word exists. However, the selection of answer candidate question sentence data by the answer candidate question sentence data selection unit is not limited to this method, and answer candidate question sentence data can be selected based on any other appropriate similarity between the multiple question sentence data and the input question sentence.

[0071] If only one answer candidate question sentence data is selected (S113-Yes), the answer sentence output unit 111 of the server 10 outputs the answer sentence of the selected answer candidate question sentence data and turns off the narrowing process flag, and the terminal 30 displays the output answer sentence (S115). If multiple answer candidate question sentence data are selected (S113-No), the review narrowing tag determination unit 113 of the server 10 determines whether multiple values ​​of the narrowing tags of the multiple selected answer candidate question sentence data are present in the order of the review (S117). If it is determined that multiple values ​​of the narrowing tag are present (S119-Yes), the review message output unit 115 of the server 10 generates and outputs a review message with the multiple narrowing tag values ​​as options, turns on the narrowing process flag, and the terminal 30 displays the output review message (S121).

[0072] Specifically, in this embodiment, the selected answer candidate question sentence data includes three question sentence data of ID3, ID4, and ID6, so the narrowing tag determination unit 113 for the server 10 determines whether or not there are multiple values ​​of the narrowing tag of the selected question sentence data of ID3, ID4, and ID6 for each narrowing tag category in the order of the response, that is, in the order of device tag, symptom tag, situation tag, and target tag. In this embodiment, since there are multiple values, "printer" and "WiFi router", for the device tag that is the first in the response order, the response message output unit 115 of the server 10 embeds these values ​​in the response message template of the device tag stored in the response message table 503, generates and outputs the initial response message of "Which device is it? [Printer] [WiFi router]", turns on the narrowing process flag, and the terminal 30 displays the outputted response message.

[0073] The narrowing down process flag determination unit 117 of the server 10 determines whether the narrowing down process flag is ON or OFF (S2), and if the narrowing down process flag is ON (S2-Yes), the process proceeds to the narrowing down process S3, and if the narrowing down process flag is OFF (S2-No), the question and answer process ends. In this embodiment, since the flag is ON in step S121, the process proceeds to the narrowing down process S3.

[0074] In the above embodiment, when there are a plurality of selected answer candidate question sentence data and there are a plurality of values ​​of the narrowing tag of the plurality of selected answer candidate question sentence data for the same category, a method of outputting a reflection message having the values ​​of the narrowing tag for the same category that is the first in the reflection order as an option is used, in which, when there are a plurality of selected answer candidate question sentence data, it is determined whether there are a plurality of values ​​of the narrowing tag of the plurality of selected answer candidate question sentence data in the reflection order, and when it is determined that there are a plurality of values ​​of the narrowing tag, a reflection message having the values ​​of the plurality of narrowing tags as an option is output. However, when there are a plurality of selected answer candidate question sentence data and there are a plurality of values ​​of the narrowing tag of the plurality of selected answer candidate question sentence data for the same category, the method of outputting a reflection message having the values ​​of the plurality of narrowing tags for the same category that is the first in the reflection order as an option is not limited to this, and any other appropriate method can be used. For example, a method of extracting all categories that have a plurality of values ​​of the narrowing tag of the plurality of selected answer candidate question sentence data, and outputting a reflection message having the values ​​of the narrowing tags for the category that is the first in the reflection order among the extracted categories as an option may be used.

[0075] <Refinement process> 8A and 8B are a flowchart of an example of the narrowing-down process according to the first embodiment of the present invention.

[0076] The question receiving unit 101 of the server 10 receives the question input in response to the reflection message (S301). Then, the analysis unit 103 of the server 10 performs morphological analysis of the received question (S303). Specifically, when the user inputs a second question, "It's a printer," in response to the reflection message output in step S119, to the terminal 30, the second question is sent to the server 10, and the question receiving unit 101 of the server 10 receives the second question. Then, the analysis unit 103 of the server 10 performs morphological analysis of the received second question, "It's a printer."

[0077] The narrowing search unit 119 of the server 10 searches for answer candidate question sentence data in which the question sentence input to the reply message satisfies the first matching condition for the narrowing tag of the answer candidate question sentence data, i.e., the question sentence data in which the question sentence input to the reply message satisfies the condition that the question sentence input to the reply message includes the entire value (character string) of the narrowing tag of the answer candidate question sentence data, in other words, the answer candidate question sentence data in which the question sentence input to the reply message includes the entire value (character string) of the narrowing tag, in the narrowing tag selected in the reply message, and thereafter in the order of the reply (S305). Specifically, the narrowing search unit 119 of the server 10 searches for answer candidate question sentence data in which the question sentence input to the reply message includes the entire value (character string) of the narrowing tag, in the answer candidate question sentence data of ID3, ID4, and ID6 selected in the output of the first reply message in step S119. At this time, the search order is the device tag, which is a filtering tag of the filtering tag category selected in the initial reflection message, and then the symptom tag, situation tag, and target tag in the order of the reflection. Note that if the filtering tag of the filtering tag category selected in the initial reflection message is, for example, a situation tag, the situation tag is searched first, and then the device tag, symptom tag, and target tag in the order of the reflection.

[0078] As a result of the search, if there is at least one answer candidate question data whose entire value (character string) of the narrowing tag is included in the question inputted for the first reply message among the answer candidate question data selected at the time of outputting the reply message (S307-Yes), the answer candidate question data selection unit 107 of the server 10 selects the answer candidate question data (S309). Specifically, in this embodiment, if there is at least one answer candidate question data whose entire value (character string) of the narrowing tag is included in the second question inputted for the first reply message among the answer candidate question data selected at the time of outputting the first reply message, the answer candidate question data is selected. In this embodiment, the value of the device tag of the answer candidate question data of ID3 and ID4 is "printer", and the whole of this "printer" is included in the second question "It's a printer". In addition, the value of the device tag of the answer candidate question data of ID6 is "WiFi router", and the whole of this "WiFi router" is not included in the second question "It's a printer". Therefore, in this embodiment, the answer candidate question sentence data of ID3 and ID4 are selected.

[0079] If, as a result of the search, there is no answer candidate question sentence data that contains the entire value (character string) of the narrowing tag in the question entered for the ask-back message among the answer candidate question sentence data selected when the ask-back message is output (S307-No), the re-question request message output unit 109 of the server 10 outputs a message requesting the user to ask the question again, such as "I don't understand, please enter it again" (S311).

[0080] In the above embodiment, when there is answer candidate question sentence data selected when a reply message is output, and the question input for the reply message satisfies a first matching condition for the narrowing tag of the answer candidate question sentence data, the method of selecting the answer candidate question sentence data that is the earliest in the first order (the category of the narrowing tag that is set as an option in the reply message, and then the order specified by the reply order) of the category corresponding to the narrowing tag of the answer candidate question sentence data is to search for answer candidate question sentence data, among the answer candidate question sentence data selected when the reply message is output, in the category of the narrowing tag that is set as an option in the reply message, and then in the reply order, in which the question input for the reply message includes the entire value of the narrowing tag, and if the search result shows that there is at least one answer candidate question sentence data, among the answer candidate question sentence data selected when the reply message is output, in which the question input for the reply message includes the entire value of the narrowing tag, the method of selecting the answer candidate question sentence data is used. However, when there is answer candidate question sentence data selected when the reflect message is output, and the question input for the reflect message satisfies a first matching condition for the narrowing tag of the answer candidate question sentence data, the method of selecting the answer candidate question sentence data that is first in the first order of the category corresponding to the narrowing tag of the answer candidate question sentence data (the category of the narrowing tag that is an option in the reflect message, and thereafter in the order specified by the reflect order) is not limited to this, and any other appropriate method may be used.For example, a method may be used in which, among the answer candidate question sentence data selected when the reflect message is output, all answer candidate question sentence data in which the question input for the reflect message satisfies a first matching condition for the filtering tag of the answer candidate question sentence data is extracted, and, among the extracted answer candidate question sentence data, the answer candidate question sentence data that comes first in the first order of the category corresponding to the filtering tag of the answer candidate question sentence data (the category of the filtering tag that is set as an option in the reflect message, and thereafter in the order specified by the reflect order).

[0081] In the above embodiment, the first matching condition was that the question entered in response to the reflect message included the entire value of the refinement tag, but the first matching condition is not limited to this and can be any other appropriate condition that can evaluate whether the question entered in response to the reflect message matches the refinement tag, depending on the degree of matching or concept desired.

[0082] Furthermore, in the above embodiment, under the condition that the question sentence input in response to the reflection message includes the entire value of the refinement tag, variation in expression may be taken into consideration.

[0083] If only one answer candidate question data is selected (S313-Yes), the answer sentence output unit 111 of the server 10 outputs the answer sentence of the selected answer candidate question data and turns off the narrowing process flag, and the terminal 30 displays the output answer sentence (S315). If multiple answer candidate question data are selected (S313-No), the narrowing tag determination unit 113 for asking back determines whether multiple values ​​of the narrowing tags of the multiple selected answer candidate question data are present in the order of asking back (S317). If it is determined that multiple values ​​of the narrowing tag are present (S319-Yes), the reply message output unit 115 of the server 10 generates and outputs a reply message with the multiple narrowing tag values ​​as options, turns on the narrowing process flag, and the terminal 30 displays the output reply message (S321). Then, the process returns to the narrowing process flag determination step S2, but since the narrowing process flag is ON, the process proceeds to the narrowing process S3 and the narrowing process S3 is repeated.

[0084] Specifically, in this embodiment, the selected answer candidate question data includes two question data ID3 and ID4, so the server 10 determines whether or not there are multiple values ​​of the filter tag of the selected question data ID3 and ID4 for each filter tag category in the order of the response, that is, in the order of device tag, symptom tag, situation tag, and target tag. In this embodiment, the first device tag and the second symptom tag in the response order have the same value, "printer," and "not turned on," and the third situation tag in the response order has multiple values, "not connected to PC" and "connected to PC," so the server 10's response message output unit 115 embeds these values ​​in the response message of the situation tag stored in the response message table 503, generates and outputs a second response message, "Please tell us your usage status [connected to PC] [not connected to PC]," and turns on the filter processing flag. Then, the process returns to the narrowing down process flag determination step S2, proceeds to the narrowing down process S3, and the narrowing down process S3 is repeated.

[0085] In the above embodiment, when there are a plurality of selected answer candidate question sentence data and there are a plurality of values ​​of the narrowing tag of the plurality of selected answer candidate question sentence data for the same category, a method of outputting a reflection message having the values ​​of the narrowing tag for the same category that is the first in the reflection order as an option is used, in which, when there are a plurality of selected answer candidate question sentence data, it is determined whether there are a plurality of values ​​of the narrowing tag of the plurality of selected answer candidate question sentence data in the reflection order, and when it is determined that there are a plurality of values ​​of the narrowing tag, a reflection message having the values ​​of the plurality of narrowing tags as an option is output. However, when there are a plurality of selected answer candidate question sentence data and there are a plurality of values ​​of the narrowing tag of the plurality of selected answer candidate question sentence data for the same category, the method of outputting a reflection message having the values ​​of the plurality of narrowing tags for the same category that is the first in the reflection order as an option is not limited to this, and any other appropriate method can be used. For example, a method of extracting all categories that have a plurality of values ​​of the narrowing tag of the plurality of selected answer candidate question sentence data, and outputting a reflection message having the values ​​of the narrowing tags for the category that is the first in the reflection order among the extracted categories as an option may be used.

[0086] The question receiving unit 101 of the server 10 receives a question input in response to the reflection message (S301). Then, the analysis unit 103 of the server 10 performs a morpheme analysis of the received question (S303). Specifically, when the user inputs a third question, "Not connected to a PC," in response to the second reflection message output in step S321, to the terminal 30, the question receiving unit 101 of the server 10 receives the third question. Then, the analysis unit 103 of the server 10 performs a morpheme analysis of the received third question, "Not connected to a PC."

[0087] The narrowing search unit 119 of the server 10 searches for answer candidate question sentence data in which the entire value of the narrowing tag is included in the question input for the reflect message among the answer candidate question sentence data selected when the reflect message is output, by searching for the narrowing tag as an option in the reflect message, and then in the order of the reflect message (S305). Specifically, the narrowing search unit 119 of the server 10 searches for answer candidate question sentence data in which the entire value of the narrowing tag is included in the second question sentence among the answer candidate question sentence data of ID3 and ID4 selected when the second reflect message is output in step S319. At this time, the search order is the situation tag, which is a category of the narrowing tag as an option in the second reflect message, and then in the order of the reflect message, the device tag, the symptom tag, and the target tag.

[0088] As a result of the search, when at least one answer candidate question data in which the entire value of the narrowing tag is included in the question inputted for the second reply message is present among the answer candidate question data selected at the time of outputting the reply message (S307-Yes), the answer candidate question data selection unit 107 of the server 10 selects the answer candidate question data (S309). Specifically, in this embodiment, when at least one answer candidate question data in which the entire value of the narrowing tag is included in the third question inputted for the second reply message is present among the answer candidate question data selected at the time of outputting the second reply message, the answer candidate question data is selected. In this embodiment, the value of the situation tag of the answer candidate question data of ID3 is "not connected to PC", and this whole "not connected to PC" is included in the third question "not connected to PC". In addition, the value of the situation tag of the answer candidate question data of ID4 is "connected to PC", and this whole "connected to PC" is not included in the third question "not connected to PC". Therefore, in this embodiment, the answer candidate question sentence data of ID3 is selected.

[0089] If, as a result of the search, there is no answer candidate question sentence data that includes the entire value of the narrowing tag in the question entered for the ask-back message among the answer candidate question sentence data selected when the ask-back message is output (S307-No), the re-question request message output unit 109 of the server 10 outputs a message requesting the user to ask the question again, such as "I don't understand, please enter it again" (S311).

[0090] If only one answer candidate question sentence data is selected (S313-Yes), the answer sentence output unit 111 of the server 10 outputs the answer sentence of the selected answer candidate question sentence data and turns OFF the narrowing process flag, and the terminal 30 displays the output answer sentence (S315). If multiple answer candidate question sentence data are selected (S313-No), the re-asking narrowing tag determination unit 113 of the server 10 determines, in the order of re-asking, whether or not multiple values ​​of the narrowing tags of the multiple selected answer candidate question sentence data exist (S317).

[0091] Specifically, in this embodiment, the selected answer candidate question sentence data is only the question sentence data of ID3, and the answer sentence to be output is determined, so the answer sentence output unit 111 of the server 10 outputs the answer sentence of the question sentence data of ID3, which is the selected answer candidate question sentence data, "The power will not turn on unless a PC is connected," and turns off the narrowing down process flag, and the terminal 30 displays the output answer sentence (S315). Then, the process returns to the narrowing down process flag determination step S2, but since the narrowing down process flag is turned off, the answer question process is terminated.

[0092] According to this embodiment, the question and answer service provider uses predetermined narrowing tags to ask questions again, narrowing down answer candidates and guiding the user to the final answer desired. Since the order of asking questions again is specified in the category of the narrowing tag for asking questions again, the order of the topics of the questions to be presented can be controlled when options for narrowing down answer candidates are presented. This allows, for example, the content of the questions to be asked again to be defined hierarchically (for example, the categories of the narrowing tag can be set as "product series", "product name", and "product version"), and the service provider can control the order of the topics of the questions to be asked again so that the narrowing down process is performed in a natural flow from higher concepts to lower concepts.

[0093] Furthermore, according to this embodiment, since a review message can be defined for each category of the refinement tag, detailed explanations can be provided to the user for parts that are required.

[0094] Furthermore, according to this embodiment, the priority can be specified in the question sentence data, and the selection of the answer candidate question sentence data can be performed based on the priority of the question sentence data, so that the question and answer service provider can control the presentation of answers that it wants to provide to the user with priority. For example, in the narrowing preparation process, if only a product name is specified in the question sentence and only that product name is hit in each question sentence data, all question sentence data including that product name will become answer candidate question sentence data, but when it is desired to output only a specific answer such as product information, a high priority can be set for the relevant question sentence data, allowing control that meets the intention of the question and answer service provider.

[0095] As a modified example of the above embodiment, the question inputted to the reflection message in the narrowing down process may include a question in which at least one of the words constituting the question inputted to the reflection message is replaced with a replacement word of the word, the replacement word of the word is set for each category of the narrowing down tag, and the replacement word is obtained by using a dictionary including the words constituting the narrowing down tag of the category. With such a configuration, it is possible to more accurately respond to the user's free input of a question.

[0096] For example, it is assumed that the question data table of the above embodiment is used, and in the dictionary of the device tag, the word "wireless" is set to be read as the word "WiFi router" constituting the device tag, and in the dictionary of the target tag, the same word "wireless" is set to be read as the word "WiFi" constituting the target tag. When a user inputs a question "I tried to use it, but it is not recognized," the question data of ID1, ID2, and ID5 are selected as answer candidate question data, and the device tag's asking back message "Which device is it? [Printer] [WiFi router]" is output. At this time, even if the user inputs a question "It's wireless" in response to this asking back message, which is not included in the options of the asking back message, the word "wireless" included in the question is read as "WiFi router" in the dictionary of the device tag, so that the user's intention of selecting one of the options, "WiFi router," can be understood. At the same time, the word "wireless" is read as "WiFi" in the dictionary of the target tag, so that the user's intention can be understood and responded to even when narrowing down the target tag.

[0097] In the above embodiment, the functions of each unit of the question and answering system 1, i.e., the question sentence receiving unit 101, the analyzing unit 103, the narrowing preparation search unit 105, the answer candidate question sentence data selecting unit 107, the re-question request message output unit 109, the answer sentence output unit 111, the narrowing tag determination unit for asking back 113, the reply message output unit 115, the narrowing process flag determination unit 117, the narrowing search unit 119, and the memory unit 123, were executed by the server 10, but the functions of each unit of the question and answering system may be executed in a distributed manner by one or more of each of the one or more servers and each of the terminals. For example, all of the units of the question and answering system may be executed by the terminals. Also, for example, the functions of part of memory unit 123, question sentence receiving unit 101, and analysis unit 103 may be executed on a terminal, the functions of part of memory unit 123 and part of narrowing preparation search unit 105 may be executed on a first server, the functions of part of memory unit 123, part of narrowing search unit 119, and narrowing tag determination unit for asking back 113 may be executed on a second server, and the functions of answer candidate question sentence data selection unit 107, re-question request message output unit 109, answer sentence output unit 111, return message output unit 115, and narrowing processing flag determination unit 117 may be executed on a third server.

[0098] Second embodiment In the first embodiment, if there was no answer candidate question sentence data including a narrowing tag that satisfies the first matching condition for the question input for the reflect message among the answer candidate question sentence data selected at the time of outputting the reflect message, a re-question request message was output. In such a case, instead of a configuration for outputting a re-question request message, this embodiment outputs one answer sentence from the answer candidate question sentence data that is the answer candidate question sentence data selected when the reply message is output, and the question sentence input in response to the kth reply message, which is the current reply message, satisfies a second matching condition for the narrowing tag of the answer candidate question sentence data, and which is the first in the second order of the reply message when the answer candidate question sentence data was selected (the order defined in the reverse order of output from the k-2th reply message, which is the reply message output two messages before the kth reply message), for example, searches for question sentence data including a narrowing tag that matches the question sentence in response to the output reply message, and if such a narrowing tag is found, goes back to the narrowing point when the answer candidate question sentence data including such a narrowing tag was selected, performs new narrowing from that point, and outputs the answer sentence.

[0099] 9 is a diagram showing the overall configuration of a question and answering system according to a second embodiment of the present invention. The overall configuration and hardware configuration of the question and answering system according to the second embodiment are the same as those of the first embodiment except for the following points, so descriptions that overlap with those of the first embodiment will be omitted.

[0100] The answer candidate question sentence data selection unit 107, in addition to the functions in the first embodiment, selects answer candidate question sentence data that is selected when a reflection message is output, where the question input in response to the kth reflection message, which is the current reflection message, satisfies a second matching condition for the narrowing tag of the answer candidate question sentence data, and where the answer candidate question sentence data is first in the second order of the reflection message when the answer candidate question sentence data was selected (the order defined in the reverse order of output from the k-2th reflection message, which is the reflection message output two messages before the kth reflection message).

[0101] As an example, when the answer narrowing tag determination unit 121 described below determines that the answer candidate question sentence data selected when the reflect message is output contains a narrowing tag that satisfies the condition that the entire value of the narrowing tag is included in the question entered in response to the kth reflect message, the answer candidate question sentence data selection unit 107 selects the answer candidate question sentence data.

[0102] In addition to the functions in the first embodiment, in the narrowing down process, when there is no answer candidate question sentence data in which the entire value of the narrowing tag is included in the question sentence input for the kth reply message among the answer candidate question sentence data selected at the time of outputting the kth reply message which is the current reply message, the narrowing down search unit 119 searches for a question sentence including a narrowing tag that satisfies the condition that the entire value of the narrowing tag is included in the question sentence input for the kth reply message, in the order of asking back, starting from the narrowing tag category in the next order of asking back of the narrowing tag category of the value selected as an option in the kth reply message.

[0103] When a question sentence including a narrowing tag that satisfies the above-mentioned condition is found as a result of the above-mentioned search by the narrowing search unit 119, the answer narrowing tag determination unit 121 determines whether or not a narrowing tag that satisfies the above-mentioned condition is present in the answer candidate question sentence data selected at the time of output of the reflection message, in reverse output order starting from the (k-2)th reflection message, which is the reflection message output two messages before the kth reflection message.

[0104] In addition to the functions in the first embodiment, the repeat question request message output unit 109 outputs a message requesting the user to ask the question again if, as a result of the above search by the refinement search unit 119, no question sentence including a refinement tag that satisfies the above condition is found, or if no refinement tag that satisfies the above condition is present in the answer candidate question sentence data selected at the time of outputting the repeat message.

[0105] The content of the question data table according to the second embodiment of the present invention is as shown in FIG.

[0106] The other functional configuration is similar to that of the first embodiment, and therefore description thereof will be omitted.

[0107] <Summary> FIG. 11 is a diagram showing an overview of an example of a question and answering process of the question and answering system according to the second embodiment of the present invention.

[0108] When the user inputs an initial question sentence such as "It broke and I'm having trouble," the analysis unit 103 performs morphological analysis on the initial question sentence, removes particles, and extracts the words "breakdown," "did," and "had trouble." The refinement preparation search unit 105 searches for each of the extracted words "breakdown," "did," and "had trouble" in the keywords and refinement tags for each of the question sentence data stored in the question sentence data list 501, and selects the question sentence data with ID1 to ID7 that has the largest number of hit words as answer candidate question sentence data. The re-asking filtering tag determination unit 113 determines whether there are multiple values ​​for the filtering tag of the selected answer candidate question sentence data ID1 to ID7, based on the re-asking order of the filtering tag category. However, since there are multiple values, "printer" and "WiFi router", for the device tag that is first in the re-asking order, the re-asking message output unit 115 embeds these values ​​in the re-asking message for the device tag stored in the re-asking message table 503, and outputs the initial re-asking message, "Which device is it? [Printer] [WiFi router]".

[0109] When a second question, "It's a printer," is entered in response to this first return message, the narrowing search unit 119 searches for answer candidate question sentence data whose second question contains the entire value of the narrowing tag among the selected answer candidate question sentence data of ID1 to ID7, and the answer candidate question sentence data selection unit 107 selects the question sentence data whose second question contains the entire value of the narrowing tag as answer candidate question sentence data. The re-asking filtering tag determination unit 113 determines whether there are multiple values ​​for the filtering tag of the selected answer candidate question sentence data ID1 to ID4, based on the re-asking order of the filtering tag category. For the device tag that is the first in the re-asking order, the value is the same as "printer", and for the symptom tag that is the second in the re-asking order, there are multiple values, "not recognized" and "won't turn on", so the re-asking message output unit 115 embeds these values ​​in the re-asking message of the symptom tag stored in the re-asking message table 503, and outputs a second re-asking message saying "Please tell me the symptoms [not recognized] [won't turn on]".

[0110] When the user inputs a third question, "It doesn't turn on," in response to the second response message, the narrowing search unit 119 selects the answer candidate question data of ID3 and ID4, in which the third question contains the entire value of the narrowing tag, from among the selected answer candidate question data of ID1 to ID4. The narrowing tag determination unit 113 determines whether there are multiple values ​​of the narrowing tag of the selected answer candidate question data of ID3 and ID4, based on the response order of the narrowing tag category. For the device tag, which is the first in the response order, and the symptom tag, which is the second in the response order, the same values, "Printer" and "It doesn't turn on," exist, and for the situation tag, which is the third in the response order, there are multiple values, "Not connected to PC" and "Connected to PC," so the response message output unit 115 embeds these values ​​in the response message of the situation tag stored in the response message table 503, and outputs the third response message, "Please tell me your usage status [Connected to PC] [Not connected to PC]."

[0111] In response to this third reflection message, the user inputs a fourth question, "It's a USB," which does not follow the flow of narrowing down so far. Then, the narrowing search unit 119 searches for answer candidate question data in which the whole value of the narrowing tag is included in the third question, among the selected answer candidate question data of ID3 and ID4. However, there is no answer candidate question data in which the whole value of the narrowing tag is included in the fourth question, among the selected answer candidate question data of ID3 and ID4. Therefore, the narrowing search unit 119 searches for question data including a narrowing tag that satisfies the condition that the whole value of the target tag, which is a narrowing tag of the next category in the reflection order of the situation tag, which is a narrowing tag category of the value selected in the current reflection message, the third reflection message, is included in the fourth question, "It's a USB," and the question data of ID1 and ID5 are found as question data including a narrowing tag that satisfies the condition. The answer narrowing tag determination unit 121 determines whether or not narrowing tags that satisfy the above-mentioned condition exist in the question sentence data of ID1 to ID4, which is the answer candidate question sentence data selected when the first reply message, which was output two messages before the third reply message, is output. Since the question sentence data containing narrowing tags that satisfy the above-mentioned condition are the question sentence data of ID1 and ID5, the question sentence data of ID1 becomes the only applicable answer candidate question sentence data, and the answer sentence to be output is determined. The answer sentence output unit 111 outputs the answer sentence of the question sentence data of ID1, "The printer driver may not be installed correctly," and ends the question answering process.

[0112] Next, a specific question answering process for the above example will be described with reference to Figures 3, 4, 6 to 7B, 9 to 12C, etc. In Figures 9, 12A to 12C, parts corresponding to Figures 1 and 8A to 8B are given the same reference numerals, and descriptions overlapping with those of the first embodiment will be omitted. Also, the schematic flowchart of the question answering process according to the second embodiment is similar to that of the first embodiment, so descriptions will be omitted.

[0113] <Preparation for filtering> The flowchart of the narrowing down preparation process in this embodiment is similar to that in the first embodiment, and will be described with reference to FIGS. 7A and 7B.

[0114] The question receiving unit 101 of the server 10 receives an initial question ("It's broken, and I'm having trouble") from the user input via the terminal 30 (S101). Then, the analysis unit 103 of the server 10 extracts words based on a morphological analysis of the received initial question (S103). Specifically, the question receiving unit 101 of the server 10 receives the initial question input via the terminal 30 from the user. Then, the analysis unit 103 of the server 10 performs a morphological analysis of the received initial question, "It's broken, and I'm having trouble," removes particles, and extracts the words "broken," "did," and "had trouble."

[0115] The narrowing-down preparation search unit 105 of the server 10 searches for the words extracted based on the morphological analysis in step S103 in at least a portion of each of the question sentence data stored in the question sentence data list 502 (S105). Specifically, in this embodiment, among the elements constituting the question sentence data, in the keywords and narrowing-down tags, each of the words "broken," "did," and "had trouble" that are extracted based on the morphological analysis in step S103 is searched for.

[0116] When at least one question sentence data in which the hit word exists is found as a result of the search (S107-Yes), the answer candidate question sentence data selection unit 107 of the server 10 selects answer candidate question sentence data from among the question sentence data in which the hit word exists, based on the similarity between the input question sentence and the question sentence data in which the hit word exists, and the priority (S109). In this embodiment, since the keyword "fault" in the question sentence data of ID1 to ID7 hits the word "fault", the number of hit words for the question sentence data of ID1 to ID7 is 1. On the other hand, in the question sentence data of ID8, there is no hit for the words "fault", "did", and "had trouble", so the number of hit words for the question sentence data of ID8 is 0. Therefore, in this embodiment, the priority of the question sentence data of ID1 to ID7 is the same at 1, so the question sentence data of ID1 to ID7 with the largest number of hit words is selected as the answer candidate question sentence data.

[0117] If the search results in no question sentence data containing the word that was hit (S107-No), the re-question message output unit 109 of the server 10 outputs a message requesting the user to re-ask the question, such as "I don't understand, please enter it again" (S111).

[0118] If only one answer candidate question sentence data is selected (S113-Yes), the answer sentence output unit 111 of the server 10 outputs the answer sentence of the selected answer candidate question sentence data and turns off the narrowing process flag, and the terminal 30 displays the output answer sentence (S115). If multiple answer candidate question sentence data are selected (S113-No), the review narrowing tag determination unit 113 of the server 10 determines whether multiple values ​​of the narrowing tags of the multiple selected answer candidate question sentence data are present in the order of the review (S117). If it is determined that multiple values ​​of the narrowing tag are present (S119-Yes), the review message output unit 115 of the server 10 generates and outputs a review message with the multiple narrowing tag values ​​as options, turns on the narrowing process flag, and the terminal 30 displays the output review message (S121).

[0119] Specifically, in this embodiment, the selected answer candidate question sentence data includes seven question sentence data with IDs 1 to 7, so the server 10 determines whether or not there are multiple values ​​of the filter tag of the selected question sentence data with IDs 1 to 7 for each filter tag category in the order of the response, that is, in the order of device tag, symptom tag, situation tag, and target tag. In this embodiment, the first device tag in the response order has multiple values, "printer" and "WiFi router", so the server 10's response message output unit 115 embeds these values ​​in the response message template for the device tag stored in the response message table 503, generates and outputs an initial response message saying "Which device is it? [Printer] [WiFi router]", turns on the filter processing flag, and the terminal 30 displays the output response message.

[0120] The narrowing down process flag determination unit 117 of the server 10 determines whether the narrowing down process flag is ON or OFF (S2), and if the narrowing down process flag is ON (S2-Yes), the process proceeds to the narrowing down process S3, and if the narrowing down process flag is OFF (S2-No), the question and answer process ends. In this embodiment, since the flag is ON in step S121, the process proceeds to the narrowing down process S3.

[0121] <Refinement process> 12A to 12C are a flowchart of an example of the narrowing-down process according to the second embodiment of the present invention.

[0122] The question receiving unit 101 of the server 10 receives the question input in response to the reflection message (S301). Then, the analysis unit 103 of the server 10 performs morpheme analysis of the received question (S303). Specifically, when the user inputs a second question, "It's a printer," in response to the first reflection message output in step S119, to the terminal 30, the second question is sent to the server 10, and the question receiving unit 101 of the server 10 receives the second question. Then, the analysis unit 103 of the server 10 performs morpheme analysis of the received second question, "It's a printer."

[0123] The narrowing search unit 119 of the server 10 searches for answer candidate question sentence data in which the entire value of the narrowing tag is included in the question sentence input for the reflection message among the answer candidate question sentence data selected when the reflection message is output, by searching for the narrowing tag as an option in the reflection message, and then in the order of the reflection (S305). Specifically, the narrowing search unit 119 of the server 10 searches for answer candidate question sentence data in which the entire value of the narrowing tag is included in the second question sentence among the answer candidate question sentence data of ID1 to ID7 selected when the first reflection message is output in step S119. At this time, as the order of search, the device tag, which is a narrowing tag of the category of the narrowing tag as an option in the first reflection message, is searched, and then in the order of the reflection, the symptom tag, the situation tag, and the target tag. Note that if the narrowing tag of the category of the narrowing tag as an option in the first reflection message is, for example, the situation tag, the situation tag is searched first, and then in the order of the reflection, the device tag, the symptom tag, and the target tag are searched.

[0124] As a result of the search, when at least one answer candidate question data in which the entire value of the narrowing tag is included in the question inputted for the first reply message is present among the answer candidate question data selected at the time of outputting the reply message (S307-Yes), the answer candidate question data selection unit 107 of the server 10 selects the answer candidate question data (S309). Specifically, in this embodiment, when at least one answer candidate question data in which the entire value of the narrowing tag is included in the second question inputted for the first reply message is present among the answer candidate question data selected at the time of outputting the first reply message, the answer candidate question data is selected. In this embodiment, the value of the device tag of the answer candidate question data of ID1 to ID4 is "printer", and the whole of this "printer" is included in the second question "It's a printer". In addition, the value of the device tag of the answer candidate question data of ID5 to ID7 is "WiFi router", and the whole of this "WiFi router" is not included in the second question "It's a printer". Therefore, in this embodiment, answer candidate question sentence data of ID1 to ID4 are selected.

[0125] If only one answer candidate question data is selected (S313-Yes), the answer sentence output unit 111 of the server 10 outputs the answer sentence of the selected answer candidate question data and turns off the narrowing process flag, and the terminal 30 displays the output answer sentence (S315). If multiple answer candidate question data are selected (S313-No), the narrowing tag determination unit 113 for asking back determines whether multiple values ​​of the narrowing tags of the multiple selected answer candidate question data are present in the order of asking back (S317). If it is determined that multiple values ​​of the narrowing tag are present (S319-Yes), the reply message output unit 115 of the server 10 generates and outputs a reply message with the multiple narrowing tag values ​​as options, turns on the narrowing process flag, and the terminal 30 displays the output reply message (S321). Then, the process returns to the narrowing process flag determination step S2, but since the narrowing process flag is ON, the process proceeds to the narrowing process S3 and the narrowing process S3 is repeated.

[0126] Specifically, in this embodiment, the selected answer candidate question sentence data includes four question sentence data ID1 to ID4, so the server 10 determines whether or not there are multiple values ​​of the filter tag of the selected question sentence data ID1 to ID4 for each filter tag category in the order of the filter, that is, in the order of the device tag, the symptom tag, the situation tag, and the target tag. In this embodiment, the device tag that is the first in the filter order has the same value as "printer", and the symptom tag that is the second in the filter order has multiple values, "not recognized" and "not turned on", so the server 10's response message output unit 115 embeds these values ​​in the response message of the symptom tag stored in the response message table 503, generates and outputs a second response message of "Which symptom is it? [not recognized] [not turned on]", and turns on the filter processing flag. Then, the process returns to the filter processing flag determination step S2, proceeds to the filter processing S3, and repeats the filter processing S3.

[0127] The question receiving unit 101 of the server 10 receives a question input in response to the reflection message (S301). Then, the analysis unit 103 of the server 10 performs a morpheme analysis of the received question (S303). Specifically, when the user inputs a third question, "The power won't turn on," in response to the second reflection message output in step S319, to the terminal 30, the question receiving unit 101 of the server 10 receives the third question. Then, the analysis unit 103 of the server 10 performs a morpheme analysis of the received third question, "The power won't turn on."

[0128] The narrowing search unit 119 of the server 10 searches for answer candidate question sentence data in which the entire value of the narrowing tag is included in the question input for the reflect message among the answer candidate question sentence data selected when the reflect message is output, by searching for the narrowing tag as an option in the reflect message, and then in the order of the reflect message (S305). Specifically, the narrowing search unit 119 of the server 10 searches for answer candidate question sentence data in which the entire value of the narrowing tag is included in the third question sentence among the answer candidate question sentence data of ID1 to ID4 selected when the second reflect message is output in step S319. At this time, the search order is the symptom tag, which is the narrowing tag as an option in the second reflect message, and then in the order of the reflect message, the device tag, the situation tag, and the target tag.

[0129] As a result of the search, when at least one answer candidate question data in which the entire value of the narrowing tag is included in the question inputted for the second reply message is present among the answer candidate question data selected at the time of outputting the reply message (S307-Yes), the answer candidate question data selection unit 107 of the server 10 selects the answer candidate question data (S309). Specifically, in this embodiment, when at least one answer candidate question data in which the entire value of the narrowing tag is included in the third question inputted for the second reply message is present among the answer candidate question data selected at the time of outputting the second reply message, the answer candidate question data is selected. In this embodiment, the value of the symptom tag of the answer candidate question data of ID3 and ID4 is "power not turned on", and this whole "power not turned on" is included in the second question "power not turned on". In addition, the value of the symptom device tag of the answer candidate question data of ID1 and ID2 is "not recognized", and this whole "not recognized" is not included in the third question "not turned on". Therefore, in this embodiment, the answer candidate question sentence data of ID3 and ID4 are selected.

[0130] If only one answer candidate question sentence data is selected (S313-Yes), the answer sentence output unit 111 of the server 10 outputs the answer sentence of the selected answer candidate question sentence data and turns OFF the narrowing process flag, and the terminal 30 displays the output answer sentence (S315). If multiple answer candidate question sentence data are selected (S313-No), the re-asking narrowing tag determination unit 113 of the server 10 determines, in the order of re-asking, whether or not multiple values ​​of the narrowing tags of the multiple selected answer candidate question sentence data exist (S317).

[0131] Specifically, in this embodiment, the selected answer candidate question data includes two question data ID3 and ID4, so the server 10 determines whether or not there are multiple values ​​of the filter tag of the selected question data ID3 and ID4 for each filter tag in the order of the response, that is, in the order of device tag, symptom tag, situation tag, and target tag. In this embodiment, the first device tag and the second symptom tag in the response order have the same value, "printer" and "not turned on", and the third situation tag in the response order has multiple values, "not connected to PC" and "connected to PC", so the server 10's response message output unit 115 embeds these values ​​in the response message of the situation tag stored in the response message table 503, generates and outputs a second response message, "Please tell us your usage status [connected to PC] [not connected to PC]", and turns on the filter processing flag. Then, the process returns to the narrowing down process flag determination step S2, proceeds to the narrowing down process S3, and the narrowing down process S3 is repeated.

[0132] The question receiving unit 101 of the server 10 receives the question input in response to the reflection message (S301). Then, the analysis unit 103 of the server 10 performs morpheme analysis of the received question (S303). Specifically, when the user inputs a fourth question, "It's a USB," in response to the third reflection message output in step S119, to the terminal 30, the fourth question is sent to the server 10, and the question receiving unit 101 of the server 10 receives the received fourth question. Then, the analysis unit 103 of the server 10 performs morpheme analysis of the received fourth question, "It's a USB."

[0133] The narrowing search unit 119 of the server 10 searches for answer candidate question sentence data in which the entire value of the narrowing tag is included in the question input for the reflect message among the answer candidate question sentence data selected when the reflect message is output, by searching for the narrowing tag as an option in the reflect message, and then in the order of the reflect message (S305). Specifically, the narrowing search unit 119 of the server 10 searches for answer candidate question sentence data in which the entire value of the narrowing tag is included in the fourth question sentence among the answer candidate question sentence data of ID3 and ID4 selected when the third reflect message is output in step S119. At this time, the search order is the situation tag, which is a narrowing tag of the category of the narrowing tag as an option in the third reflect message, and then in the order of the reflect message, the device tag, the symptom tag, and the target tag.

[0134] As a result of the search, if there is at least one answer candidate question sentence data among the answer candidate question sentence data selected when the reflect message is output, in which the question sentence entered for the reflect message includes the entire value of the narrowing tag, that answer candidate question sentence data is selected (S307-Yes).

[0135] As a result of the search, if there is no answer candidate question sentence data in which the question input for the kth reply message includes the entire value of the narrowing tag among the answer candidate question sentence data selected when the reply message is output (S307-No), that is, among the answer candidate question sentence data selected when the kth reply message, which is the current reply message, is output, the question input for the kth reply message satisfies the first matching condition for the narrowing tag of the answer candidate question sentence data, that is, the question input for the kth reply message satisfies the condition that the question input for the kth reply message includes the entire value of the narrowing tag of the answer candidate question sentence data, in other words, the question input for the kth reply message If there is no answer candidate question sentence data including the entire value of the narrowing tag (S307-No), the narrowing search unit 119 of the server 10 searches, in the order of asking back, starting from the narrowing tag of the category in the next asking back order of the narrowing tag category of the value selected in the kth reply message, for question sentence data in which the question sentence input for the kth reply message satisfies a second matching condition for the narrowing tag of the question sentence data, i.e., question sentence data in which the question sentence input for the kth reply message satisfies the condition that the question sentence input for the kth reply message includes the entire value of the narrowing tag of the question sentence data, in other words, question sentence data including a narrowing tag that satisfies the condition that the entire value of the narrowing tag is included in the question sentence input for the kth reply message (S331).

[0136] If a question sentence including a narrowing tag that satisfies the above-mentioned condition is found as a result of the search (S333-Yes), the answer narrowing tag determination unit 121 of the server 10 determines whether or not a narrowing tag that satisfies the above-mentioned condition is present in the answer candidate question sentence data selected at the time of output of the response message, in reverse output order starting from the (k-2)th response message, which is the response message output two messages before the kth response message (S335).

[0137] If the search result does not find a question including a narrowing-down tag that satisfies the above-mentioned condition (S333-No), the re-question request message output unit 109 of the server 10 outputs a message requesting the user to re-ask the question, such as "I don't understand, please enter it again" (S337). Here, instead of being configured so that the re-question request message output unit 109 of the server 10 outputs a message requesting the user to re-ask the question, the process may be returned to the narrowing-down preparation process S1.

[0138] If it is determined that the narrowing tag that satisfies the above condition exists in the answer candidate question sentence data selected when the reflection message is output (S339-Yes), the process proceeds to step S309, where the answer candidate question sentence data selection unit 107 of the server 10 selects the answer candidate question sentence data (S309). Then, the steps from step S313 onwards are performed.

[0139] If it is determined that the narrowing down tag that satisfies the above condition is not present in the answer candidate question sentence data selected when the retell message is output (S339-No), the re-question request message output unit 109 of the server 10 outputs a message requesting the user to re-ask the question, such as "I don't understand, please input again" (S337). Here, instead of being configured to output a message requesting the user to re-ask the question, the re-question request message output unit 109 of the server 10 may be configured to return to the narrowing down preparation process S1.

[0140] Specifically, the narrowing search unit 119 of the server 10 searches for answer candidate question sentence data in which the entire value of the narrowing tag is included in the fourth question sentence inputted for the third reflect message among the answer candidate question sentence data of ID3 and ID4 selected at the time of outputting the third reflect message. If there is no answer candidate question sentence data in which the entire value of the narrowing tag is included in the fourth question sentence among the answer candidate question sentence data of ID3 and ID4 selected at the time of outputting the third reflect message, the narrowing search unit 119 of the server 10 searches for a question sentence including a narrowing tag that satisfies the condition that the entire value of the narrowing tag is included in the fourth question sentence, in the reflecting order, starting from the narrowing tag of the category in the next reflecting order of the category of the narrowing tag of the value selected in the third reflect message.

[0141] In this embodiment, the values ​​of the status tag, device tag, and symptom tag of the answer candidate question data of ID3 are "not connected to PC", "printer", and "not turned on", and the values ​​of the status tag, device tag, and symptom tag of the answer candidate question data of ID4 are "connected to PC", "printer", and "not turned on", and these as a whole are not included in the fourth question "It's a USB". In addition, there is no value of the target tag of the answer candidate question data of ID3 and ID4. Therefore, as a result of the search, there is no answer candidate question data in which the entire value of the narrowing tag is included in the fourth question among the answer candidate question data of ID3 and ID4 selected at the time of outputting the third reflection message. Therefore, the narrowing search unit 119 of the server 10 searches for question data in which the entire value of the target tag, which is a narrowing tag of the category next to the status tag, which is a category of narrowing tags of the value selected in the current reflection message, the third reflection message, is included in the fourth question "It's a USB" input for the third reflection message. Among all the question sentence data stored in the question sentence data list, the value of the target tag of the question sentence data with ID1 and ID5 is "USB", and this "USB" is entirely contained in the fourth question, "It's a USB." Therefore, as a result of the search, the question sentence data with ID1 and ID5 are found as question sentence data containing the narrowing tag that satisfies the condition.

[0142] Since the question including the narrowing tag that satisfies the condition is found, the answer narrowing tag determination unit 121 of the server 10 determines whether or not the answer candidate question data selected when the reply message is output includes a narrowing tag that satisfies the condition, in reverse order from the first reply message output two messages before the third reply message. The answer candidate question data selected when the first reply message is output are the question data of ID1 to ID4, and the question data including the narrowing tag that satisfies the condition as described above are the question data of ID1 and ID5. Therefore, the question data of ID1 is the answer candidate question data selected when the first reply message is output, and is the only answer candidate question data that includes the narrowing tag that satisfies the condition, and the answer to be output is determined. The answer output unit 111 of the server 10 outputs the answer to the question data of ID1, "The printer driver may not be installed correctly," and turns off the narrowing process flag, and the terminal 30 displays the output answer. Then, the process returns to the narrowing down process flag determination step S2, but since the narrowing down process flag is OFF, the narrowing down process S3 is terminated.

[0143] In the above embodiment, as a method of outputting one answer sentence from among the answer candidate question sentence data which is the answer candidate question sentence data selected when the reflection message is output, and the question sentence input for the k-th reflection message satisfies the second matching condition for the narrowing tag of the answer candidate question sentence data, and which is the first in the second order of the reflection message when the answer candidate question sentence data was selected (the order specified in the reverse order of the output order from the k-2-th reflection message which is the reflection message output two messages before the k-th reflection message), the narrowing search unit searches for a question sentence including a narrowing tag which satisfies the condition that the entire value of the narrowing tag is included in the question sentence input for the k-th reflection message, in the reflection order from the narrowing tag category in the next reflection order of the narrowing tag category of the value set as an option in the k-th reflection message, and when a question sentence including a narrowing tag which satisfies the above condition is found as a result of the search, the answer narrowing tag determination unit searches for the question sentence including the narrowing tag which satisfies the above condition, in the second order before the k-th reflection message. Starting from the k-2nd reflection message, which is the inputted reflection message, in reverse order of output order, it is determined whether or not a narrowing tag that satisfies the condition is present in the answer candidate question sentence data selected at the time of outputting the reflection message, and if it is determined that a narrowing tag that satisfies the condition is present in the answer candidate question sentence data selected at the time of outputting the reflection message, an answer candidate question sentence data selection unit selects the answer candidate question sentence data, and if there is only one answer candidate question sentence data selected, an answer sentence output unit outputs an answer sentence of the selected answer candidate question sentence data, and if there are multiple selected answer candidate question sentence data, a narrowing tag determination unit for reflection determines, in the order of reflection, whether or not there are multiple values ​​of the narrowing tags of the multiple selected answer candidate question sentence data, and if it is determined that there are multiple values ​​of the narrowing tag, a reflection message output unit outputs a reflection message having the multiple values ​​of the narrowing tags as options, and the narrowing process is repeated when a reflection message is output.However, the method of outputting one of the answer candidate question sentence data that is the first in the second order of the reply message (the order defined in the reverse order of output from the k-2nd reply message, which is the reply message output two messages before the kth reply message) when the question input for the kth reply message satisfies a second matching condition for the narrowing tag of the answer candidate question sentence data and the answer candidate question sentence data is selected is not limited to this, and any other appropriate method may be used. For example, a method may be used in which all answer candidate question sentence data selected when each reflective message is output, where the question input for the kth reflective message satisfies a second matching condition for the narrowing tag of the answer candidate question sentence data, is extracted, and one answer sentence from the extracted answer candidate question sentence data that is the earliest in the second order of the reflective message when that answer candidate question sentence data was selected (the order is determined by the reverse order of output from the k-2th reflective message, which is the reflective message output two messages before the kth reflective message), is output.

[0144] In the above embodiment, the second matching condition was a condition that the question sentence input in response to the kth reply message included the entire value of the narrowing tag of the answer candidate question sentence data, but the second matching condition is not limited to this and can be any other appropriate condition that can evaluate that the question sentence input in response to the reply message matches the narrowing tag, depending on the degree of matching or concept required.

[0145] Furthermore, under the condition in the above embodiment that the question sentence input in response to the kth reflection message includes the entire value of the refinement tag, variation in expression may be taken into consideration.

[0146] Furthermore, in the above, the second matching condition was the same as the first matching condition, but the second matching condition may be different from the first matching condition.

[0147] According to this embodiment, in addition to the effects of the first embodiment, when the question for the presented reflection message and the value of the narrowing tag of the answer candidate question data selected when the reflection message is presented do not match, the answer candidate question data selected when the reflection message is output and the question input for the kth reflection message, which is the current reflection message, satisfy the second matching condition for the narrowing tag of the answer candidate question data, and an answer sentence is output from among the answer candidate question data that is the first in the second order of the reflection message when the answer candidate question data was selected (the order is determined by the reverse order of the output order from the k-2th reflection message, which is the reflection message output two messages before the kth reflection message). For example, a search is performed for question sentence data including a narrowing tag that matches the question for the presented reflection message, and when such a narrowing tag is found, the search is performed back to the narrowing point when the answer candidate question data including such a narrowing tag was selected, and a new narrowing is performed from there to output an answer sentence. Therefore, it is possible to deal with a case where a question that does not follow the narrowing flow is input by the user, and it is possible to deal with a user's free input of a question sentence.

[0148] Although the present invention has been described with respect to several embodiments for illustrative purposes, it will be apparent to those skilled in the art that the present invention is not limited thereto, and that various changes and modifications in form and details can be made without departing from the scope and spirit of the present invention. [Explanation of symbols]

[0149] 1. Question and Answer System 10 Server 101 Question Reception Department 103 Analysis Department 105 Narrowing Preparation Search Section 107 Answer candidate question data selection section 109 Re-interrogation request message output section 111 Answer text output section Response text output section 113 Repetition narrowing tag determination unit 115 Reply message output section 117 Filtering process flag determination unit 119 Refine Search Section 121 Answer Filtering Tag Judgment Section 123 Storage section 10a CPU 10b RAM 10c ROM 10d External Memory 10e Input section 10f Output section 10g Communication section 10h system bus 20 Network 30 Terminals 501 Question Data Table 503 Return Message Table

Claims

1. a plurality of question sentence data including an expected question sentence, an answer sentence to the expected question sentence, and a refinement tag of at least one category, the refinement tag being a category in which an order of asking questions back is specified; and an answer candidate question sentence data selection unit that selects answer candidate question sentence data from the plurality of question sentence data based on a similarity of the input question sentence; an answer sentence output unit that outputs an answer sentence of the selected answer candidate question sentence data when only one answer candidate question sentence data is selected; a reflection message output unit that outputs a reflection message having options for the values ​​of the refinement tags of the plurality of selected answer candidate question sentence data for the same category, the values ​​of the refinement tags of the plurality of selected answer candidate question sentence data being the first in the reflection order; Equipped with the answer candidate question sentence data selection unit selects the answer candidate question sentence data that is the first in a first order of a category corresponding to the narrowing tag of the answer candidate question sentence data, when the answer candidate question sentence data selected when the reply message is output and the question sentence inputted to the reply message satisfies a first matching condition with respect to the narrowing tag of the answer candidate question sentence data, wherein the first order of the categories is determined by the category of the narrowing tag that is set as an option in the reply message, and thereafter by the order of the reply; When only one answer candidate question sentence data is selected, the answer sentence output unit outputs the answer sentence of the selected answer candidate question sentence data; when there are a plurality of selected answer candidate question sentence data and a plurality of values ​​of the narrowing tags of the plurality of selected answer candidate question sentence data exist for the same category, the reflect message output unit outputs a reflect message having options of the values ​​of the narrowing tags for the category that is first in the reflect message order; The filtering process including the above is repeated when a confirmation message is output. Question answering system.

2. In the narrowing down process, when there is no answer candidate question sentence data in which the question sentence input for the kth reply message satisfies the first matching condition for the narrowing down tag of the answer candidate question sentence data among the answer candidate question sentence data selected at the time of outputting the kth reply message which is the current reply message, and the question sentence input for the kth reply message satisfies the second matching condition for the narrowing down tag of the answer candidate question sentence data, and the second order of the reply message when the answer candidate question sentence data was selected is the first, and the second order is specified in the reverse order of output from the k-2th reply message which is the reply message output two messages before the kth reply message, output one answer sentence from the answer candidate question sentence data. The question and answer system according to claim 1 .

3. The output of the answer sentence is the answer candidate question sentence data selection unit selects the answer candidate question sentence data when there exists answer candidate question sentence data that is selected when a reflection message is output, the question sentence input in response to the kth reflection message satisfies a second matching condition for a narrowing tag of the answer candidate question sentence data, and the second order of the reflection message when the answer candidate question sentence data was selected is the first, and the second order is specified in a reverse order of output from the k-2th reflection message that is the reflection message output two messages before the kth reflection message; When only one answer candidate question sentence data is selected, the answer sentence output unit outputs the answer sentence of the selected answer candidate question sentence data; when there are a plurality of selected answer candidate question sentence data and a plurality of values ​​of the narrowing tags of the plurality of selected answer candidate question sentence data exist for the same category, the reflect message output unit outputs a reflect message having options of the values ​​of the narrowing tags for the category that is first in the reflect message order; repeating the narrowing down process when a reply message is output; 3. The question and answering system of claim 2, comprising:

4. The question data further includes a priority. The question answering system according to any one of claims 1 to 3, wherein the answer candidate question sentence data selection unit selects answer candidate question sentence data based on the similarity between the input question sentence and the multiple question sentence data and / or the priority.

5. 5. The question and answer system according to claim 1, wherein the question data further includes keywords related to the anticipated question.

6. 6. The question and answering system according to claim 1, wherein in the narrowing-down process, the question input in response to the reflection message includes a question in which at least one of the words constituting the question input in response to the reflection message is replaced with a replacement word for the word, the replacement word for the word is set for each category of the narrowing-down tag, and the replacement word is obtained using a dictionary including the words constituting the narrowing-down tag of the category.

7. 1. A computer implemented method for question answering, comprising: selecting answer candidate question sentence data from among a plurality of question sentence data including an expected question sentence, an answer sentence to the expected question sentence, and a refinement tag of at least one category, the refinement tag being a category in which a request for repeating questions is specified, based on a similarity between the input question sentence and the plurality of question sentence data; When only one answer candidate question sentence data is selected, outputting an answer sentence of the selected answer candidate question sentence data; outputting a reflection message with options for the values ​​of the refinement tags of the plurality of selected answer candidate question sentence data for the same category that are the earliest in the reflection order, when the plurality of selected answer candidate question sentence data exists and the plurality of selected answer candidate question sentence data has a plurality of values ​​of the refinement tags for the same category; Steps below: a step of selecting the answer candidate question sentence data that is the first in a first order of a category corresponding to a narrowing tag of the answer candidate question sentence data, when the answer candidate question sentence data is selected when the reflection message is output and the question sentence inputted to the reflection message satisfies a first matching condition with respect to the narrowing tag of the answer candidate question sentence data, wherein the first order of the categories is determined by the category of the narrowing tag that is set as an option in the reflection message, and thereafter by the reflection order; When only one answer candidate question sentence data is selected, outputting an answer sentence of the selected answer candidate question sentence data; outputting a reflection message having options for the values ​​of the refinement tags of the first category in the reflection order when there are a plurality of selected answer candidate question sentence data and a plurality of values ​​of the refinement tags of the selected answer candidate question sentence data for the same category; repeating the narrowing down process including the above when a reply message is output; The method includes:

8. 8. The method of claim 7, further comprising the step of: outputting one answer sentence from among the answer candidate question sentence data selected at the time of outputting the kth reflection message, when the narrowing-down process does not include answer candidate question sentence data in which the question sentence input for the kth reflection message satisfies the first matching condition with respect to the narrowing-down tag of the answer candidate question sentence data, and when there is answer candidate question sentence data selected at the time of outputting the reflection message, in which the question sentence input for the kth reflection message satisfies the second matching condition with respect to the narrowing-down tag of the answer candidate question sentence data, and in which the second order of the reflection message when the answer candidate question sentence data was selected is the first, and the second order is specified in a reverse order of output from the k-2th reflection message, which is the reflection message output two messages before the kth reflection message.

9. The step of outputting the answer sentence includes: selecting answer candidate question sentence data when there is answer candidate question sentence data selected when a reflection message is output, the question sentence input in response to the kth reflection message satisfies a second matching condition for a narrowing tag of the answer candidate question sentence data, and the second order of the reflection message when the answer candidate question sentence data was selected is the first, and the second order is specified in a reverse order of output from the k-2th reflection message, which is the reflection message output two messages before the kth reflection message; When only one answer candidate question sentence data is selected, outputting an answer sentence of the selected answer candidate question sentence data; outputting a reflection message having options for the values ​​of the refinement tags of the first category in the reflection order when there are a plurality of selected answer candidate question sentence data and a plurality of values ​​of the refinement tags of the selected answer candidate question sentence data for the same category; repeating the narrowing down process when a reply message is output; 9. The method of claim 8, comprising:

10. The question data further includes a priority. The method according to any one of claims 7 to 9, wherein the step of selecting the answer candidate question sentence data based on the similarity between the plurality of question sentence data and the input question sentence is a step of selecting the answer candidate question sentence data based on the similarity between the input question sentence and the plurality of question sentence data and / or the priority.

11. The method according to any one of claims 7 to 10, wherein the question sentence data further includes keywords related to the anticipated question sentence.

12. The method according to any one of claims 7 to 11, wherein the question inputted in response to the reflection message in the narrowing-down process includes a question obtained by replacing at least one of the words constituting the question inputted in response to the reflection message with a replacement word of the word, the replacement word of the word is set for each category of the narrowing-down tag, and the replacement word is obtained by using a dictionary including the words constituting the narrowing-down tag of the category.

13. A program for causing a computer to execute the method according to any one of claims 7 to 12.

14. A computer-readable recording medium having the program according to claim 13 recorded thereon.

15. A method for generating a question and answer system by a computer, by installing the program according to claim 13 in said computer.

Citation Information

Patent Citations

  • Question answering control program, question answering control server, and question answering control method

    JP2015036945A

  • Information retrieval device and information retrieval program

    JP2016024765A

  • Interactive business support system and interactive business support program

    JP2019003319A

  • Interactive business assistance system

    JP2019207648A

  • Customer treatment assistance system and customer treatment assistance method

    WO2019187019A1