Analysis device, analysis method, and analysis program

The analysis device uses machine learning to infer sentence types and relationships within dialogue documents, addressing the challenge of text segmentation by focusing on utterance contexts rather than linking words, resulting in improved dialogue text analysis.

WO2024201824A1PCT designated stage expired Publication Date: 2024-10-03NT T INC
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2023/012927
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-29
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

Current computer processing technologies face difficulties in accurately performing text segmentation in dialogue documents, as they struggle to recognize discourse breaks using linking words, leading to incomplete analysis of dialogue texts.

Method used

An analysis device and method that utilize machine learning to infer sentence types and relationships between utterances and their contexts, focusing on the preceding and subsequent utterance groups in dialogue documents, rather than relying on linking words, to improve text segmentation and discourse structure analysis.

Benefits of technology

This approach enables more accurate analysis of dialogue documents by identifying various attributes and relationships between utterances, enhancing the overall analysis technology for dialogue texts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2023012927_03102024_PF_FP_ABST
    Figure JP2023012927_03102024_PF_FP_ABST
Patent Text Reader

Abstract

An analysis device 1 for analyzing a dialogue document including a dialogue between two persons, the analysis device 1 comprising: a first processing unit 11 for machine-learning a plurality of pieces of learning data obtained by combining an utterance sentence and a sentence type of the utterance sentence, and inferring the sentence type of an utterance sentence included in the dialogue document by using a learning model produced through the machine learning; a second processing unit 12 for machine-learning a plurality of pieces of learning data obtained by combining an utterance sentence to which information indicating a relationship with utterance context of an utterance group in a preceding stage is added and the utterance context of the utterance group in the preceding stage, and inferring, with regard to an utterance sentence from a prescribed speaker included in the dialogue document, a relationship of the utterance sentence with utterance context of a partner speaker of the utterance group in the preceding stage, by using a learning model produced through the machine learning; and a third processing unit 13 for machine-learning a plurality of pieces of learning data obtained by combining an utterance sentence to which information indicating a relationship with utterance context of an utterance group in a following stage is added and the utterance context of the utterance group in the following stage, and inferring, with regard to the utterance sentence from the prescribed speaker included in the dialogue document, a relationship of the utterance sentence with the utterance context of the partner speaker of the utterance group in the following stage, by using a learning model produced through the machine learning.
Need to check novelty before this filing date? Find Prior Art

Description

Analysis device, analysis method, and analysis program

[0001] The present disclosure relates to an analysis device, an analysis method, and an analysis program.

[0002] In order for a computer to process the contents of a document, it is important not only to follow the direct meaning expressed by the literal meaning of each sentence in order, but also to recognize parts that have coherent meanings and analyze and understand the relationships between those parts (relationships that are not directly apparent in the literal meaning).

[0003] An example of such a technology is discourse structure analysis, which defines the parts of a document that represent specific chunks of meaning as "discourse" and analyzes the document based on this discourse (Non-Patent Document 1, Non-Patent Document 2, pp. 95-105).

[0004] Sadao Kurohashi and 1 other author, "Introduction to Natural Language Processing," Science Publishing Co., Ltd., first edition published on October 10, 2016, pp. 83-87. Manabu Okumura, "Fundamentals of Natural Language Processing," Corona Publishing Co., Ltd., first edition published on October 28, 2010, pp. 95-105.

[0005] Discourse structure analysis can be used not only for analyzing dialogue texts but also for document analysis in general, and is also used when analyzing dialogue documents that contain dialogue texts.

[0006] In discourse structure analysis, the technology of recognizing discourse breaks through computer processing is called text segmentation (pp. 102-104 of Non-Patent Document 2). One specific method of performing text segmentation is to use indices (connecting words) that superficially represent the connections between sentences.

[0007] However, the technology for recognizing discourse breaks using connecting words is still in the research stage, making it difficult to perform completely accurate text segmentation of dialogue documents using computer processing.

[0008] The present disclosure has been made in consideration of the above circumstances, and an object of the present disclosure is to provide a technique useful for analyzing dialogue documents.

[0009] An analysis device according to one aspect of the present disclosure is an analysis device that analyzes a dialogue document including a dialogue between two people, and includes: a first processing unit that performs machine learning on a plurality of training data combining utterance sentences and sentence types of the utterance sentences, and infers the sentence types of the utterance sentences included in the dialogue document using a learning model based on machine learning; a second processing unit that performs machine learning on a plurality of training data combining utterance sentences to which information indicating a relationship between the utterance sentences and the speech contexts of a preceding utterance group is attached, and infers, for a sentence of a predetermined speaker included in the dialogue document, the relationship of the utterance sentence to the speech context of a partner speaker of the preceding utterance group using the learning model based on machine learning; and a third processing unit that performs machine learning on a plurality of training data combining an utterance sentence to which information indicating a relationship between the utterance sentences and the speech contexts of a following utterance group is attached, and infers, for a sentence of an utterance of a predetermined speaker included in the dialogue document, the relationship of the utterance sentence to the speech context of a partner speaker of the following utterance group using the learning model based on machine learning.

