The present invention relates to a conversation-sentence generation device, a conversation-sentence generation method, and a conversation-sentence generation program, and more particularly to a conversation-sentence generation device, a conversation-sentence generation method, and a conversation-sentence generation program for generating a conversation sentence of a virtual agent having a personified conversation with a user.
A human has a desire to communicate with somebody, and gain somebody's sympathy. The communication target in this case is not limited to a certain human, but may be all possible types of targets such as a machine and an animal. Up to the present time, various types of dialogue systems have been proposed as systems capable of realizing interaction between a human and a machine.
Patent Literature 1 is an example of such dialogue systems. According to a dialogue system disclosed in PTL 1, which is a system for realizing a smooth dialogue between a human and a machine, an ego-state estimating unit estimates an ego-state through transactional analysis (for example, Mineyasu SUGITA, “Transactional Analysis”, Nihon Bunka Kagakusya Co., Ltd., 1985), and a dialogue control unit outputs a response text based on the estimated ego-state.
However, these conventional dialogue systems are intended to achieve a predetermined task through dialogues between a human and a machine based on a scenario determined beforehand. In this case, most of dialogues generated by the dialogue systems are uniform, and not intended to be given as free conversations such as chatting between humans.
According to the conventional dialogue systems between a human and a machine, the dialogue control unit determines contents of a request issued from a human, and converses with the human based on a dialogue scenario appropriate for the contents of the request to achieve a predetermined task. Most of dialogues generated in this manner are uniform, and generation of a wide variety of conversation sentences such as conversations between humans, and generation of conversation sentences suited for situations of a user have been both difficult. In case of a conversation between humans, various types of utterance are given even for making a remark having the same intention so as not let a conversation partner get tired of the conversation. In addition, utterance suited for a physical and psychological state of the conversation partner is given during the conversation. Furthermore, the conversation is consistent with contents of previous remarks given in the past and remembered. However, it is difficult for the conventional dialogue systems to realize human-like conversations of this level.
The present invention has been developed to solve the aforementioned problems. The object of the present invention is to provide a conversation-sentence generation device, a conversation-sentence generation method, and a conversation-sentence generation program capable of realizing human-like conversations.
The present invention is directed to a conversation-sentence generation device that generates a conversation sentence of a virtual agent having a personified conversation with a user, including: an input unit that receives, as input information, a conversation sentence given from the user to the agent, and clue information based on which a physical and psychological state of the agent is estimated; an agent state storing unit that stores the physical and psychological state of the agent as an agent state; an agent state estimating unit that estimates a new agent state based on the input information and the agent state; an utterance intention generating unit that generates, based on the input information and the agent state, an utterance intention directed from the agent to the user; a conversation sentence generating unit that generates, based on the input information, the agent state, and the utterance intention, a conversation sentence given from the agent to the user; and an output unit that outputs the conversation sentence generated by the conversation sentence generating unit.
According to the present invention having this configuration, generation of a conversation sentence is divided into three phases: state estimation, utterance intention generation, and conversation sentence generation. The utterance intention generation and the conversation sentence generation are separately handled so that a plurality of conversation sentences can be generated for an identical utterance intention. This method allows generation of a wide variety of conversation sentences. The agent state or the user state is estimated to estimate a physical state or psychological state of the user or agent. This method allows generation of conversation sentences suited for the estimated physical and psychological state. The results of the state estimation are stored in the state storing unit. This method allows generation of conversation sentences consistent with contents of previous remarks with reference to the stored results of the state estimation.
The present invention is directed to a conversation-sentence generation method that generates a conversation sentence of a virtual agent having a personified conversation with a user, including: receiving, as input information, a conversation sentence given from the user to the agent, and clue information based on which a physical and psychological state of the agent is estimated; storing the physical and psychological state of the agent as an agent state; estimating a new agent state based on the input information and the agent state; generating, based on the input information and the agent state, an utterance intention directed from the agent to the user; generating, based on the input information, the agent state, and the utterance intention, a conversation sentence given from the agent to the user; and outputting the generated conversation sentence by the conversation sentence generating unit.
The present invention is directed to a program allowing a computer to execute: a process that receives, as input information, a conversation sentence given from a user to an agent, and clue information based on which a physical and psychological state of the agent is estimated; a process that stores the physical and psychological state of the agent as an agent state; a process that estimates a new agent state based on the input information and the agent state; a process that generates, based on the input information and the agent state, an utterance intention directed from the agent to the user; a conversation sentence generating process that generates, based on the input information, the agent state, and the utterance intention, a conversation sentence given from the agent to the user; and a process that outputs the conversation sentence generated by the conversation sentence generating process.
According to the present invention, conversation sentences realizing human-like conversations are generated.
Exemplary embodiments according to the present invention are hereinafter described with reference to the drawings. The present invention relates to a system which handles a machine or an animal as a personified agent, and realizes a conversation between the machine or animal and a human corresponding to a user.
The input unit 1 receives, as input information, a conversation sentence given from a user to an agent, and clue information based on which a physical and psychological state of the agent is estimated, and transmits the input information to the agent state estimating unit 2.
The input information includes a pair of attribute name and attribute value. The input information may contain the conversation sentence given from the user to the agent without change, or contain only a main point of the conversation sentence extracted based on analysis. For example, when the user transmits an email saying, “(Coming back) late” to the agent, the input information may contain only the main point of “email” as the attribute name, and “late” as the attribute value. In addition, when the agent expresses its own state and starts a conversation, the conversation sentence from the user need not be input. Other examples of the input information include attributes peculiar to the user and the agent, such as nicknames and genders of the user and the agent (hereinafter referred to as user attributes and agent attributes), and dynamic attributes such as time and weather at the time of generation of the conversation sentence (hereinafter referred to as dynamic attributes). Table 1, Table 2, and Table 3 show examples of the input information.
The agent state estimating unit 2 estimates a new agent state based on the input information received from the input unit 1, and an agent state stored in the agent state storing unit 6. The agent state estimating unit 2 stores the estimated agent state in the agent state storing unit 6, and transmits the input information to the utterance intention generating unit 3.
The agent state represents a physical and psychological state of the agent, and is expressed by the pair of attribute name and attribute value similarly to the input information. For example, an “emotion value” representing an emotion of the agent using a numerical value indicates the “emotion value” as a positive value when the agent is happy or having fun. On the other hand, the “emotion value” becomes a negative value when the agent is sad or in pain. In both cases, the intensity of the emotion is defined by the absolute value of each emotion value.
The agent state is estimated based on a state estimation rule. The state estimation rule is constituted by a condition part and a state description part. The state description part describes a physical and psychological state of the agent. The condition part describes a condition set for determining whether or not the agent is in the state described in the state description part based on the input information and the agent state stored in the agent state storing unit 6. When the input information and the agent state match with the condition part, it is estimated that the agent is in the agent state described in the state description part. Table 4 shows an example of the state estimation rule.
The utterance intention generating unit 3 generates an utterance intention directed from the agent to the user based on the input information received from the agent state estimating unit 2 and the agent state, and transmits the generated utterance intention and the input information to the conversation sentence generating unit 4. The utterance intention is defined by a label such as “loneliness expression” and “user comfort”, and a score indicating the intensity of the intention. The utterance intention generating unit 3 generates one or a plurality of utterance intentions per generation of a conversation sentence.
The utterance intention is generated based on an utterance intention generation rule. The utterance intention generation rule is constituted by a condition part and an utterance intention description part. The utterance intention description part describes an utterance intention directed from the agent to the user. The condition part describes a condition set for determining whether or not the agent is in the utterance intention described in the utterance intention description part based on the input information, the agent state and a user state. When the input information and the agent state match with the condition part, the utterance intention described in the utterance intention description part is generated. The score of the utterance intention is the sum of the scores given to the condition part. In case of an utterance intention generated immediately after a state change, it is considered that the intensity of the intention concerning the state after the change is high. In this case, a bonus point may be given to the score of the condition associated with the state after the change to raise the score of the corresponding intention when the utterance intension is generated within a threshold period from the state change.
The conversation sentence generating unit 4 generates a conversation sentence given from the agent to the user based on the input information received from the utterance intention generating unit 3, the agent state, and the utterance intension, and transmits the generated conversation sentence to the output unit 5.
The conversation sentence is generated based on a conversation sentence generation rule. The conversation sentence generation rule is constituted by a condition part and a conversation sentence description part. The conversation sentence description part describes a conversation sentence given from the agent to the user. The condition part describes a condition set for determining whether or not the conversation sentence described in the conversation sentence description part is appropriate for a conversation sentence to be given from the agent to the user based on the input information, the agent state, and the utterance intention. When the input information, the agent state, and the utterance intention match with the condition part, a conversation sentence described in the conversation sentence description part is selected. The conversation sentence may be a sentence without change, or described in template format where values of the user attributes, the agent attributes and the like are contained as variables. In the latter case, the variable parts are converted into values of the user attributes, the agent attributes and the like at the time of generation of the conversation sentence so that a sentence containing the user name and the agent name can be generated.
Generation of a conversation sentence is conducted for each utterance intention so that one sentence can be produced from each utterance intention. When a plurality of conversation sentence generation rules match with one utterance intention, scores are summed for each of the condition parts similarly to the case of intention generation, and the rule having the largest total score is adopted as the conversation sentence generation rule. When a template recently selected is continuously used, the user becomes bored with the same response produced based on the same template. Accordingly, continuous selection of the same rule may be avoided by imposing a penalty on the score of the rule used within a threshold period from the previous use.
The output unit 5 outputs, to the user, the conversation sentence received from the conversation sentence generating unit 4. For example, the output unit 5 edits character colors and sizes of the conversation sentence, and transmits an email containing the conversation sentence, or contributes the conversation sentence to SNS (social networking service). Alternatively, the output unit 5 may present the conversation sentence to the user in voices using a voice synthesizer.
The agent state storing unit 6 stores the agent state estimated by the agent state estimating unit 2 in association with the time of generation. In case of no change in association with state estimation, the agent state storing unit 6 retains the agent state at the time of previous generation of a conversation sentence so as to allow generation of a conversation sentence consistent with the previous conversation sentence.
The user state represents a physical and psychological state of the user. Examples of the user state include a “positive-negative state” having a “positive” attribute value or a “negative” attribute value. The “positive-negative state” expresses a mental state of the user by two values of a “positive” value and a “negative” value based on the contents of an email given from the user or the like.
Operation executed according to the first and second exemplary embodiments is hereinafter described in detail with reference to a flowchart shown in
Then, the agent state estimating unit 2, or an agent state estimating unit 21 and the user state estimating unit 22, estimate a new agent state and a new user state based on the input information received from the input unit 1, and an agent state stored in the agent state storing unit 6, or in an agent state storing unit 61 and the user state storing unit 62, and store the estimated agent state and user state in the agent state storing unit 6, or in the agent state storing unit 61 and the user state storing unit 62 (step A2).
Subsequently, the utterance intention generating unit 3 generates an utterance intention directed from the agent to the user based on the input information, the agent state, and the user state received from the agent state estimating unit 2 (step A3).
Thereafter, the conversation sentence generating unit 4 generates a conversation sentence given from the agent to the user based on the input information, the agent state, and the utterance intention received from the utterance intention generating unit 3 (step A4).
Finally, the output unit 5 outputs the conversation sentence (step A5), and ends processes.
Advantageous effects of the exemplary embodiments are hereinafter described. According to the exemplary embodiments, the utterance intention generating unit generates an utterance intention, and the conversation sentence generating unit generates a conversation sentence corresponding to the generated utterance intention. In this case, variations of conversation sentences to be generated increase when a plurality of conversation sentence generation rules are prepared for one utterance intention. In addition, the agent state estimating unit and the user state estimating unit estimate physical and psychological states of the agent and the user, and generate a conversation sentence in correspondence with the estimation. Accordingly, the conversation thus realized contains an emotion of the agent, or reflects a mental state of the user. Furthermore, the conversation sentence to be generated becomes consistent with contents of previous remarks with reference to results of the state estimation stored in the state storing unit.
Described hereinafter are specific examples of operation according to the best mode for carrying out the present invention. Discussed in these examples is a conversation system which realizes a conversation with a dog kept as a pet and corresponding to the agent.
Discussed herein is generation of a conversation sentence when user attributes, agent attributes, and dynamic attributes shown in Table 11, Table 12, and Table 13 are given as input. Initially, the agent state estimating unit 2 estimates a “situation” of the agent state as “house sitting”, and an “emotion” of the agent state as “lonely” based on input of a dynamic attribute “email=late” with reference to an agent state estimation rule shown in Table 14.
Then, the utterance intention generating unit 3 generates an utterance intension of “loneliness expression” for house sitting with reference to an utterance intention generation rule shown in Table 15, based on the agent state of “emotion=lonely” determined by the agent state estimating unit 2.
Subsequently, the conversation sentence generating unit 4 selects three types of templates shown in Table 16, and generates three types of conversation sentences, with reference to a conversation sentence generation rule shown in Table 16 which indicates a condition match of “utterance intention=loneliness expression” and “situation=house sitting”. In an actual situation, only one conversation sentence is selected, wherefore one of the three conversation sentences is randomly or sequentially generated to realize a wide variety of conversations not boring for the user.
According to this example, three patterns of the conversation sentence generation rule are prepared. However, when the number of the patterns to be prepared increases, the frequency of use of the same template lowers, in which condition variations of conversations further increase.
Discussed herein is generation of a conversation sentence when user attributes, agent attributes, and dynamic attributes shown in Table 21, Table 22, and Table 23 are given as input.
Initially, the agent state estimating unit 2 estimates a “situation” of the agent state as “house sitting”, and an “emotion value” as “−1” based on input of a dynamic attribute “email=late” with reference to an agent state estimation rule shown in Table 24. When the emotion value of the agent state is a “positive value (0 or larger)”, it is determined that the emotion of the agent is medium to good. In this case, the emotion of the agent state is estimated as “lonely”. When the emotion value of the agent state is a “negative value (−1 or smaller)”, it is determined that the emotion of the agent is bad. In this case, the emotion of the agent state is estimated as “hate”.
Then, the utterance intention generating unit 3 generates an utterance intention based on the “emotion” of the agent state with reference to an utterance intention generation rule shown in Table 25. The utterance intention generating unit 3 generates an utterance intention as “loneliness expression” when “emotion=lonely”, and generates an utterance intention as “hate expression” when “emotion=hate”.
Subsequently, the conversation sentence generating unit 4 generates a sentence expressing “lonely feeling” when “loneliness expression”, and a sentence expressing “hate feeling” when “hate expression”, based on definition of templates matching with utterance intentions. With reference to a conversation sentence generation rule shown in Table 26, a sentence “Koro feels lonely at home alone, o(;_;)o boo-hoo!” is generated when “utterance intention=loneliness expression”, or a sentence “I hate house sitting!” is generated when “utterance intention=hate expression”.
According to this example, the conversation sentence to be generated is varied based on the “emotion value” defined as the state of the agent, so that the agent, which is not a human, can converse as if it had human-like emotion.
Discussed herein is generation of a conversation sentence when user attributes, agent attributes, and dynamic attributes shown in Table 31, Table 32, and Table 33 are given as input.
Initially, the agent state estimating unit 21 estimates a situation of the agent state as “house sitting”, and an emotion value as “−1” based on input of a dynamic attribute “email=late” with reference to an agent state estimation rule shown in Table 341. When the emotion value of the agent state is a “positive value (0 or larger)”, it is determined that the emotion of the agent is medium to good. In this case, the emotion of the agent state is estimated as “lonely”. When the emotion value of the agent state is a “negative value (−1 or smaller)”, it is determined that the emotion of the agent is bad. In this case, the emotion of the agent state is estimated as “hate”.
In addition, the user state estimating unit 22 estimates that a mental state of the user is negative based on input of a dynamic attribute “user situation=during overtime work” which indicates the current situation of the user (during overtime work) with reference to a user state estimation rule shown in Table 342. In this case, a positive-negative state of the user state is estimated as “negative”. On the other hand, when the situation of the user is estimated as a positive mental state for the user (such as dating and playing), the positive-negative state of the user state is estimated as “positive”.
Subsequently, the utterance intention generating unit 3 generates an utterance intention based on the emotion of the agent state and the positive-negative state of the user state with reference to an utterance intention generation rule shown in Table 35.
The utterance intention generating unit 3 generates an utterance intention “loneliness expression” when the agent state is “emotion=lonely”, and generates an utterance intention “hate expression” when the agent state is “emotion=hate”. In addition, the utterance intention generating unit 3 generates an utterance intention “user comfort” to comfort the user in a negative mental state when the user state is “positive-negative state=negative”, and generates an utterance intention “user's joy sympathy” to share joy with the user in a positive mental state when the user state is “positive-negative state=positive”.
Thereafter, the conversation sentence generating unit 4 generates a conversation sentence corresponding to each conversation intention with reference to a conversation sentence generation rule shown in Table 36.
For example, the following conversation sentence is generated when there are given “loneliness expression” and “user comfort” as the utterance intention, “situation=house sitting” and “emotion=lonely” as the agent state, and “situation=during overtime work” as the user state.
According to this example, a conversation sentence to be generated is varied based on the definition of the states of the user such as “positive-negative state”, wherefore generation of a conversation sentence expressed in a way expected by the user is allowed.
Discussed herein is generation of a conversation sentence when user attributes, agent attributes, and dynamic attributes shown in Table 41, Table 42, and Table 43 are given as input. This example shows a conversation between a plurality of users and the agent, as well as a one-to-one conversation between the user and the agent.
Initially, the agent state estimating unit 21 and the user state estimating unit 22 generate a situation of the agent state as “waiting for souvenir”, an emotion value as “+1”, and a degree of intimacy of the user state as “+1” based on input of a dynamic attribute as “souvenir=food” from a user P1 with reference to an agent state estimation rule and a user state estimation rule shown in Table 44. When the emotion value of the user state is “threshold or larger (−2 or larger)”, it is determined that the relation between the agent and the user is medium to good. In this case, the emotion of the agent state “very happy” is generated. When the emotion value of the user state is “threshold or smaller (−3 or smaller)”, it is determined that the relation between the agent and the user is bad. In this case, the emotion of the agent state “happy” is generated.
On the other hand, the agent state estimating unit 21 and the user state estimating unit 22 generate a situation of the agent state as “commuting to hospital”, an emotion value as “−2”, and a degree of intimacy of the user state as “−2” based on input of a dynamic attribute “email=going to hospital” given from a user P2. When the emotion value of the user state is “threshold or larger (−2 or larger)”, it is determined that the relationship between the agent and the user is medium to good. In this case, the emotion of the agent state “sad” is generated. When the emotion value of the user state is “threshold or smaller (−3 or smaller)”, it is determined that the relationship between the agent and the user is bad. In this case, the emotion of the agent state “hate” is generated.
Then, the utterance intention generating unit 3 generates an utterance intention based on the agent state and the user state with reference to an utterance intention generation rule shown in Table 45. In case of the user P1, the utterance intention generating unit 3 generates an utterance intention “delight expression” when “emotion=very happy”, and generates an utterance intention “joy expression” when “emotion=happy”. In case of the user P2, the utterance intention generating unit 3 generates an utterance intention “sadness expression” when “emotion=sad”, and generates an utterance intention “hate expression” when “emotion=hate”.
Subsequently, the conversation sentence generating unit 4 generates a conversation sentence corresponding to each conversation intention while considering the degree of intimacy between the user and the agent as conversation targets with reference to a conversation sentence generation rule shown in Table 46.
For example, for a user exhibiting a low degree of intimacy as a result of repetitive negative actions for the agent, the sentence is defined as a stiff and formal response even when a positive dynamic attribute (“souvenir=food”) is given. On the other hand, for a user exhibiting a high degree of intimacy as a result of repetitive positive actions for the agent, the sentence is defined as a response matching with the emotion of the agent, i.e., such a response as to fawn on the user even when a negative dynamic attribute is given, both with a wide variety of templates so as to make responses matching with the emotion of the agent.
As noted above, the degrees of intimacy between the respective users and the agent are defined by numerical values based on emotions of the agent produced through exchanges between the respective users and the agent. The degree of intimacy is raised when a dynamic attribute positive for the agent is given, and lowered when a dynamic attribute negative for the agent is given. These degrees of intimacy are stored and managed for each user. In this case, an emotion of the agent to be produced is variable between a user exhibiting a high degree of intimacy and a user exhibiting a low degree of intimacy even when the same dynamic attribute is given. Accordingly, a response given to each user reflects the degree of intimacy of the corresponding user.
Discussed herein is an example of generation of a conversation sentence when user attributes, agent attributes, dynamic attributes shown in Table 51, Table 52, and Table 53 are given as input. This example shows generation of a conversation consistent with flow of a previous conversation.
It is assumed as a situation that the agent is hungry at a time of input 1, and fully fed at input 2. It is assumed under this situation that input 3 or input 4 is given.
Initially, the agent state estimating unit 21 and the user state estimating unit 22 generate a situation of the agent state as “house sitting”, an emotion value as “−1”, and an emotion as “lonely” based on input of a dynamic attribute “email=late” at input 1.
On the other hand, the agent state estimating unit 21 and the user state estimating unit 22 generate a positive-negative state of the user state as “positive” based on input of a dynamic attribute “user situation=dating”. In addition, the agent state estimating unit 21 and the user state estimating unit 22 generate a physical condition of the agent state as “hungry” based on determination that the agent is hungry as a result of the situation of late return and delay of a meal.
At input 2, the agent state estimating unit 21 and the user state estimating unit 22 generate a situation of the agent state as “after meal”, an emotion value as “+1”, an emotion as “happy”, and a physical condition as “fully fed” based on input of a dynamic attribute “meal=everything eaten”.
At input 3 and input 4, the emotion of the agent state changes to “happy” as a result of input of a dynamic attribute “souvenir=food”. However, no dynamic attribute for changing the physical condition is present, wherefore the state of input 2 “physical condition=fully fed” continues. In this stage, there is no difference between input 3 and input 4.
The utterance intention generating unit 3 determines an utterance intention based on the current agent state and the agent state continuing from the past.
At input 1, the utterance intention generating unit 3 generates “loneliness expression” for house sitting based on the agent state “emotion=lonely”, and “hunger expression” based on “physical condition=hungry”. In addition, the utterance intention generating unit 3 generates “user's joy sympathy” based on the user state “positive-negative state=positive”.
At input 2, the utterance intention generating unit 3 generates “joy expression” based on the agent state “emotion=happy”, and generates “fully fed state expression” based on the agent state “physical condition=fully fed”.
At input 3 and input 4, the utterance intention generating unit 3 generates “joy expression” based on the agent state “emotion=happy”, and generates “fully fed state expression” based on the agent state “physical condition=fully fed”. In this stage, there is still no difference between input 3 and input 4.
The conversation sentence generating unit 4 defines such a conversation sentence generation rule as to touch upon previous contents with reference to history information on a dynamic attribute, an agent state, and a user state at a previous time.
At input 3, a sentence corresponding to the current agent state (fully fed) is generated without referring to history information. However, at input 4, the sentence to be generated is defined as a response consistent with the fact that the agent was “hungry” with reference to history information at a certain previous time designated by a dynamic attribute, as information indicating the agent state (hungry) at the previous time. At input 4, “(input 1)” corresponding to a “history pointer” is given as a dynamic attribute, so that the agent state at the time of input 1 stored in the agent state storing unit 61 can be referred to based on this information. At the time of reference, the “physical condition” of the agent state at the previous time of input 1 is referred to based on such a description as “history: A state −>physical condition”.
Accordingly, generation of a conversation sentence consistent with the past is allowed based on a rule utilizing previous results of state estimation.
The state estimation rule, the utterance intention generation rule, and the conversation sentence generation rule may be stored in a storing unit of the conversation-sentence generation device, for example, or another device to which the conversation-sentence generation device is connectable.
The present invention is applicable to a conversation system, a social media service and the like which personify a non-human target such as an animal and a machine and realize a conversation between a user and the personified target.
The conversation-sentence generation device according to the exemplary embodiment of the present invention described herein may be practiced in the form of an operation program or the like which is stored in a storing unit and read by a CPU (Central Processing Unit) to be executed, or may be constituted in the form of hardware. Alternatively, only a part of the functions discussed in the foregoing exemplary embodiment may be practiced under a computer program.
A part or the whole of the foregoing exemplary embodiment may be described as in the following supplemental notes, but is not limited to these supplemental notes.
A conversation-sentence generation device that generates a conversation sentence of a virtual agent having a personified conversation with a user, including:
an input unit that receives, as input information, a conversation sentence given from the user to the agent, and clue information based on which a physical and psychological state of the agent is estimated;
an agent state storing unit that stores the physical and psychological state of the agent as an agent state;
an agent state estimating unit that estimates a new agent state based on the input information and the agent state;
an utterance intention generating unit that generates, based on the input information and the agent state, an utterance intention directed from the agent to the user;
a conversation sentence generating unit that generates, based on the input information, the agent state, and the utterance intention, a conversation sentence given from the agent to the user; and
an output unit that outputs the conversation sentence generated by the conversation sentence generating unit.
The conversation-sentence generation device according to Supplemental Note 1, wherein
the agent state estimating unit estimates a new agent state based on a state estimation rule that contains a state description part describing the physical and psychological state of the agent, and a condition part describing a condition set for determining whether or not the agent is in the state described in the state description part with reference to the input information and the agent state stored in the agent state storing unit.
The conversation-sentence generation device according to Supplemental Notes 1 or 2, wherein
the utterance intention generating unit generates an utterance intention based on an utterance intention generation rule that contains an utterance intention description part describing an utterance intention directed from the agent to the user, and a condition part that describes a condition set for determining whether or not the agent is in the utterance intention described in the utterance intention description part with reference to the input information and the agent state.
The conversation-sentence generation device according to any one of Supplemental Notes 1 to 3, wherein
the conversation sentence generating unit generates a conversation sentence based on a conversation sentence generation rule that contains a conversation sentence description part describing a conversation sentence given from the agent to the user, and a condition part that describes a condition set for determining whether or not the conversation sentence described in the conversation sentence description part is appropriate for a conversation sentence given from the agent to the user with reference to the input information, the agent state, and the utterance intention.
The conversation-sentence generation device according to Supplemental Note 4, wherein
the conversation sentence generating unit prepares a plurality of conversation sentence generation rules containing descriptions of different conversation sentences for an identical condition, and, so as to generate a different conversation sentence, preferentially selects a conversation sentence not used during an identical conversation where completely the same input information, agent state, and utterance intention are given a plurality of times.
The conversation-sentence generation device according to Supplemental Notes 4 or 5, wherein
the utterance intention generating unit generates an utterance intention based on an utterance intention generation rule that contains a condition including the agent state, and
the conversation sentence generating unit generates a conversation sentence based on a conversation sentence generation rule that contains a condition including the agent state to generate a conversation sentence corresponding to the agent state.
The conversation-sentence generation device according to any one of Supplemental Notes 4 to 6, wherein
the agent state storing unit stores the agent state at a previous time,
the utterance intention generating unit generates an utterance intention based on an utterance intention generation rule that contains a condition including the agent state at the previous time, and
the conversation sentence generating unit generates the conversation sentence based on a conversation sentence generation rule that contains a condition including the agent state at the previous time.
A conversation-sentence generation method that generates a conversation sentence of a virtual agent having a personified conversation with a user, including:
receiving, as input information, a conversation sentence given from the user to the agent, and clue information based on which a physical and psychological state of the agent is estimated;
storing the physical and psychological state of the agent as an agent state;
estimating a new agent state based on the input information and the agent state;
generating, based on the input information and the agent state, an utterance intention directed from the agent to the user;
generating, based on the input information, the agent state, and the utterance intention, a conversation sentence given from the agent to the user; and
outputting the generated conversation sentence.
The conversation-sentence generation method according to Supplemental Note 8, wherein
estimating a new agent state based on a state estimation rule that contains a state description part describing the physical and psychological state of the agent, and a condition part describing a condition set for determining whether or not the agent is in the state described in the state description part with reference to the input information and the agent state stored in the agent state storing unit.
The conversation-sentence generation method according to Supplemental Notes 8 or 9, wherein
generating an utterance intention based on an utterance intention generation rule that contains an utterance intention description part describing an utterance intention directed from the agent to the user, and a condition part that describes a condition set for determining whether or not the agent is in the utterance intention described in the utterance intention description part with reference to the input information and the agent state.
The conversation-sentence generation method according to any one of Supplemental Notes 8 to 10, wherein
generating a conversation sentence based on a conversation sentence generation rule that contains a conversation sentence description part describing a conversation sentence given from the agent to the user, and a condition part that describes a condition set for determining whether or not the conversation sentence described in the conversation sentence description part is appropriate for a conversation sentence given from the agent to the user with reference to the input information, the agent state, and the utterance intention.
The conversation-sentence generation method according to Supplemental Note 11, wherein
preparing a plurality of conversation sentence generation rules containing descriptions of different conversation sentences for an identical condition, and, so as to generate a different conversation sentence, preferentially selecting a conversation sentence not used during an identical conversation where completely the same input information, agent state, and utterance intention are given a plurality of times.
The conversation-sentence generation method according to Supplemental Notes 11 or 12, wherein
generating an utterance intention based on an utterance intention generation rule that contains a condition including the agent state, and
generating a conversation sentence based on a conversation sentence generation rule that contains a condition including the agent state to generate a conversation sentence corresponding to the agent state.
The conversation-sentence generation method according to any one of Supplemental Notes 11 to 13, wherein
storing the agent state at a previous time,
generating an utterance intention based on an utterance intention generation rule that contains a condition including the agent state at the previous time, and
generating the conversation sentence based on a conversation sentence generation rule that contains a condition including the agent state at the previous time.
A program allowing a computer to execute:
a process that receives, as input information, a conversation sentence given from a user to an agent, and clue information based on which a physical and psychological state of the agent is estimated;
a process that stores the physical and psychological state of the agent as an agent state;
an agent state estimating process that estimates a new agent state based on the input information and the agent state;
an utterance intention generating process that generates, based on the input information and the agent state, an utterance intention directed from the agent to the user;
a conversation sentence generating process that generates, based on the input information, the agent state, and the utterance intention, a conversation sentence given from the agent to the user; and
a process that outputs the conversation sentence generated by the conversation sentence generating process.
The program according to Supplemental Note 15, wherein
the agent state estimating process estimates a new agent state based on a state estimation rule that contains a state description part describing the physical and psychological state of the agent, and a condition part describing a condition set for determining whether or not the agent is in the state described in the state description part with reference to the input information and the agent state stored in the agent state storing unit.
The program according to Supplemental Notes 15 or 16, wherein
the utterance intention generating process generates an utterance intention based on an utterance intention generation rule that contains an utterance intention description part describing an utterance intention directed from the agent to the user, and a condition part that describes a condition set for determining whether or not the agent is in the utterance intention described in the utterance intention description part with reference to the input information and the agent state.
The program according to any one of Supplemental Notes 15 to 17, wherein
the conversation sentence generating process generates a conversation sentence based on a conversation sentence generation rule that contains a conversation sentence description part describing a conversation sentence given from the agent to the user, and a condition part that describes a condition set for determining whether or not the conversation sentence described in the conversation sentence description part is appropriate for a conversation sentence given from the agent to the user with reference to the input information, the agent state, and the utterance intention.
The program according to Supplemental Note 18, wherein
the conversation sentence generating process prepares a plurality of conversation sentence generation rules containing descriptions of different conversation sentences for an identical condition, and, so as to generate a different conversation sentence, preferentially selects a conversation sentence not used during an identical conversation where completely the same input information, agent state, and utterance intention are given a plurality of times.
The program according to Supplemental Notes 18 or 19, wherin
the utterance intention generating process generates an utterance intention based on an utterance intention generation rule that contains a condition including the agent state, and
the conversation sentence generating process generates a conversation sentence based on a conversation sentence generation rule that contains a condition including the agent state to generate a conversation sentence corresponding to the agent state.
The program according to any one of Supplemental Notes 18 through 20, including:
the agent state storing process stores the agent state at a previous time,
the utterance intention generating process generates an utterance intention based on an utterance intention generation rule that contains a condition including the agent state at the previous time, and
the conversation sentence generating process generates the conversation sentence based on a conversation sentence generation rule that contains a condition including the agent state at the previous time.
While a preferred exemplary embodiment according to the present invention has been described, the present invention is not necessarily limited to the foregoing exemplary embodiment. Various modifications may be made without departing from the scope of the technical spirit of the present invention.
This application claims priority to Japanese Patent Application No. 2012-246261, filed Nov. 8, 2012, the entirety of which is hereby incorporated by reference.
Number | Date | Country | Kind |
---|---|---|---|
2012-246261 | Nov 2012 | JP | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/JP2013/080138 | 11/7/2013 | WO | 00 |