Information processing apparatus, information processing method, and non-transitory computer readable medium
An information processing apparatus includes a processor configured to: parse a question to thereby specify a number of intentions included in the question and specify, from the question, one or more question intentions equal to the number; and present an answer retrieved for an individual question expressing each question intention, each answer being presented in association with the corresponding question intention.
1 . An information processing apparatus comprising:
a processor configured to:
parse a question and, based on the parsing, specify a number of one or more intentions included in the question, the number being a numerical integer value;
generate, from the question, one or more individual queries each corresponding to a respective one of the one or more intentions;
divide a display region into a number of one or more display areas corresponding to the number of the one or more intentions; and
present, in each display area, (i) the individual query corresponding to the respective intention and (ii) an answer retrieved for the individual query.
2 . The information processing apparatus according to claim 1 , wherein the processor is configured to specify, as one intention, an expression expressed by a verb serving as a predicate of the question and an object of the verb serving as the predicate.
3 . The information processing apparatus according to claim 2 , wherein if a verb serving as the predicate does not exist in the question and the question ends in a noun, the processor is configured to specify an intention of the question by adding, after the noun, a predetermined verb to serve as the predicate.
4 . The information processing apparatus according to claim 2 , wherein if the question ends in a verb stem, the processor is configured to specify an intention of the question by adding, after the verb stem, an auxiliary verb expressing desire.
5 . The information processing apparatus according to claim 1 , wherein if a verb serving as a predicate of the question takes another verb as an object, the processor is configured to specify, as one intention, an expression expressed by the other verb and an object that the other verb takes.
6 . The information processing apparatus according to claim 1 , wherein if the number of the one or more intentions is two or higher, the processor is configured to generate the individual queries corresponding to the intentions by extracting, from the question and for each intention, an object included in the respective intention, any modifiers of the object, a verb included in the respective intention, and any modifiers of the verb.
7 . The information processing apparatus according to claim 1 , wherein the processor is configured to present, in each display area,
(i) the individual query corresponding to the respective intention in a way that demonstrates which part of the question corresponds to the respective intention,
(ii) the answer retrieved for the individual query, and
(iii) an expand/collapse button which, when selected, causes the processor to display or hide the answer while the individual query is continuously displayed in the respective display area.
8 . The information processing apparatus according to claim 2 , wherein the processor is configured to present, in each display area,
(i) the individual query corresponding to the respective intention in a way that demonstrates which part of the question corresponds to the respective intention,
(ii) the answer retrieved for the individual query, and
(iii) an expand/collapse button which, when selected, causes the processor to display or hide the answer while the individual query is continuously displayed in the respective display area.
9 . The information processing apparatus according to claim 3 , wherein the processor is configured to present, in each display area,
(i) the individual query corresponding to the respective intention in a way that demonstrates which part of the question corresponds to the respective intention,
(ii) the answer retrieved for the individual query, and
(iii) an expand/collapse button which, when selected, causes the processor to display or hide the answer while the individual query is continuously displayed in the respective display area.
10 . The information processing apparatus according to claim 4 , wherein the processor is configured to present, in each display area,
(i) the individual query corresponding to the respective intention in a way that demonstrates which part of the question corresponds to the respective intention,
(ii) the answer retrieved for the individual query, and
(iii) an expand/collapse button which, when selected, causes the processor to display or hide the answer while the individual query is continuously displayed in the respective display area.
11 . The information processing apparatus according to claim 5 , wherein the processor is configured to present, in each display area,
(i) the individual query corresponding to the respective intention in a way that demonstrates which part of the question corresponds to the respective intention,
(ii) the answer retrieved for the individual query, and
(iii) an expand/collapse button which, when selected, causes the processor to display or hide the answer while the individual query is continuously displayed in the respective display area.
12 . The information processing apparatus according to claim 6 , wherein the processor is configured to present, in each display area,
(i) the individual query corresponding to the respective intention in a way that demonstrates which part of the question corresponds to the respective intention,
(ii) the answer retrieved for the individual query, and
(iii) an expand/collapse button which, when selected, causes the processor to display or hide the answer while the individual query is continuously displayed in the respective display area.
13 . The information processing apparatus according to claim 7 , wherein the processor is configured to present the individual query corresponding to the respective intention and the answer in a way that demonstrates association between each part in the question corresponding to the respective intention and the respective display area where the answer is presented.
14 . The information processing apparatus according to claim 8 , wherein the processor is configured to present the individual query corresponding to the respective intention and the answer in a way that demonstrates association between each part in the question corresponding to the respective intention and the respective display area where the answer is presented.
15 . The information processing apparatus according to claim 9 , wherein the processor is configured to present the individual query corresponding to the respective intention and the answer in a way that demonstrates association between each part in the question corresponding to the respective intention and the respective display area where the answer is presented.
16 . The information processing apparatus according to claim 10 , wherein the processor is configured to present the individual query corresponding to the respective intention and the answer in a way that demonstrates association between each part in the question corresponding to the respective intention and the respective display area where the answer is presented.
17 . The information processing apparatus according to claim 11 , wherein the processor is configured to present the individual query corresponding to the respective intention and the answer in a way that demonstrates association between each part in the question corresponding to the respective intention and the respective display area where the answer is presented.
18 . The information processing apparatus according to claim 12 , wherein the processor is configured to present the individual query corresponding to the respective intention and the answer in a way that demonstrates association between each part in the question corresponding to the respective intention and the respective display area where the answer is presented.
19 . An information processing method comprising:
parsing a question and, based on the parsing, specifying a number of one or more intentions included in the question, the number being a numerical integer value;
generating, from the question, one or more individual queries each corresponding to a respective one of the one or more intentions;
dividing a display region into a number of one or more display areas corresponding to the number of the one or more intentions; and
presenting, in each display area, (i) the individual query corresponding to the respective intention and (ii) an answer retrieved for the individual query.
20 . A non-transitory computer readable medium storing a program causing a computer to execute a process for information processing, the process comprising:
parsing a question and, based on the parsing, specifying a number of one or more intentions included in the question, the number being a numerical integer value;
generating, from the question, one or more individual queries each corresponding to a respective one of the one or more intentions;
dividing a display region into a number of one or more display areas corresponding to the number of the one or more intentions; and
presenting, in each display area, (i) the individual query corresponding to the respective intention and (ii) an answer retrieved for the individual query.