[0010] In one aspect of the analysis method of the present disclosure, an analysis device performs first machine learning to learn a plurality of training data combining utterance sentences and sentence types of the utterance sentences, performs second machine learning to learn a plurality of training data combining utterance sentences to which information indicating a relationship with the speech context of a preceding utterance group is attached and the speech context of the preceding utterance group, performs third machine learning to learn a plurality of training data combining utterance sentences to which information indicating a relationship with the speech context of a subsequent utterance group is attached and the utterance context of the subsequent utterance group, infers the sentence types of the utterance sentences included in the dialogue document using the learning model based on the first machine learning, infers the relationship of an utterance sentence by a predetermined speaker included in the dialogue document to the speech context of the other speaker in the preceding utterance group using the learning model based on the second machine learning, and infers the relationship of an utterance sentence by a predetermined speaker included in the dialogue document to the speech context of the other speaker in the following utterance group using the learning model based on the third machine learning.

[0011] An analysis program according to one aspect of the present disclosure causes a computer to function as the analysis device.

[0012] According to the present disclosure, a technique useful for analyzing dialogue documents can be provided.

[0013] FIG. 1 is a diagram showing a functional block configuration of an analysis device according to this embodiment. FIG. 2 is a diagram showing an overview of a proposed processing model. FIG. 3 is a diagram showing a definition of a relationship between an utterance sentence and an earlier context or a later context. FIG. 4 is a diagram showing the structure of text data for sentence-type tag training. FIG. 5 is a diagram showing the structure of text data for training the relationship between an earlier context and a later context. FIG. 6 is a diagram showing the structure of text data for training the relationship between an earlier context and a later context. FIG. 7 is a flowchart showing the flow of the learning phase. FIG. 8 is a flowchart showing the flow of vectorization processing of text data for sentence-type tag training. FIG. 9 is a diagram showing the structure of vector data for sentence-type tag training. FIG. 10 is a flowchart showing the flow of vectorization processing of text data for training the relationship between an earlier context and a later context. FIG. 11 is a diagram showing the structure of vector data for training the relationship between an earlier context and a later context. FIG. 12 is a flowchart showing the flow of vectorization processing of text data for training the relationship between an earlier context and a later context. FIG. 13 is a diagram showing the structure of vector data for training the relationship between an earlier context and a later context. FIG. 14 is a flowchart showing the flow of sentence-type tag training. FIG. 15 is a flowchart showing the flow of learning the relationship between an earlier context and a later context. FIG. 16 is a flowchart showing the flow of learning the relationship between an earlier context and a later context. FIG. 17 is a flowchart showing the flow of the inference phase. FIG. 18 is a diagram showing the structure of dialogue document text data. FIG. 19 is a flowchart showing the flow of vectorization processing of dialogue document text data. FIG. 20 is a diagram showing the structure of sentence vector data. FIG. 21 is a diagram showing the structure of paragraph vector data. FIG. 22 is a flowchart showing the flow of inferring processing of sentence type tags. FIG. 23 is a diagram showing the structure of sentence vector data after inferring sentence type tags. FIG. 24 is a flowchart showing the flow of inferring processing of relationships with preceding contexts. FIG. 25 is a flowchart showing the flow of inferring processing of relationships with following contexts. FIG. 26 is a diagram showing the structure of sentence vector data after inferring relationships with preceding contexts and following contexts. FIG. 27 is a diagram showing the hardware configuration of an analysis device.

[0014] Hereinafter, embodiments of the present disclosure will be described with reference to the drawings. In the description of the drawings, the same parts are designated by the same reference numerals and the description thereof will be omitted.

[0015] [Summary of the Disclosure] The present disclosure relates to a computer-based natural language analysis technology. Specifically, the present disclosure relates to a technology for automatically identifying various attributes of dialogues recorded in a dialogue document and classifying the relationships between dialogues.

[0016] As mentioned above, it is difficult to perform completely accurate text segmentation of dialogue documents using computer processing, i.e., it is difficult to correctly recognize discourse breaks using connecting words.

[0017] Therefore, the present disclosure does not recognize discourse breaks using connecting words, but analyzes the relationship between a single utterance sentence by a given speaker and the surrounding speech context of the other speaker. Information indicating the relationship between a single utterance sentence and the surrounding speech context obtained through this analysis is useful for analyzing the entire dialogue, and can contribute to improving dialogue document analysis techniques.

[0018] 1 is a diagram showing the functional block configuration of an analysis device 1 according to this embodiment. The analysis device 1 is an analysis device that analyzes a dialogue document in which a dialogue is recorded. The analysis device 1 includes a first processing unit 11 that learns and infers the sentence type of a dialogue sentence recorded in the dialogue document, a second processing unit 12 that learns and infers the relationship between the dialogue sentence and a preceding context, a third processing unit 13 that learns and infers the relationship between the dialogue sentence and a following context, a fourth processing unit 14 that executes any processing, and a storage unit 15 that stores various data.

[0019] 2 shows an image of a dialogue document in which dialogue sentences are recorded, and an overview of the processing model proposed by the present disclosure based on the dialogue sentences. This disclosure is limited to a dialogue between two people, and is premised on a series of utterances consisting of multiple utterances, each of which is recorded in a single paragraph.

[0020] A sentence uttered by a certain speaker (speaker B) has a meaning determined by its literal meaning, as well as attributes determined by its relationship with the context of the previous paragraph by the other speaker (speaker A) and attributes determined by its relationship with the context of the next paragraph by the same other speaker (speaker A). In this disclosure, these attributes are analyzed.

