Program and information processing method
The program and method classify dialogues into summary and small talk, providing domain-specific responses using context analysis and machine learning, improving interaction efficiency.
Patent Information
- Application Number
- JP2024105889
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-09-26
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing dialogue systems struggle to differentiate between dialogues that require clear communication of key points (summary) and those that are informal (small talk), leading to inefficiencies in interactions.
A program and method that classify dialogues into summary and small talk by analyzing audio data, determining context types, and generating appropriate responses using domain-specific models and machine learning.
Enables effective classification and tailored responses for both summary and small talk dialogues, enhancing interaction efficiency and accuracy.
Smart Images

Figure 2024129098000001
Abstract
Description
[Technical field]
[0001] The present invention relates to a program and an information processing method, and more particularly to a technique for allowing an avatar to interact with a human. [Background technology]
[0002] A technology has been proposed in which a humanoid robot identifies the speaker's face and conducts a conversation based on the speaker's profile, and further obtains new information about the user during the conversation, updates the profile based on the obtained information, and uses the information during subsequent interactions (see, for example, Patent Document 1). [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Special Publication No. 2016-536630 Summary of the Invention [Problem to be solved by the invention]
[0004] Conversations between people can be broadly categorized into substantive conversations and small talk. Substantive conversations are mainly used in business negotiations and customer service, where at least one of the parties is typically engaged in a conversation as part of their job, and where there is a clear message to be conveyed, such as a request, question, proposal, or opinion. On the other hand, small talk is conversation that does not have a clear message to be conveyed, such as greetings or small talk, and progresses depending on the situation between the people engaging in the conversation. As described above, conversations based on user profiles are suitable for small talk, but are not necessarily suitable for substantive conversations.
[0005] The present invention has been made in consideration of these points, and has an object to provide a technique for classifying a conversation into main points and small talk. [Means for solving the problem]
[0006] A first aspect of the present invention is a program. This program may cause a computer to realize the following functions: acquiring voice data of an utterance; analyzing the voice data to divide the utterance into context units; determining whether the divided context is a suggestion context or not if the divided context is not a question context; determining whether the divided context is an opinion context or not if the divided context is not a suggestion context; determining whether the agentive subject of the context is second person or not if the divided context is a question context, a suggestion context, or an opinion context; determining whether the objective subject of the context is consistent with a domain included in a predetermined domain in a place or situation where a dialogue is taking place if the agentive subject of the context is not second person or not; determining that the divided context is a gist if the objective subject of the context is consistent with the domain; and determining that the divided context is a chat if the divided context is not an opinion context, the agentive subject of the context is second person, or the objective subject of the context is not consistent with a domain included in a predetermined domain in a place or situation where a dialogue is taking place.
[0007] The program further causes the computer to realize the following functions: when the utterance is classified as a discussion, extracting a question-related context and a request-related context from each of the contexts; classifying each of the extracted question-related contexts and request-related contexts into one of the feature types predetermined for each domain that is the subject of the discussion; generating a response sentence for each of the extracted question-related contexts and request-related contexts based on the classified feature type; and outputting the response sentences for each of the extracted question-related contexts and request-related contexts in sequence.
[0008] The program may further cause the computer to implement a function of determining whether or not information is available to generate a response sentence for a discussion for each of the extracted question context and request context, and a function of generating a response sentence to inquire about the information when it is determined that information for generating a response sentence is insufficient.
[0009] The program may further cause the computer to perform the following functions: when the utterance is classified as casual conversation, obtain a dialogue model generated by machine learning for each speaker of the utterance; generate a response sentence for each context by applying the dialogue model to each of the divided contexts; and output the generated response sentence.
[0010] The program may further cause the computer to perform the following functions: identifying a context related to a topic specific to the speaker of the utterance; generating a response sentence including a question related to the specific topic, the question being intended to elicit information about the speaker; and matching the response sentence including the question with the speaker's answer to the response sentence including the question, and storing the matched response in a memory unit as learning data for the dialogue model.
[0011] A second aspect of the present invention is an information processing method. In this method, a processor executes the steps of acquiring voice data of an utterance, analyzing the voice data to divide the utterance into context units, determining whether the divided context is a suggestion context if the divided context is not a question context, determining whether the divided context is an opinion context if the divided context is not a suggestion context, determining whether the agentive subject of the context is second person if the divided context is a question context, the proposed context, or the opinion context, determining whether the objective subject of the context is consistent with a domain included in a predetermined domain in a place or situation where a dialogue is taking place if the agentive subject of the context is not second person, determining whether the objective subject of the context is consistent with a domain, and determining that the divided context is a chat if the divided context is not an opinion context, the agentive subject of the context is second person, or the objective subject of the context is not consistent with a domain included in a predetermined domain in a place or situation where a dialogue is taking place.
[0012] In order to provide the above-mentioned program or to update a part of the program, a computer-readable recording medium having the program recorded thereon may be provided, or the program may be transmitted over a communication line.
[0013] Any combination of the above components, and any transformation of the present invention into a method, device, system, computer program, data structure, recording medium, etc., are also effective as aspects of the present invention. Effect of the Invention
[0014] According to the present invention, a technique for classifying a conversation into main points and small talk can be provided. [Brief description of the drawings]
[0015] [Figure 1] 1 is a diagram for explaining an overview of a response generating device according to an embodiment of the present invention; [Diagram 2] FIG. 2 is a diagram illustrating a functional configuration of a response generating device according to an embodiment. [Diagram 3] FIG. 2 is a diagram illustrating an internal structure of a response sentence generation unit according to an embodiment. [Figure 4] FIG. 2 is a diagram illustrating an internal configuration of an utterance classification unit according to an embodiment. [Diagram 5] 1 is a diagram illustrating an example of semantic categories classified by a semantic classification unit according to an embodiment in the form of a table. [Figure 6] 11 is a flowchart illustrating a flow of a determination process executed by a determination unit according to the embodiment. [Figure 7] 4 is a diagram showing an internal configuration of a main interview response sentence generation unit according to the embodiment; FIG. [Figure 8] 1 is a diagram showing, in a table format, feature types classified by a feature type classification unit according to an embodiment; [Figure 9] FIG. 2 is a diagram illustrating an internal configuration of a chat response sentence generation unit according to an embodiment. [Figure 10]10 is a flowchart illustrating a flow of information processing executed by a response generating device according to an embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0016] <Outline of the embodiment> 1 is a diagram for explaining an overview of a response generating device 1 according to an embodiment of the present invention. An overview of the implementation of the present invention will be described with reference to FIG.
[0017] The response generation device 1 according to the embodiment of the present invention is an automatic response device incorporated in an avatar A, and is a device for automatically responding to an utterance by a speaker U. The response generation device 1 according to the embodiment analyzes the voice data of the utterance of the speaker U and classifies the utterance into either main talk or small talk. The response generation device 1 according to the embodiment selects a dialogue engine dedicated to each of the main talk mode and small talk mode according to the classification result, and generates a response sentence. In this way, the response generation device 1 according to the embodiment of the present invention can extract the communication items required for main talk and respond to the request of the speaker U. Note that, although FIG. 1 illustrates a case where the response generation device 1 is incorporated in an avatar A, which is a humanoid robot, the response generation device 1 may be used as an automatic response for voice calls such as telephone calls, or as a so-called chatbot.
[0018] <Functional configuration of the response generation device 1 according to the embodiment> FIG. 2 is a diagram showing a schematic functional configuration of a response generation device 1 according to an embodiment. The response generation device 1 includes a storage unit 2 and a control unit 3. In FIG. 2, arrows indicate main data flows, and there may be data flows not shown in FIG. 2. In FIG. 2, each functional block indicates a functional unit configuration, not a hardware (device) unit configuration. Therefore, the functional blocks shown in FIG. 2 may be implemented in a single device, or may be implemented separately in multiple devices. Data may be exchanged between functional blocks via any means, such as a data bus, a network, or a portable storage medium.
[0019] The memory unit 2 is a large-capacity storage device such as a ROM (Read Only Memory) that stores the BIOS (Basic Input Output System) of the computer that realizes the response generation device 1, a RAM (Random Access Memory) that serves as the working area of the response generation device 1, an HDD (Hard Disk Drive) or SSD (Solid State Drive) that stores the OS (Operating System), application programs, and various information referenced when the application programs are executed.
[0020] The control unit 3 is a processor such as a CPU (Central Processing Unit) or GPU (Graphics Processing Unit) of the response generation device 1, and functions as an acquisition unit 30, an utterance classification unit 31, a response sentence generation unit 32, and an output unit 33 by executing programs stored in the memory unit 2.
[0021] 2 shows an example in which the response generation device 1 is configured as a single device. However, the response generation device 1 may be realized by multiple processors, memories, and other computing resources, such as a cloud computing system. In this case, each unit constituting the control unit 3 is realized by at least one of multiple different processors executing a program.
[0022] The acquisition unit 30 acquires voice data of the speech of the speaker U. The voice data is digital data that has been analog-to-digital converted by a device such as a microphone, and is waveform data of the speech.
[0023] The utterance classification unit 31 analyzes the voice data acquired by the acquisition unit 30 and classifies the utterance of the speaker U into either main talk or small talk. When the utterance is classified as main talk, the response sentence generation unit 32 generates a response sentence for main talk to the utterance. When the utterance is classified as small talk, the response sentence generation unit 32 generates a response sentence for small talk to the utterance.
[0024] Fig. 3 is a diagram showing a schematic internal structure of the response sentence generation unit 32 according to the embodiment. As shown in Fig. 3, the response sentence generation unit 32 includes a main conversation response sentence generation unit 320 and a small talk response sentence generation unit 321. When an utterance is classified as a main conversation, the main conversation response sentence generation unit 320 of the response sentence generation unit 32 generates a response sentence for main conversation to the utterance. Similarly, when an utterance is classified as small talk, the small talk response sentence generation unit 321 of the response sentence generation unit 32 generates a response sentence for small talk to the utterance.
[0025] Returning to the explanation of FIG. 2, the output unit 33 outputs the response sentence generated by the response sentence generation unit 32 to the output user interface. When the output user interface is a monitor device, the output unit 33 outputs the response sentence as a character string to the monitor device. When the output user interface is a voice output such as a speaker, the output unit 33 converts the response sentence into voice via a voice synthesis unit (not shown) and outputs it. Note that, when the response generation device 1 is mounted on an avatar A as shown in FIG. 1, the output unit 33 may convert the response sentence into an expression such as a facial expression or sign language and output it in addition to or instead of outputting the converted response sentence as a character string or voice.
[0026] In this way, the response generation device 1 of the embodiment classifies the speaker U's utterance as either business talk or casual conversation, and then generates a response sentence according to the classification, so that it can generate response sentences in response to not only casual conversation but also substantial conversation.
[0027] Fig. 4 is a diagram showing a schematic internal configuration of the utterance classification unit 31 according to the embodiment. The utterance classification unit 31 includes a phrase division unit 310, a semantic classification unit 311, a context division unit 312, an utterance type identification unit 313, and a determination unit 314. A method for classifying a conversation into either main conversation or casual conversation will be described in more detail with reference to Fig. 4.
[0028] The phrase segmentation unit 310 analyzes the voice data acquired by the acquisition unit 30 and segments the speech into phrases. The phrase segmentation unit 310 converts the voice data into text data using a known speech-to-text conversion technique, then breaks down the text data into morphemes using a known morphological analysis technique, and further breaks down the text data into phrases using a known dependency analysis.
[0029] The semantic classification unit 311 classifies each of the phrases divided by the phrase division unit 310 into one of a plurality of semantic categories indicating the meaning of the phrase. FIG. 5 is a diagram showing, in table form, an example of semantic categories classified by the semantic classification unit 311 according to the embodiment. As shown in FIG. 5, a semantic identifier is assigned to each of the plurality of semantic categories and is stored in the storage unit 2. For example, when a phrase divided by the phrase division unit 310 is in the nominative case, such as "I am" or "my puppy", the semantic classification unit 311 classifies the semantic category of the phrase into the nominative case. In this way, the semantic classification unit 311 assigns semantic categories to all the phrases divided by the phrase division unit 310.
[0030] The context division unit 312 divides the utterance into context units based on the semantic category of each phrase. Here, a context refers to a set of semantic associations between phrases that constitute an utterance sentence. As an example, assume that the utterance sentence is "I'd like french fries, a cheeseburger, and hot coffee, please. Oh, not hot coffee, but iced coffee, please." In this case, the final contexts obtained by the context division unit 312 through division are "I (speaker U) would like french fries, please," "I would like a cheeseburger, please," and "I would like iced coffee, please."
[0031] The determination unit 314 determines whether the utterance is classified as a main conversation or a small talk based on the semantic category of the phrases contained in each divided context. The above example of "I'd like some fries, please." is a typical request context, and there is a clear message from the speaker U. Also, since it is a request for fries, it is an utterance that accompanies a sales contract at a hamburger shop. In this case, the determination unit 314 classifies "I'd like some fries, please." as a main conversation.
[0032] 6 is a flowchart for explaining the flow of the determination process executed by the determination unit 314 according to the embodiment. The determination unit 314 first determines whether the divided context is a request context. If the divided context is not a request context (No in S2), the determination unit 314 determines whether the divided context is a question context. If the divided context is not a question context (No in S4), the determination unit 314 determines whether the divided context is a suggestion context.
[0033] If the divided context is not a suggestion context (No in S6), the determination unit 314 judges whether the divided context is an opinion context. If the divided context is not an opinion context (No in S8), the determination unit 314 determines that the divided context is casual conversation (S10).
[0034] If the divided context is a question context (Yes in S4), if the divided context is a suggestion context (Yes in S6), or if the divided context is an opinion context (Yes in S8), the decision unit 314 determines whether the agentive subject of the context is second person or not.
[0035] If the subject of the context is in the second person (Yes in S12), the determination unit 314 determines that the divided context is casual conversation (S10). If the subject of the context is not in the second person (No in S12), the determination unit 314 determines whether the object of the context matches the one included in a predetermined domain of the place or situation where the dialogue is taking place. Here, the "domain" refers to the place or situation where the conversation takes place, and there are various places or situations such as ordering food at a restaurant, conveying a destination in a taxi, receiving a report of a car accident, and negotiating the price of a product.
[0036] If the object case of the context does not match the domain (No in S14), the determination unit 314 determines that the divided context is a chat (S10). If the object case of the context matches the domain (Yes in S14) or the divided context is a request context (Yes in S2), the determination unit 314 determines that the divided context is a main discussion (S16).
[0037] Prior to determining whether the context is a main conversation or a small talk, the utterance type identification unit 313 may identify the utterance type of each context based on the semantic category of the phrases included in each divided context. For example, in the above example of "I would like some french fries," the utterance type is identified as a "request context" because it is a request context uttered by the subject (I) and the target is (french fries). In addition to the request context, the utterance type may include a question context, an answer context, a greeting context, a backchannel context, a suggestion context, and an opinion context. This can improve the accuracy of the determination unit 314 in determining whether the utterance is a main conversation or a small talk. In this way, the utterance classification unit 31 can accurately classify whether the utterance is a main conversation or a small talk by analyzing the meaning of the context included in the utterance and the utterance type.
[0038] The flow of the determination process shown in FIG. 6 is merely an example, and can be changed within the scope of the purpose of the determination process. For example, the determination unit 314 does not necessarily sequentially determine whether the context is a question context, a proposal context, or an opinion context, but may simultaneously perform these determinations, and may simultaneously perform the determinations of whether the subject of the action is in the second person and whether the objective case matches the domain instead of separately performing the determinations. The determination unit 314 may not sequentially determine whether the context is a request context, a question context, a proposal context, or an opinion context, or whether it does not fall under any of these, and may comprehensively determine by combining these determination elements, and further, the determination unit 314 may include other determination elements in the determination, or may replace some of the determination elements with other determination elements.
[0039] Next, the generation of a response sentence in a key discussion will be explained. 7 is a diagram showing a schematic internal configuration of the important interview response sentence generation unit 320 according to the embodiment. The important interview response sentence generation unit 320 includes a context extraction unit 3200, a feature type classification unit 3201, a sentence generation unit 3202, an information determination unit 3203, a notification unit 3204, and a recording unit 3205.
[0040] As described above, a "main conversation" is a conversation in which there is a clear message, such as a request, question, suggestion, or opinion. In particular, requests and questions play a central role in a main conversation, such as making a purchase at a store, taking a taxi, or asking questions or requesting assistance at a customer center. Therefore, in order to respond to a conversation related to a main conversation, the context extraction unit 3200 extracts a context related to a question and a context related to a request from each context.
[0041] The feature type classification unit 3201 classifies each of the extracted question context and request context into one of the predetermined feature types. In particular, the feature type classification unit 3201 may classify the context into a feature type for each domain that is the subject of the discussion.
[0042] Here, the "characteristic type" is a classification of the context of the main conversation into several types in advance in order to generate a response sentence in the main conversation. Although there are various contexts of the utterance of the speaker U, since there is a clear message in the main conversation, the utterance pattern of the speaker U can be determined by identifying the domain in which the utterance is intended (for example, the business in which the utterance is performed).
[0043] FIG. 8 is a diagram showing, in a table format, feature types classified by the feature type classification unit 3201 according to the embodiment. As shown in FIG. 8, the feature type classification unit 3201 classifies a context into feature types consisting of five items. A type identifier is assigned to each item. For example, assume that the context extracted by the context extraction unit 3200 from an utterance by a speaker U made in a domain selling home appliances, etc., is "Which is the cheapest product?" In this case, the feature type classification unit 3201 sets the feature type type to "single item explanation" which expects an answer to a question about a single item, the 7W3H1Y constant to "How" which means the degree, the constant classification element to "price", the positive / negative to "positive", and the individual characteristic element to "cheapest".
[0044] The sentence generator 3202 generates a response sentence based on the classified feature type for each of the extracted question context and request context. In the above example, the sentence generator 3202 generates a response sentence describing the product name and unit price of the cheapest product among all products in the domain selling home appliances, etc. The output unit 33 outputs the response sentences for the extracted question context and request context in order. In this way, the main discussion response generator 320 generates a response sentence according to the feature type of the main discussion context, and therefore can generate a response sentence appropriate to the main discussion.
[0045] As described above, a "main conversation" is a dialogue in which there are clear matters to be communicated, such as requests, questions, proposals, opinions, etc. Therefore, the main conversation response sentence generation unit 320 can generate a response sentence only after grasping all of the matters to be communicated by the speaker U. This means that the main conversation response sentence generation unit 320 needs to draw out matters to be communicated from the speaker U until it has grasped all of the matters to be communicated by the speaker U.
[0046] Therefore, the information determination unit 3203 determines whether or not there is enough information to generate a response sentence for each of the extracted question context and request context. For example, assume that one of the contexts extracted by the context extraction unit 3200 from an utterance by a speaker U in a fast food retail domain is "Can I have some french fries, please?" In this case, the constant classification element is "size", but the individual characteristic element (either S, M, or L indicating the size) is unknown. In this case, the information determination unit 3203 determines that there is insufficient information to generate a response sentence.
[0047] When it is determined that information for generating a response sentence is insufficient, the sentence generator 3202 generates a response sentence for inquiring about the information. In the above example, the sentence generator 3202 generates a response sentence for inquiring about the size of French fries. This allows the response generation device 1 to create a response sentence for eliciting all of the matters to be communicated by the speaker U in the discussion.
[0048] As described above, since there are clear points to be communicated in a conversation, if the domain in which the speech is expected is specified, the speech pattern of the speaker U can be determined, and the administrator of the response generation device 1 can prepare the feature types in advance. However, it is not always possible to prepare all patterns in advance, and it cannot be denied that there is a possibility that a pattern that cannot be classified will occur in a conversation with the speaker U.
[0049] Therefore, when the feature type classification unit 3201 determines that the context cannot be classified into any of the feature types, the notification unit 3204 notifies the operator who will take over the conversation with the speaker U of the utterance. The recording unit 3205 links the operator's utterance and the speaker U's response to the utterance with the context and records them in the storage unit 2. This allows the response generation device 1 to complete the conversation with the speaker U by complementing the operator's utterance, and also to update the feature type based on the operator's utterance and the speaker U's response to the utterance, making it possible to complete a conversation with the speaker U without relying on the operator's utterance in future dialogues of similar content.
[0050] In a main negotiation, the speaker U has a clear message to convey, so it can be said that the ultimate goal of the response generation device 1 is to draw out the message from the speaker U and obtain confirmation from the speaker U. Therefore, the sentence generation unit 3202 of the main negotiation response sentence generation unit 320 creates a response sentence to repeat the request made by the speaker U in the utterance after the control unit 3 finishes outputting a response sentence for the main negotiation. By the control unit 3 outputting this response sentence, the response generation device 1 can confirm with the speaker U the message to be conveyed by the speaker U.
[0051] The generation of a response sentence in a main conversation has been described above. Next, the generation of a response sentence in a casual conversation will be described with reference to FIG.
[0052] 9 is a diagram showing a schematic internal configuration of the chat response sentence generation unit 321 according to the embodiment. The chat response sentence generation unit 321 includes a speaker identification unit 3210, a model acquisition unit 3211, a sentence generation unit 3212, a context identification unit 3213, a question sentence generation unit 3214, and a learning data storage unit 3215.
[0053] Unlike a conversation, a chat is a conversation that does not have clear items to communicate such as greetings and small talk, as in a business conversation, and progresses depending on the situation between the people having the conversation. Therefore, since the content of the conversation is often related to the hobbies and preferences of the speaker U, it is useful for the response generation device 1 to identify the speaker U in order to respond to the chat.
[0054] Therefore, the speaker identification unit 3210 identifies the speaker U based on the semantic category of the phrase included in each context divided by the context division unit 312 in the utterance classification unit 31. For example, when the nominative case of the semantic category included in the phrase is "I" and a proper noun of a person appears after the nominative case, the speaker identification unit 3210 infers that the speaker U is the person of that proper noun. As another example, when the nominative case of the semantic category included in the phrase is "my address" and a place name appears after the nominative case, the speaker identification unit 3210 infers that the speaker U is a person who lives in the place with the same place name.
[0055] The model acquisition unit 3211 reads out and acquires a dialogue model generated by machine learning for each speaker U identified by the speaker identification unit 3210 from the storage unit 2. The storage unit 2 stores a chat dialogue model specific to each of the multiple speakers U in advance for each of the multiple speakers U. Although details are omitted because this is a known technology, the chat dialogue model may be created by, for example, creating a general dialogue model common to all speakers U using a machine learning method such as BERT (Bidirectional Encoder Representations from Transformers), and creating a chat dialogue model specific to each speaker U in advance by fine tuning using a Transformer. The general dialogue model may be created by machine learning using information such as news on the Internet, various SNSs (Social Networking Services), and online encyclopedias.
[0056] The sentence generation unit 3212 generates a response sentence for each context by applying the dialogue model acquired by the model acquisition unit 3211 to each divided context. In this way, by preparing a dialogue model for each speaker U, the response generation device 1 can create a response sentence based on information that is closed to each individual speaker U.
[0057] Here, unlike the feature patterns in a conversation, it may be difficult to prepare information in advance that is closed to the individual speaker U. Therefore, it is practical for the response generation device 1 to collect and learn topics specific to the speaker U during the conversation with the speaker U.
[0058] Therefore, the context identification unit 3213 identifies a context related to a topic specific to the speaker based on the semantic category of the phrases included in each divided context. For example, assume that the context extracted by the context extraction unit 3200 from the utterance of speaker U is "My favorite animal is a cat." Since the subject of this context is "I," i.e., the speaker U, and the action is "like," the context identification unit 3213 determines that the context indicates the speaker U's personal preference.
[0059] In addition, in a chat with the speaker U, the response generating device 1 may actively collect information specific to the speaker U. For this reason, the question generating unit 3214 generates a response including a question related to a topic specific to the speaker U and for extracting information about the speaker U. For example, in relation to the above-mentioned context of "My favorite animal is a cat," the question generating unit 3214 generates questions such as "What is your favorite food?", "Where would you like to go if you were going on a trip?", "What kind of vehicle do you like?", and "Who would you go with if you were going on a trip?" as questions related to the preferences of the speaker U. Furthermore, if the speaker U responds to the question "Who would you go with if you were going on a trip?" with "I would like to go with my family," the question generating unit 3214 may further generate questions related to a topic specific to the speaker U, such as "What is your family structure like?" and "What are children good at?".
[0060] The learning data storage unit 3215 associates the response sentence including the question generated by the question sentence generation unit 3214 with the speaker U's answer to the response sentence including the question, and stores the correspondence between the response sentence and the answer as learning data for the dialogue model in the storage unit 2. This allows, for example, the response generation device 1 to accumulate learning data for re-learning the chat dialogue model specific to the speaker U. For example, the administrator of the response generation device 1 can update the chat dialogue model specific to the speaker U by re-learning using information on the speaker U's past answers to response sentences including questions related to topics specific to the speaker U.
[0061] <Processing flow of the information processing method executed by the response generation device 1> 10 is a flowchart for explaining the flow of information processing executed by the response generation device 1 according to the embodiment. The processing in this flowchart starts, for example, when the response generation device 1 is started.
[0062] The acquisition unit 30 acquires voice data of an utterance by a speaker U (S22). The utterance classification unit 31 analyzes the voice data acquired by the acquisition unit 30 and classifies the utterance into either main points or casual conversation (S24).
[0063] If the utterance is classified as a main conversation (Yes in S26), the response sentence generation unit 32 generates a response sentence for main conversation to the utterance (S28). If the utterance is classified as a chat (No in S26), the response sentence generation unit 32 generates a response sentence for chat to the utterance (S30). The output unit 33 outputs the response sentence generated by the response sentence generation unit 32 (S32).
[0064] <Effects of the response generation device 1 according to the embodiment> As described above, the response generation device 1 according to the embodiment can provide a technique for classifying a conversation into main points and small talk.
[0065] Although the present invention has been described above using the embodiments, the technical scope of the present invention is not limited to the scope described in the above embodiments, and various modifications and changes are possible within the scope of the gist of the present invention. For example, all or part of the device can be configured by distributing or integrating functionally or physically in any unit. In addition, new embodiments resulting from any combination of multiple embodiments are also included in the embodiments of the present invention. The effect of the new embodiment resulting from the combination also has the effect of the original embodiment. [Explanation of symbols]
[0066] 1. Response generation device 2...Storage section 3. Control section 30...Acquisition part 31. Speech Classification Unit 310... Phrase division section 311...Semantic classification section 312...Context division part 313... Speech type identification unit 314...Decision section 32 Response sentence generation unit 320....Question response sentence generation unit 3200...Context extraction part 3201 Feature Classification Unit 3202...Sentence generation section 3203...Information judgment section 3204...Notification Department 3205 Recording section 321: Chat response generation unit 3210 Speaker identification unit 3211...Model Acquisition Unit 3212...Sentence generation section 3213...Context identification part 3214...Question generation section 3215: Learning data storage unit 33 Output section
Claims
1. On the computer, A function for acquiring speech data; analyzing the speech data to divide the speech into contextual units; If the segmented context is not a question context, determining whether the segmented context is a suggestion context; If the segmented context is not a suggestion context, determining whether the segmented context is an opinion context; determining whether the agentive subject of the context is second person or not when the segmented context is a question context, a suggestion context, or an opinion context; If the subject of the context is not second person, determining whether the object of the context matches a predefined domain of the place or situation in which the dialogue is taking place; a function for determining that the segmented context is a gist if the object case of the context matches the domain; determining that the segmented context is small talk if the segmented context is not an opinion context, the subject of the context is in the second person, or the object of the context does not match that contained in a predefined domain of the setting or occasion in which the dialogue is taking place; A program to achieve this.
2. The computer includes: If the utterance is classified as a key point, A function of extracting a question-related context and a request-related context from each of the contexts; A function of classifying each of the extracted question contexts and request contexts into one of the feature types predefined for each domain of the subject of the discussion; A function of generating a response sentence based on the classified feature type for each of the extracted question context and request context; A function for sequentially outputting response sentences for each of the extracted question context and request context; The program according to claim 1 , further comprising:
3. The computer includes: A function for determining whether or not information required for generating a response sentence for a key question is available for each of the extracted question context and request context; a function for generating a response sentence for inquiring about the information when it is determined that the information for generating the response sentence is insufficient; The program according to claim 1 or 2, further comprising:
4. The computer includes: If the utterance is classified as chatter, A function of acquiring a dialogue model generated by machine learning for each speaker of the utterance; A function of generating a response sentence for each of the divided contexts by applying the dialogue model to each of the divided contexts; A function for outputting the generated response sentence; The program according to any one of claims 1 to 3, further comprising:
5. The computer includes: identifying a topical context specific to a speaker of the utterance; and A function of generating a response sentence including a question related to the specific topic for eliciting information about the speaker; a function of associating a response sentence including the question with a response from the speaker to the response sentence including the question, and storing the associated response sentence as learning data for the dialogue model in a storage unit; The program according to claim 4, further comprising:
6. The processor: acquiring speech data; analyzing the speech data to segment the utterance into contextual units; if the segmented context is not a question context, determining whether the segmented context is a suggestion context; if the segmented context is not a suggestion context, determining whether the segmented context is an opinion context; if the segmented context is a question context, if the segmented context is a suggestion context, or if the segmented context is an opinion context, determining whether the agentive subject of the context is second person; if the subject of the context is not second person, determining whether the object of the context matches one included in a predefined domain of the setting or situation in which the dialogue is taking place; determining that the segmented context is a gist if the object case of the context matches the domain; determining that the segmented context is small talk if the segmented context is not an opinion context, the subject of the context is in the second person, or the object of the context does not match that included in a predefined domain of the setting or occasion in which the dialogue is taking place; An information processing method for performing the above.
Citation Information
Patent Citations
Voice interaction system
JP2002024212A
Voice dialog device and voice dialog method
JP2018097201A
Utterance intention determination device, utterance intention determination method, and program
JP2019114141A
Information processing apparatus, information processing method, information processing system, and program
JP2020113938A
Interaction device and interaction method
JP2020118842A
Cited By
Automatic response device and program
JP2026125730A
Inquiry response system, information processing device, inquiry response method, and program
JP2026182043A
Automated response devices and programs
JP7809228B1