[0021] An example of such an attribute is shown in Figure 3. Figure 3 is a diagram showing the definitions of the relationship between an utterance sentence and a preceding context and the relationship between an utterance sentence and a following context.

[0022] "Tag 1" in the figure is a tag that indicates the type of each utterance sentence itself, such as a question sentence, a request sentence, or an assertion sentence, and is a sentence type tag that is determined by the utterance sentence alone.

[0023] "Tag 2" in the figure is an attribute of the sentence spoken by a speaker (speaker B) that is determined by the overall context of the speech of the previous paragraph by the other speaker (speaker A). For example, if the value of tag 1 is "question," it represents an attribute that describes the intention behind a question posed by a certain speaker in relation to the context of the previous paragraph by the other speaker. For example, tag 2 has attributes such as "dissatisfaction, hesitation, request for exemption," which expresses dissatisfaction, and "rebuttal question," which asks a question in opposition to the other speaker's argument.

[0024] "Tag 3" in the figure is an attribute of the sentence spoken by a speaker (speaker B) that is determined by the context of the entire utterance of the following paragraph by the other speaker (speaker A). For example, if the value of tag 1 is "question," tag 3 represents an attribute such as the other speaker's reaction to a question asked by a certain speaker. For example, tag 3 has attributes such as "question with a positive answer" and "question with a negative answer," which are affirmative responses to the question.

[0025] The analysis device 1 uses machine learning (deep learning) technology to analyze each of the values ​​of tags 1 to 3. However, any machine learning method may be used. Furthermore, the present disclosure does not specify a specific machine learning method.

[0026] The first processing unit 11 has a function of learning, using a predetermined machine learning method, a plurality of learning data that combines each utterance sentence with a sentence-type tag (tag 1) for each utterance sentence, and inferring the sentence-type tag (tag 1) for each utterance sentence included in the dialogue document using the learning model acquired as a result.

[0027] The second processing unit 12 uses a predetermined machine learning method to learn a plurality of training data that combines one utterance sentence of a certain speaker (an utterance sentence that has been assigned tag 1 indicating the sentence type of the utterance sentence and tag 2 indicating the relationship with the utterance context of the preceding utterance group) with the utterance context of the preceding utterance group of the other speaker, and has the function of inferring, using the resulting learning model, an attribute tag (tag 2) that indicates the relationship between the utterance sentence of the certain speaker included in the dialogue document and the utterance context of the preceding utterance group of the other speaker.

[0028] The third processing unit 13 uses a predetermined machine learning method to learn multiple pieces of training data that combine one utterance sentence of a certain speaker (an utterance sentence that has been assigned tag 1 indicating the sentence type of the utterance sentence and tag 3 indicating the relationship with the utterance context of the subsequent utterance group) with the utterance context of the subsequent utterance group of the other speaker, and has the function of inferring, using the resulting learning model, an attribute tag (tag 3) that indicates the relationship between the utterance sentence and the utterance context of the subsequent utterance group of the other speaker for the utterance sentence of the certain speaker included in the dialogue document.

[0029] 4 is a diagram showing the structure of text data (text data for sentence-type tag learning) for learning sentence-type tags by the first processing unit 11. Examples of pairs of individual utterance sentences and their sentence types (values ​​of tag 1) are listed.

[0030] 5 is a diagram showing the structure of text data (text data for learning relationships with preceding contexts) for the second processing unit 12 to learn the relationship (value of tag 2) between a sentence and a group of utterances in the paragraph immediately preceding the sentence by the other speaker. Pairs of a single sentence assigned the values ​​of tag 1 and tag 2 and a group of utterances in the paragraph immediately preceding the sentence by the other speaker are listed as learning pairs.

[0031] 6 is a diagram showing the structure of text data (text data for learning relationships with subsequent contexts) for the third processing unit 13 to learn the relationship (value of tag 3) between a sentence and a group of utterances in the paragraph immediately following the sentence by the other speaker. Pairs of a single sentence assigned the values ​​of tag 1 and tag 3 and a group of utterances in the paragraph immediately following the sentence by the other speaker are listed as learning pairs.

[0032] [Operation of the Analysis Device] Fig. 7 is a flowchart showing the process of digitizing (vectorizing) each of the training data shown in Figs. 4 to 6 for machine learning and the flow of each training process. The process consists of a vectorization process for each training text data (steps S1 to S3) and each training process (steps S4 to S6).

[0033] The fourth processing unit 14 vectorizes the sentence-type tag learning text data shown in FIG. 4 (step S1).

[0034] The fourth processing unit 14 vectorizes the text data for learning the relationship with the preceding context shown in FIG. 5 (step S2).

[0035] The fourth processing unit 14 vectorizes the text data for learning the relationship with the subsequent context shown in FIG. 6 (step S3).

[0036] The first processing unit 11 uses the sentence-type tag learning vector data to learn combinations of sentences and the values ​​of tag 1 of the sentences (step S4).

[0037] The second processing unit 12 uses the vector data for learning the relationship with the preceding context to learn the combination of a certain sentence and the relationship (value of tag 2) with the preceding context of the sentence (step S5).

[0038] The third processing unit 13 uses the vector data for learning the relationship with the subsequent context to learn the combination of a certain sentence and the relationship (value of tag 3) with the subsequent context of the sentence (step S6).

[0039] 8 is a flowchart showing the details of step S1 in FIG. 7, i.e., the flow of the vectorization process of text data for sentence-type tag learning. As long as sentence data exists, the sentence data is vectorized and the tags are digitized, and these are stored in the vector data for sentence-type tag learning. However, this disclosure does not specify the specific method for vectorizing text data or the specific method for digitizing sentence-type tags.

[0040] The fourth processing unit 14 reads out the sentence-type tag learning text data shown in FIG. 4 from the storage unit 15 (step S1-1).

[0041] The fourth processing unit 14 sets n to 1 (step S1-2). n represents the nth sentence data, and is expressed as sentence n.

[0042] The fourth processing unit 14 determines whether sentence n exists in the sentence-type tag learning text data (step S1-3). If sentence n exists in the sentence-type tag learning text data, steps S1-4 to S1-7 are executed. If sentence n does not exist in the sentence-type tag learning text data, the processing ends.

[0043] The fourth processing unit 14 vectorizes the sentence n (step S1-4).

[0044] The fourth processing unit 14 digitizes the sentence type tag (tag 1) of the sentence n (step S1-5).

[0045] The fourth processing unit 14 stores the sentence vector of sentence n and the digitized sentence-type tag (tag 1) of sentence n in the sentence-type tag learning vector data (step S1-6).

[0046] The fourth processing unit 14 increments n by n+1, and the process returns to step S1-3 (step S1-7).

[0047] FIG. 9 shows the structure of the sentence type tag learning vector data generated as a result of the processing in FIG.

[0048] 10 is a flowchart showing the details of step S2 in FIG. 7, i.e., the flow of the vectorization process of text data for relationship training with preceding context. As long as there are learning pairs between preceding contexts and sentences, the sentence data is vectorized and the tags are digitized, and these are stored in the vector data for relationship training with preceding contexts.

[0049] In this embodiment, an example is shown in which sentences in the preceding context are combined into one vector for vectorization, but methods that can be applied in implementing the present disclosure are not limited to this.Furthermore, the present disclosure does not specify a vectorization method.

[0050] The fourth processing unit 14 reads out the text data for learning the relationship between the preceding context and the sentence, shown in FIG. 5, from the storage unit 15 (step S2-1).

[0051] The fourth processing unit 14 sets n to 1 (step S2-2). n represents the nth learning pair, and is expressed as learning pair n.

[0052] The fourth processing unit 14 determines whether or not a learning pair n exists in the text data for relationship training between the preceding context and the preceding context (step S2-3). If a learning pair n exists in the text data for relationship training between the preceding context and the preceding context, steps S2-4 to S2-8 are executed. If a learning pair n does not exist in the text data for relationship training between the preceding context and the preceding context, the process ends.

[0053] The fourth processing unit 14 converts all sentences of the preceding context n into one vector (step S2-4).

[0054] The fourth processing unit 14 vectorizes the sentence n (step S2-5).

[0055] The fourth processing unit 14 converts tag 1 and tag 2 of the sentence n into numerical values ​​(step S2-6).

[0056] The fourth processing unit 14 stores the previous context vector converted into one vector, the sentence vector of sentence n, and the quantified tag 1 and tag 2 of sentence n as learning pair n in vector data for learning the relationship with the previous context (step S2-7).

[0057] The fourth processing unit 14 sets n to n+1, and returns to step S2-3 (step S2-8).

[0058] FIG. 11 shows the structure of vector data for learning the relationship with the preceding context, which is generated as a result of the processing in FIG.

[0059] 12 is a flowchart showing the details of step S3 in FIG. 7, i.e., the flow of the vectorization process of text data for relationship training with subsequent contexts. As long as there are learning pairs between sentences and subsequent contexts, the sentence data is vectorized and the tags are digitized, and these are stored in the vector data for relationship training with subsequent contexts.

[0060] In this embodiment, an example is shown in which sentences of subsequent contexts are combined into one vector for vectorization, but methods that can be applied in implementing the present disclosure are not limited to this.Furthermore, the present disclosure does not specify a method for vectorization.

[0061] The fourth processing unit 14 reads out the text data for learning the relationship with the subsequent context shown in FIG. 6 from the storage unit 15 (step S3-1).

[0062] The fourth processing unit 14 sets n to 1 (step S3-2). n represents the nth learning pair, and is expressed as learning pair n.

[0063] The fourth processing unit 14 determines whether or not a learning pair n exists in the text data for relationship training between subsequent contexts (step S3-3). If a learning pair n exists in the text data for relationship training between subsequent contexts, steps S3-3 to S3-8 are executed. If a learning pair n does not exist in the text data for relationship training between subsequent contexts, the processing ends.

[0064] The fourth processing unit 14 vectorizes the sentence n (step S3-4).

[0065] The fourth processing unit 14 converts tags 1 and 3 of the sentence n into numerical values ​​(step S3-5).

[0066] The fourth processing unit 14 converts all sentences of the subsequent context n into one vector (step S3-6).

[0067] The fourth processing unit 14 stores the sentence vector of sentence n, the quantified tags 1 and 3 of sentence n, and the subsequent context vector converted into one vector as learning pair n in vector data for learning the relationship with the subsequent context (step S3-7).

[0068] The fourth processing unit 14 sets n to n+1, and returns to step S3-3 (step S3-8).

[0069] FIG. 13 shows the structure of vector data for learning the relationship with subsequent contexts, which is generated as a result of the processing in FIG.

[0070] 14 is a flowchart showing the details of step S4 in Fig. 7, that is, the flow of sentence-type tag learning. In this process, vector data for sentence-type tag learning is read, and sentence-type tags are learned as long as sentence vectors exist.

[0071] The first processing unit 11 reads out the sentence-type tag learning vector data shown in FIG. 9 from the storage unit 15 (step S4-1).

[0072] The first processing unit 11 sets n to 1 (step S4-2). n represents the nth sentence data, and is expressed as sentence n.

[0073] The first processing unit 11 determines whether sentence n exists in the sentence tag learning vector data (step S4-3). If sentence n exists in the sentence tag learning vector data, steps S4-4 to S4-5 are executed. If sentence n does not exist in the sentence tag learning vector data, the processing ends.

[0074] The first processing unit 11 learns the combination of sentence n and the sentence type tag (tag 1) (step S4-4).

[0075] The first processing unit 11 increments n by n+1, and returns to step S4-3 (step S4-5).

[0076] 15 is a flowchart showing the details of step S5 in Fig. 7, i.e., the flow of learning the relationship with the preceding context. In this process, vector data for learning the relationship with the preceding context is read, and as long as a learning pair exists, combinations of the preceding context vector and the value of Tag 2 of the sentence are learned.

[0077] The second processing unit 12 reads out the vector data for learning the relationship with the preceding context shown in FIG. 11 from the storage unit 15 (step S5-1).

[0078] The second processing unit 12 sets n to 1 (step S5-2). n represents the nth learning pair, and is expressed as learning pair n.

[0079] The second processing unit 12 determines whether or not a learning pair n exists in the vector data for relationship training between the previous context and the preceding context (step S5-3). If a learning pair n exists in the vector data for relationship training between the previous context and the preceding context, steps S5-4 to S5-5 are executed. If a learning pair n does not exist in the vector data for relationship training between the previous context and the preceding context, the process ends.

[0080] The second processing unit 12 learns the combination of the previous context vector n and the value of tag 2 of the sentence vector n for the learning pair n (step S5-4).

[0081] The second processing unit 12 sets n to n+1, and returns to step S5-3 (step S5-5).

[0082] 16 is a flowchart showing the details of step S6 in Fig. 7, i.e., the flow of learning the relationship with the subsequent context. In this process, vector data for learning the relationship with the subsequent context is read, and as long as a learning pair exists, combinations of the value of tag 3 of the sentence and the subsequent context vector are learned.

[0083] The third processing unit 13 reads out the vector data for learning the relationship with the subsequent context in FIG. 13 from the storage unit 15 (step S6-1).

[0084] The third processing unit 13 sets n to 1 (step S6-2). n represents the nth learning pair, and is expressed as learning pair n.

[0085] The third processing unit 13 determines whether or not a learning pair n exists in the vector data for relationship training with the subsequent context (step S6-3). If a learning pair n exists in the vector data for relationship training with the subsequent context, steps S6-4 to S6-5 are executed. If a learning pair n does not exist in the vector data for relationship training with the subsequent context, the process ends.

[0086] The third processing unit 13 learns the combination of the value of tag 3 of sentence vector n and subsequent context vector n for the learning pair n (step S6-4).

[0087] The third processing unit 13 increments n by n+1, and returns to step S6-3 (step S6-5).

[0088] The above is the processing of the learning phase.

[0089] Next, the inference processes for sentence type tags, relationships with preceding contexts, and relationships with following contexts, which are performed on the dialogue document text data to be analyzed, will be described.

[0090] 17 is a flowchart showing the flow of this inference process, which consists of a vectorization process (step S7) of the dialogue document text data to be analyzed, and each inference process (steps S8 to S10).

[0091] 18 is a diagram showing the structure of dialogue document text data to be analyzed. In this disclosure, the number of speakers participating in the dialogue is limited to two, and therefore a structure is assumed in which groups of utterances from speakers A and B are arranged alternately. Each group of utterances is composed of multiple single sentences.

[0092] The fourth processing unit 14 vectorizes the dialogue document text data shown in FIG. 18 (step S7).

[0093] The first processing unit 11 uses the learning model acquired by the learning performed in step S4-4 of FIG. 14 to infer a sentence type tag (tag 1) of the sentence included in the vectorized dialogue document vector data (step S8).

[0094] The second processing unit 12 infers the relationship with the preceding context of the sentence using the inference result of the sentence's sentence type tag (tag 1) and the learning model acquired by the learning performed in step S5-4 of Figure 15 (step S9).

[0095] The third processing unit 13 infers the relationship with the subsequent context of the sentence using the inference result of the sentence type tag (tag 1) of the sentence and the learning model acquired by the learning performed in step S6-4 of Figure 16 (step S10).

[0096] 19 is a flowchart showing the details of step S7 in Fig. 17, i.e., the flow of the vectorization process for dialogue document text data. In this process, for all utterance groups included in the dialogue document text data, each sentence in each utterance group is vectorized, and all of the vectorized sentence vector data for each utterance group is converted into one paragraph vector for each utterance group.

[0097] The fourth processing unit 14 reads out the dialogue document text data to be analyzed, shown in FIG. 18, from the storage unit 15 (step S7-1).

[0098] The fourth processing unit 14 sets n to 1 (step S7-2). n represents the nth utterance group, and is expressed as utterance group n.

[0099] The fourth processing unit 14 determines whether or not utterance group n exists in the dialogue document text data (step S7-3). If utterance group n exists in the dialogue document text data, steps S7-3 to S7-9 are executed. If utterance group n does not exist in the dialogue document text data, the process proceeds to step S7-10.

[0100] The fourth processing unit 14 sets m to 1 (step S7-4). m represents the mth sentence data, and is expressed as sentence m.

[0101] The fourth processing unit 14 determines whether or not sentence m exists in the utterance group n (step S7-5). If sentence m exists in the utterance group n, steps S7-6 to S7-7 are executed. If sentence m does not exist in the utterance group n, steps S7-8 to S7-9 are executed.

[0102] The fourth processing unit 14 vectorizes the sentence m (step S7-6).

[0103] The fourth processing unit 14 sets m to m+1, and the process returns to step S7-5 (step S7-7).

[0104] The fourth processing unit 14 writes all sentence vector data of the utterance group n into the sentence vector data (step S7-8).

[0105] The fourth processing unit 14 sets n to n+1, and the process returns to step S7-3 (step S7-9).

[0106] The fourth processing unit 14 sets n to 1 (step S7-10).

[0107] The fourth processing unit 14 determines whether or not utterance group n exists in the dialogue document text data (step S7-11). If utterance group n exists in the dialogue document text data, steps S7-12 to S7-13 are executed. If utterance group n does not exist in the dialogue document text data, the processing ends.

[0108] The fourth processing unit 14 converts all sentence vectors included in the utterance group n into one paragraph vector, and writes the paragraph vector into paragraph vector data (step S7-12).

[0109] The fourth processing unit 14 increments n by n+1, and returns to step S7-11 (step S7-13).

[0110] The structure of the sentence vector data generated in step S7-8 of Fig. 19 is shown in Fig. 20. The structure of the paragraph vector data generated in step S7-12 of Fig. 19 is shown in Fig. 21.

[0111] 22 is a flowchart showing the details of step S8 in Fig. 17, i.e., the flow of the sentence type tag inference process. In this process, sentence vector data is read, and as long as an utterance group exists, the value of the sentence type tag (tag 1) to be assigned to each sentence vector in the utterance group is inferred, and the inference result is added to the sentence vector data.

[0112] The first processing unit 11 reads out the sentence vector data shown in FIG. 20 from the storage unit 15 (step S8-1).

[0113] The first processing unit 11 sets n to 1 (step S8-2). n represents the nth utterance group, and is expressed as utterance group n.

[0114] The first processing unit 11 determines whether or not utterance group n exists in the sentence vector data (step S8-3). If utterance group n exists in the sentence vector data, steps S8-4 to S8-9 are executed. If utterance group n does not exist in the sentence vector data, the processing ends.

[0115] The first processing unit 11 sets m to 1 (step S8-4). m represents the m-th sentence vector data, and is expressed as sentence vector m.

[0116] The first processing unit 11 determines whether or not the sentence vector m exists in the utterance group n (step S8-5). If the sentence vector m does not exist in the utterance group n, the process proceeds to step S8-6. If the sentence vector m exists in the utterance group n, the process executes steps S8-7 to S8-9.

[0117] The first processing unit 11 increments n by n+1, and returns to step S8-3 (step S8-6).

[0118] The first processing unit 11 uses the learning model acquired by the learning performed in step S4-4 of FIG. 14 to infer the sentence type tag (the quantified value of tag 1) of the sentence vector m (step S8-7).

[0119] The first processing unit 11 writes the sentence type tag (the quantified value of tag 1) of the inferred sentence vector m into the sentence vector data (step S8-8).

[0120] The first processing unit 11 sets m to m+1, and returns to step S8-5 (step S8-9).

[0121] As a result of the processing in FIG. 22, a sentence type tag (tag 1) of the inference result is assigned to each sentence vector of the sentence vector data shown in FIG. 20, as shown in FIG.

[0122] Fig. 24 is a flowchart showing the details of step S9 in Fig. 17, i.e., the flow of the process of inferring the relationship with the preceding context. In this process, the sentence vector data after sentence type tag inference shown in Fig. 23 and the paragraph vector data shown in Fig. 21 are read, and starting from the second utterance group, as long as utterance groups exist, the value of tag 2 to be assigned to each sentence vector in the utterance group is inferred based on the relationship with the paragraph vector of the previous utterance group, and the inference result is added to the sentence vector data.

[0123] The second processing unit 12 reads out the sentence vector data after sentence type tag inference shown in FIG. 23 and the paragraph vector data shown in FIG. 21 from the storage unit 15 (step S9-1).

[0124] The second processing unit 12 sets n to 2 (step S9-2). n represents the nth utterance group, and is expressed as utterance group n.

[0125] The second processing unit 12 determines whether or not utterance group n exists in the sentence vector data after sentence-type tag inference (step S9-3). If utterance group n exists in the sentence vector data after sentence-type tag inference, steps S9-3 to S9-11 are executed. If utterance group n does not exist in the sentence vector data after sentence-type tag inference, the processing ends.

[0126] The second processing unit 12 sets m to 1 (step S9-4). m represents the m-th sentence vector data, and is expressed as sentence vector m.

[0127] The second processing unit 12 determines whether or not the sentence vector m exists in the utterance group n (step S9-5). If the sentence vector m does not exist in the utterance group n, the second processing unit 12 executes step S9-6. If the sentence vector m exists in the utterance group n, the second processing unit 12 executes steps S9-7 to S9-11.

[0128] The second processing section 12 increments n by n+1, and returns to step S9-3 (step S9-6).

[0129] The second processing unit 12 determines whether the sentence type tag (value of tag 1) of sentence vector m is a tag to which tag 2 is to be assigned, based on whether tag 1 and tag 2 are associated with each other (step S9-7).

[0130] Specifically, the second processing unit 12 determines that tag 1, which is previously associated with tag 2, is a tag to which tag 2 is to be assigned. For example, the second processing unit 12 determines that tag 1 having an arrow pointing to tag 2 in FIG. 3 is a tag to which tag 2 is to be assigned. Tag 1 without an arrow pointing to tag 2 ("Agreement", "Rejection", "Topic change request") is not a tag to which tag 2 is to be assigned.

[0131] If the sentence type tag of sentence vector m is not a tag to which tag 2 is to be assigned, step S9-8 is executed. If the sentence type tag of sentence vector m is a tag to which tag 2 is to be assigned, steps S9-9 to S9-11 are executed.

[0132] The second processing unit 12 sets m to m+1, and returns to step S9-5 (step S9-8).

[0133] The second processing unit 12 infers the relationship between the sentence vector m and the paragraph vector of the utterance group n-1 (the value of tag 2 of the sentence vector m) (step S9-9).

[0134] Specifically, the second processing unit 12 obtains the paragraph vector of the utterance group n-1 from the paragraph vector data shown in Figure 21, and uses the learning model acquired by the learning performed in step S5-4 of Figure 15 (the learning model that has learned the combination of the preceding context vector and the value of tag 2) to find the value of tag 2 combined with the preceding context vector that most closely matches the paragraph vector of the utterance group n-1.

[0135] The second processing unit 12 writes the value of tag 2 of the inferred sentence vector m into the sentence vector data after sentence type tag inference (step S9-10).

[0136] The second processing unit 12 sets m to m+1, and returns to step S9-5 (step S9-11).

[0137] Fig. 25 is a flowchart showing the details of step S10 in Fig. 17, i.e., the flow of the process of inferring the relationship with the subsequent context. In this process, the sentence vector data after sentence type tag inference shown in Fig. 23 and the paragraph vector data shown in Fig. 21 are read, and starting from the first utterance group, as long as utterance groups exist, the value of tag 3 to be assigned to each sentence vector in the utterance group is inferred based on the relationship with the paragraph vector of the following utterance group, and the inference result is added to the sentence vector data.

[0138] The third processing unit 13 reads out the sentence vector data after sentence type tag inference shown in FIG. 23 and the paragraph vector data shown in FIG. 21 from the storage unit 15 (step S10-1).

[0139] The third processing unit 13 sets n to 1 (step S10-2). n represents the nth utterance group, and is expressed as utterance group n.

[0140] The third processing unit 13 determines whether or not utterance group n+1 exists in the sentence vector data after sentence-type tag inference (step S10-3). If utterance group n+1 exists in the sentence vector data after sentence-type tag inference, steps S10-4 to S10-11 are executed. If utterance group n+1 does not exist in the sentence vector data after sentence-type tag inference, the process ends.

[0141] The third processing unit 13 sets m to 1 (step S10-4). m represents the m-th sentence vector data, and is expressed as sentence vector m.

[0142] The third processing unit 13 determines whether or not the sentence vector m exists in the utterance group n (step S10-5). If the sentence vector m does not exist in the utterance group n, the third processing unit 13 executes step S10-6. If the sentence vector m exists in the utterance group n, the third processing unit 13 executes steps S10-7 to S10-11.

[0143] The third processing unit 13 sets n to n+1, and the process returns to step S10-3 (step S10-6).

[0144] The third processing unit 13 determines whether the sentence type tag (value of tag 1) of sentence vector m is a tag to which tag 3 should be assigned, based on whether or not there is a correspondence between tag 1 and tag 3 (step S10-7).

[0145] Specifically, the third processing unit 13 assigns tag 1 corresponding to tag 3 to be the target for assigning tag 3. For example, when the content of tag 1 is "question," if there is a tag 3 related to "question," the third processing unit 13 assigns tag 1 to be the target for assigning tag 3. In the case of Figure 3, when focusing on tag 1 related to "question," there are tags 3 related to "question" such as "question with a positive answer," "question with a negative answer," and "question that was evaded," so tag 1 is the target for assigning tag 3.

[0146] If the sentence type tag of sentence vector m is not a tag to be assigned tag 3, the process proceeds to step S10-8. If the sentence type tag of sentence vector m is a tag to be assigned tag 3, steps S10-9 to S10-11 are executed.

[0147] The third processing unit 13 sets m to m+1, and the process returns to step S10-5 (step S10-8).

[0148] The third processing unit 13 infers the relationship between the sentence vector m and the paragraph vector of the utterance group n+1 (the value of tag 3 of the sentence vector m) (step S10-9).

[0149] Specifically, the third processing unit 13 obtains the paragraph vector of utterance group n+1 from the paragraph vector data of Figure 21, and uses the learning model acquired by the learning performed in step S6-4 of Figure 16 (the learning model that learned the combination of the latter context vector and the value of tag 3 of the sentence vector) to find the value of tag 3 combined with the latter context vector that most closely matches the paragraph vector of utterance group n+1.

[0150] The third processing unit 13 writes the value of tag 3 of the inferred sentence vector m into the sentence vector data after sentence type tag inference (step S10-10).

[0151] The third processing unit 13 sets m to m+1, and the process returns to step S10-5 (step S10-11).

[0152] 24 and 25, tags (tag 2, tag 3) of the relationship inference result are assigned to each sentence vector of the sentence vector data in Fig. 23, as shown in Fig. 26. The assignment of tags 2 and 3 constitutes the discourse structure analysis result of the document text data in this disclosure.

[0153] [Effects] According to this embodiment, in a dialogue document including a dialogue between two people (speakers A and B), the sentence type of each utterance sentence by each speaker (speakers A and B) is inferred, the relationship of a sentence by a specified speaker (speaker B) included in the dialogue document to the speech context of the other speaker (speaker A) of the utterance group preceding that sentence is inferred, and the relationship of a sentence by a specified speaker (speaker B) included in the dialogue document to the speech context of the other speaker (speaker A) of the utterance group following that sentence is inferred, so that information useful for analyzing the dialogue as a whole can be obtained, which can contribute to improving dialogue document analysis techniques.

[0154] [Others] The present disclosure is not limited to the above-described embodiments, and various modifications are possible within the scope of the gist of the present disclosure.

[0155] The analysis device 1 of the present embodiment described above can be realized, for example, as shown in Fig. 27, using a general-purpose computer system including a CPU 901, a memory 902, a storage 903, a communication device 904, an input device 905, and an output device 906. The memory 902 and the storage 903 are storage devices. In this computer system, the CPU 901 executes a predetermined program loaded onto the memory 902, thereby realizing each function of the analysis device 1.

[0156] The analysis device 1 may be implemented by one computer, or by multiple computers, or may be a virtual machine implemented on a computer.

[0157] The program for the analysis device 1 can be stored in a computer-readable recording medium such as a HDD, SSD, USB memory, CD, or DVD. The computer-readable recording medium is, for example, a non-transitory recording medium. The program for the analysis device 1 can also be distributed via a communication network.

[0158] REFERENCE SIGNS LIST 1 analysis device 11 first processing unit 12 second processing unit 13 third processing unit 14 fourth processing unit 15 storage unit 901 CPU 902 memory 903 storage 904 communication device 905 input device 906 output device

Claims

1. An analysis device for analyzing a dialogue document including a dialogue between two people, comprising: a first processing unit that performs machine learning of a plurality of training data combining utterance sentences and sentence types of the utterance sentences, and infers the sentence types of the utterance sentences included in the dialogue document using a learning model generated by the machine learning; a second processing unit that performs machine learning of a plurality of training data combining an utterance sentence to which information indicating a relationship with the speech context of a preceding utterance group and the speech context of the preceding utterance group, and infers the relationship of a sentence of a specified speaker included in the dialogue document to the speech context of a partner speaker of the preceding utterance group of the utterance sentence using the learning model generated by the machine learning; and a third processing unit that performs machine learning of a plurality of training data combining an utterance sentence to which information indicating a relationship with the speech context of a subsequent utterance group and the speech context of the subsequent utterance group, and infers the relationship of a sentence of a specified speaker included in the dialogue document to the speech context of a partner speaker of the subsequent utterance group of the utterance sentence using the learning model generated by the machine learning.

2. An analysis method for analyzing a dialogue document including a dialogue between two people, wherein an analysis device performs a first machine learning to machine-learn a plurality of training data combining an utterance sentence and a sentence type of the utterance sentence, performs a second machine learning to machine-learn a plurality of training data combining an utterance sentence to which information indicating a relationship with the utterance context of a preceding utterance group is attached and the utterance context of the preceding utterance group, performs a third machine learning to machine-learn a plurality of training data combining an utterance sentence to which information indicating a relationship with the utterance context of a subsequent utterance group is attached and the utterance context of the subsequent utterance group, infers the sentence type of the utterance sentence included in the dialogue document using a learning model based on the first machine learning, infers the relationship of an utterance sentence of a specified speaker included in the dialogue document to the utterance context of the other speaker of the preceding utterance group of the utterance sentence using the learning model based on the second machine learning, and infers the relationship of an utterance sentence of a specified speaker included in the dialogue document to the utterance context of the other speaker of the subsequent utterance group of the utterance sentence using the learning model based on the third machine learning. Analysis method.

3. An analysis program that causes a computer to function as the analysis device according to claim 1.

Citation Information

Patent Citations

  • Statement structure estimation method, statement structure estimation device, and statement structure estimation program

    JP2021163134A