Sentence analyzer
The text analysis device uses machine learning to generate and display emotion vector correlations, addressing the difficulty in interpreting emotion graphs, thereby enhancing user understanding of text characteristics.
Patent Information
- Application Number
- JP2023052301
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-28
- Publication Date
- 2024-10-10
- Estimated Expiration
- 2043-03-28
AI Technical Summary
Existing text analysis technologies, such as those described in Patent Document 1, require users to have a high level of skill to interpret emotion graphs, making it difficult for users to easily understand the characteristics of a text.
The invention employs a text analysis device that utilizes machine learning to generate and display a correlation evaluation between the norm and moving average of emotion vectors, allowing for easier understanding of text characteristics by visualizing exciting points and emotional transitions.
The solution enables users to easily understand the characteristics of a text by displaying emotion vector transitions and correlations, facilitating improved text analysis and editing.
Smart Images

Figure 2024140928000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a text analysis device. [Background technology]
[0002] There is a demand for analyzing texts. Texts to be analyzed include, for example, scripts, novels, editorials, essays, blogs, etc. With regard to analyzing texts, there is a demand for analyzing emotions evoked when reading a text, such as a narrative text. Emotion analysis is not only useful for grasping the characteristics of a text, but can also be utilized for summarizing the text, generating visual representations of the characters in the text, etc.
[0003] Regarding analyzing the content of a sentence, Patent Document 1 discloses a sentence analysis device including an input unit that accepts input of a sentence, a division unit that divides the sentence into a plurality of scenes, a first calculation unit that calculates a plurality of individual emotion values for each of the scenes, a second calculation unit that calculates a representative emotion value for the scenes based on the plurality of individual emotion values, and a display unit that displays a graph of the representative emotion values. The technology of Patent Document 1 can provide a technology for analyzing emotional excitement throughout an entire sentence. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] Patent Publication No. 2022-26278 Summary of the Invention [Problem to be solved by the invention]
[0005] However, in analyzing text, there is a demand for easily grasping the characteristics of the text. The technology of Patent Document 1 only displays a graph of the representative emotion value. Therefore, the user is required to have the ability to interpret the graph. Therefore, the technology of Patent Document 1 has room for further improvement in terms of easily grasping the characteristics of the text.
[0006] An object of the present invention is to provide an analysis result that enables easy understanding of the characteristics of a sentence. [Means for solving the problem]
[0007] As a result of intensive research into solving the above problems, the inventors have found that the above object can be achieved by displaying a correlation evaluation regarding the correlation between the norm of an emotion vector and the moving average of the norm, etc. The inventors have then completed the present invention. Specifically, the present invention provides the following.
[0008] A first aspect of the invention provides a text analysis device comprising: a text acquisition unit capable of acquiring text; a text division unit capable of dividing the text into a plurality of analysis units; an emotion vector generation unit capable of generating a transition of an emotion vector for each analysis unit in the text; an evaluation generation unit capable of generating an evaluation for the transition of the emotion vector; a display command unit capable of commanding a display of the evaluation; and a first machine learning unit capable of machine learning to generate the emotion vector based on the text and the analysis units, wherein the emotion vector is a vector based on the intensities of a plurality of types of emotions, the emotion vector generation unit is capable of generating the transition of the emotion vector based on the text, the analysis units, and machine learning by the first machine learning unit, and the evaluation generation unit is capable of generating a correlation evaluation regarding at least the correlation between a norm of the emotion vector and a moving average of the norm.
[0009] The invention according to the first feature can divide the acquired text into multiple analysis units and generate the transition of the emotion vector for each analysis unit based on machine learning. That is, the invention according to the first feature can generate the transition of how multiple types of emotion values change for each analysis unit in the acquired text by an objective algorithm based on machine learning.
[0010] However, when such a transition is displayed as a graph, etc., the user is required to become accustomed to interpreting the displayed graph, etc. As a result of intensive research, the present inventors have found that by using a correlation evaluation regarding the correlation between the norm of the emotion vector and the moving average of the norm, it is possible to perform a display that allows the characteristics of the text to be more easily grasped.
[0011] A norm is a generalized concept of the "length" of a vector. Therefore, the norm of an emotion vector corresponds to the overall strength of emotion in the corresponding analysis unit. On the other hand, the moving average of the norm of an emotion vector corresponds to the overall strength of emotion not only in the corresponding analysis unit but also in the surrounding analysis units.
[0012] Therefore, the correlation between the norm and the moving average is large in each of the parts where the overall emotional strength does not change much and the emotional strength is small, and in each of the parts where the overall emotional strength changes rapidly and the emotional strength is large. On the other hand, the correlation between the norm and the moving average is small in each of the parts where the overall emotional strength does not change much but the emotional strength is large, and in each of the parts where the overall emotional strength changes rapidly but the emotional strength is small. Therefore, by using the correlation, it is possible to evaluate which analysis unit corresponds to the exciting part in the text where the overall emotional strength changes rapidly and becomes strong.
[0013] The first aspect of the invention is capable of generating and displaying a correlation evaluation regarding the correlation between the norm of the emotion vector and the moving average of the norm. Therefore, the first aspect of the invention can display the analysis results regarding the exciting points in the text. Therefore, the user can more easily grasp the characteristics of the text. Effect of the Invention
[0014] The present invention can provide analysis results that allow the characteristics of a sentence to be easily understood. [Brief description of the drawings]
[0015] [Figure 1]FIG. 1 is a block diagram showing the hardware and software configurations of an analysis system S of this embodiment. [Diagram 2] FIG. 2 is an example of the sentence list 131. [Diagram 3] FIG. 3 is an example of the analysis unit list 132. [Figure 4] FIG. 4 is an example of the character list 133. [Diagram 5] FIG. 5 is a main flowchart showing an example of a preferable flow of the analysis process of this embodiment. [Figure 6] FIG. 6 is a continuation of FIG. [Figure 7] FIG. 7 is a continuation of FIG. [Figure 8] FIG. 8 shows an example of an analysis result obtained by the analysis device 1 of this embodiment. [Figure 9] FIG. 9 is a flow chart showing an example of a preferable flow of an analysis process executed by the analysis device 1, which is a server group, in the modified example. [Figure 10] FIG. 10 is a continuation of FIG. [Figure 11] FIG. 11 is a flowchart showing another example of a preferable flow of an analysis process executed by the analysis device 1, which is a server group, in the second modification. [Figure 12] FIG. 12 is a flowchart of the analysis unit generation process executed in step S122 of FIG. [Figure 13] FIG. 13 is a continuation of FIG. [Figure 14] FIG. 12 is a flowchart of the inference result correction process executed in step S125 of FIG. [Figure 15] FIG. 15 is a continuation of FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0016] Hereinafter, an example of an embodiment of the present invention will be described in detail with reference to the drawings.
[0017] <Analysis System S> 1 is a block diagram showing the hardware and software configurations of an analysis system S of this embodiment. An example of a preferred embodiment of the analysis system S of this embodiment will be described below with reference to FIG.
[0018] [Analyzer 1] The analysis device 1 is a device that analyzes the content of a sentence. The analysis device 1 includes a control unit 11, a storage unit 13, a communication unit 14, etc. The analysis device 1 may be in various forms, such as a terminal such as a personal computer, a single server, or a server group including multiple servers.
[0019] The server group includes one or more normal servers such as a load balancer that adjusts the load between servers, a front server that provides a UI, etc., an API server that provides APIs for various software components used in analytical processing, and a text preprocessing server that performs preprocessing of text such as the processing performed by the text segmentation unit 112, an inference server (text inference server) that realizes the emotion vector generation unit 113, etc., and a learning server (text learning server) that realizes the first machine learning unit 119, etc.
[0020] [Control unit 11] The control unit 11 includes a central processing unit (CPU), a random access memory (RAM), and a read only memory (ROM).
[0021] The control unit 11 cooperates with the storage unit 13 and / or the communication unit 14, etc., as necessary. The control unit 11 then realizes software components of the program of this embodiment executed by the analysis device 1, such as a sentence acquisition unit 111, a sentence segmentation unit 112, an emotion vector generation unit 113, an evaluation generation unit 114, a summary generation unit 115, a character information acquisition unit 116, an image generation unit 117, a display command unit 118, a first machine learning unit 119, a second machine learning unit 120, and a third machine learning unit 121. The functions provided by each of the software components of the program of this embodiment will be described in the description of a preferred flow of the analysis process, which will be described later.
[0022] [Storage section 13] The memory unit 13 is a device in which data and / or files are stored, and has a data storage unit configured using one or more of a hard disk, a semiconductor memory, a recording medium, and a memory card.
[0023] The storage unit 13 may have a mechanism that enables connection to a storage device or storage system such as a NAS, a SAN, a cloud storage, a file server, and / or a distributed file system via a network N. NAS is an abbreviation for Network Attached Storage. SAN is an abbreviation for Storage Area Network.
[0024] The memory unit 13 stores a program executed by the microcomputer, a sentence list 131, an analysis unit list 132, a character list 133, machine learning data (first machine learning data) of the first machine learning unit 119, machine learning data (second machine learning data) of the second machine learning unit 120, machine learning data (third machine learning data) of the third machine learning unit 121, etc.
[0025] The storage unit 13 preferably includes a relational database in which definition information of sentences is stored. The sentence list 131 is preferably stored in an independent storage. The analysis unit list 132 is preferably stored in an independent data store.
[0026] (Text Listing 131) The sentence list 131 stores sentences to be analyzed by the analysis device 1 and various information related to the sentences. There is no particular limit to the sentences stored. The sentences may be, for example, scripts, plots, conversations, novels, essays, blogs, minutes, reports, editorials, etc. The format of the various information is not particularly limited. The format may be, for example, a text format, a json (JavaScript Object Notation) format, etc.
[0027] It is preferable that a text is stored in association with definition information of the text. The definition information is information about the text including one or more of various pieces of information associated with the text body, such as the title, author, publication date, style, etc. The style is various types of text, such as a script, plot, conversation, novel, essay, blog, minutes, report, editorial, etc.
[0028] The text is preferably stored in association with the results of an analysis of the text, including a rating generated by rating generator 114, a summary generated by summary generator 115, etc. This allows the analysis results to be reused.
[0029] It is preferable that the sentences are stored in association with a sentence ID that can identify the sentence, so that the analysis device 1 can use the associated sentences using the sentence ID.
[0030] Fig. 2 is an example of the sentence list 131. In the example shown in Fig. 2, a sentence identified by a sentence ID "T0001" is stored. The sentence is stored in association with the definition information and analysis results of the sentence.
[0031] In the example shown in FIG. 2, the text begins with "While looking at the △△ Group's financial results announcement (Note 1)..." and ends with "...If you think you have the potential, please let us know."
[0032] In the example shown in Figure 2, the definition information includes various information accompanying the body of the text, such as the title "What is the △△ market?", the publication date "July 28, 2021", and the format "Blog".
[0033] In the example shown in FIG. 2, the analysis results include an assessment such as that the text has a graph correlation close to the Oedipus type.
[0034] 2, the above-mentioned definition information and sentences associated with the analysis results are stored, so that the analysis device 1 can analyze the sentences and instruct the analysis device 1 to display the analysis results together with the definition information. The user can then easily grasp the characteristics of the sentences by looking at the display.
[0035] (Analysis Unit List 132) The analysis unit list 132 stores analysis units of the sentence divided by the sentence dividing section 112 and various information related to the analysis units.
[0036] The analysis unit is a processing unit used by the analysis device 1 of this embodiment when analyzing a sentence. The analysis unit is selected from one sentence, one formal paragraph, one semantic paragraph, one section, one chapter, one scene in a script, etc., depending on the style of the sentence. The determination of the style of the sentence and the selection of the analysis unit depending on the style of the sentence will be explained in more detail later in the explanation of the flow of the analysis process of this embodiment. The analysis unit is also called a "scene."
[0037] It is preferable that the analysis unit is stored in association with the emotion vector corresponding to the analysis unit in the analysis unit list 132. This allows the analysis device 1 to easily obtain the emotion vector corresponding to the analysis unit.
[0038] An emotion vector is a vector based on the intensity of multiple types of emotions. The intensity of an emotion is also called an "emotion value" or an "individual emotion value". The type of emotion value is not particularly limited. The types of emotion values may be, for example, the eight basic emotions in Plutchik's emotion wheel or Ekman's seven basic emotions. The eight basic emotions in Plutchik's emotion wheel are anger, anticipation, joy, trust, fear, surprise, sadness, and disgust. Ekman's seven basic emotions are surprise, fear, disgust, anger, joy, sadness, and neutral.
[0039] It is preferable that the analysis unit is stored in association with the norm of the emotion vector corresponding to the analysis unit in the analysis unit list 132. This allows the analysis device 1 to easily obtain the norm of the emotion vector corresponding to the analysis unit.
[0040] The norm of the emotion vector is not particularly limited. The norm may be any norm, such as the maximum norm, Euclidean norm, p-th order average norm, or norm determined by inner product. The maximum norm is a norm that takes the largest value of the elements of the emotion vector as its value. The Euclidean norm is a norm that takes the square root of the sum of squares of the elements contained in the emotion vector as its value. The p-th order average norm is a norm that takes the p-th root of the sum of p-th powers of the elements contained in the emotion vector as its value. The norm determined by inner product is a norm that takes the square root of the inner product of a specified vector and the emotion vector as its value.
[0041] In the analysis unit list 132, one type of emotion vector norm may be stored, or multiple types may be stored.
[0042] It is particularly preferable that the norm of an emotion vector is a maximum norm. This allows the norm of an emotion vector to indicate the strength of the strongest emotion contained in the emotion vector. When the norm of an emotion vector is a maximum norm, the value of the maximum norm is also called a "representative emotion value."
[0043] It is preferable that an analysis unit can be stored in association with a moving average of the norm of the emotion vector corresponding to the analysis unit in the analysis unit list 132. This allows the analysis device 1 to easily obtain the moving average of the norm of the emotion vector corresponding to the analysis unit.
[0044] The moving average is not particularly limited. The moving average may be any of various moving averages, such as a simple moving average, a weighted moving average, and an exponential moving average. The moving average is preferably a moving average of the norm of the emotion vector in the analysis unit to be generated and the norm of the emotion vector in the analysis units before and after the analysis unit. This allows the analysis device 1 to generate a moving average that makes it easy to understand the correspondence between the analysis unit in which the norm of the emotion vector has changed.
[0045] In the analysis unit list 132, it is preferable that the analysis unit can be stored in association with the correlation between the norm of the emotion vector corresponding to the analysis unit and the moving average of the norm. This allows the analysis device 1 to easily obtain the correlation corresponding to the analysis unit.
[0046] It is preferable that the analysis unit is stored in association with a sentence ID capable of identifying the sentence corresponding to the analysis unit, so that the analysis device 1 can grasp the sentence corresponding to the analysis unit.
[0047] It is preferable that the analysis unit is stored in association with an analysis unit ID that can identify the analysis unit, so that the analysis device 1 can use the analysis unit by using the analysis unit ID.
[0048] Fig. 3 is an example of the analysis unit list 132. In the example shown in Fig. 3, an analysis unit identified by an analysis unit ID "U0001" is stored. The analysis unit is stored in association with the emotion vector, norm, moving average, and sentence ID corresponding to the analysis unit.
[0049] In the example shown in FIG. 3, the analysis unit begins with "While looking at the △△ Group's financial results announcement (Note 1)..." and ends with "...I'll keep this very short."
[0050] In the example shown in FIG. 3, the analysis unit is associated with an emotion vector, a norm with a value of "52", and a sentence ID "T0001".
[0051] 3, another analysis unit identified by an analysis unit ID "U0002" different from the above analysis unit is stored. The other analysis unit is stored in association with the emotion vector, norm, moving average, and sentence ID corresponding to the other analysis unit.
[0052] In the example shown in FIG. 3, the other unit of analysis begins with "About global entertainment consumption..." and ends with "Please see below...P△."
[0053] In the example shown in FIG. 3, the other analysis unit is associated with an emotion vector, a norm with a value of "45", a moving average with a value of "48", and a sentence ID "T0001".
[0054] 3, the analysis units associated with the emotion vector, norm, moving average, and sentence ID are stored, so that the analysis device 1 can use various information such as the transition of the emotion vector, etc. Then, the analysis device 1 can analyze sentences using these various information.
[0055] (Character List 133) Character information on characters appearing in a text is stored in the character list 133. The character information is also called "character information." The character information is not particularly limited. The character information includes, for example, text and keywords indicating the characteristics of the character, an image related to the character, and a location on a network related to the character. Furthermore, the character list 133 may store images generated by the image generation unit 117.
[0056] It is preferable that the character information includes text and / or keywords that indicate the characteristics of the character, so that the image generating unit 117 can generate an image based on the text and / or keywords.
[0057] It is preferable that the character information is stored in association with a character ID that can identify the character information, so that the analysis device 1 can use the character information by using the character ID.
[0058] It is preferable that the character information is stored in association with a sentence ID capable of identifying a sentence corresponding to the character information, so that the analysis device 1 can grasp the sentence corresponding to the character information.
[0059] Fig. 4 is an example of the character list 133. In the example shown in Fig. 4, character information "a man wearing glasses with bangs parted in the middle" identified by the character ID "C0001" and corresponding to the sentence ID "T0002" is stored. The character information is stored in association with an image generated based on the character information.
[0060] 4, the analysis device 1 can be instructed to display the character information and the image. This allows the user to more easily understand the characteristics of the characters. Therefore, the user can more easily understand the characteristics of the text.
[0061] [Communications Section 14] The communication unit 14 is not particularly limited as long as it can connect the analysis device 1 to the network N and communicate with the terminal T, etc. Examples of the communication unit 14 include a wireless device compatible with a mobile phone network, a Wi-Fi (Wireless Fidelity) compatible device conforming to IEEE802.11, a short-range wireless device compatible with the Bluetooth (registered trademark) standard, etc., and a network card compatible with the Ethernet standard.
[0062] [Network N] The type of network N is not particularly limited as long as it enables communication between the analysis device 1 and the terminal T, etc. Examples of the network N include a local area network, an intranet, an extranet, the Internet, or a network that combines a plurality of these networks.
[0063] [Terminal T] The terminal T is not particularly limited as long as it can communicate with the analysis device 1 via the network N or the like. The terminal T may be a portable terminal that can be carried around, or may be a stationary terminal that is installed in a fixed location. The number of terminals T is not particularly limited.
[0064] The type of the mobile terminal is not particularly limited, and examples of the mobile terminal include a smartphone, a tablet terminal, and a notebook computer. The type of the stationary terminal is also not particularly limited, and examples of the stationary terminal include a desktop personal computer.
[0065] Terminal T can provide analysis device 1 with text data, the position of the text on the network, and / or text designation information capable of designating a text stored in analysis device 1. Terminal T can also display the results of text analysis in response to a command from analysis device 1.
[0066] The format of the text data is not particularly limited. The format of the text location on the network is not particularly limited and may be, for example, a Uniform Resource Identifier (URI), a Uniform Resource Locator (URL), etc. The text designation information is not particularly limited and may be, for example, a text ID in the text list 131, a path to a text file stored in the storage unit 13, etc.
[0067] [Main flow chart of analysis process] Fig. 5 is a main flow chart showing an example of a preferred flow of the analysis process of this embodiment. Fig. 6 is a diagram following Fig. 5. Fig. 7 is a diagram following Fig. 6. Hereinafter, an example of a preferred flow of the analysis process will be described with reference to Figs. 5 to 7.
[0068] First, the analysis device 1 executes a sentence acquisition step (steps S1 and S2) for acquiring a sentence.
[0069] [Step S1: Determine whether text can be acquired] The control unit 11 executes the text acquisition unit 111 in cooperation with the storage unit 13 and the communication unit 14. Then, the control unit 11 performs a process of determining whether the text can be acquired (step S1, text acquisition possibility determination step). If it is determined that the text can be acquired, the control unit 11 moves the process to step S2. If it is not determined that the text can be acquired, the control unit 11 moves the process to step S1.
[0070] The process of determining whether the text can be acquired is not particularly limited. For example, the process may be a process of determining that the text can be acquired when any of the text data, the position of the text on the network, and / or text designation information capable of designating the text stored in the analysis device 1 is received from the terminal T.
[0071] [Step S2: Obtain text] The control unit 11 executes the text acquisition unit 111 in cooperation with the storage unit 13 and the communication unit 14. Then, the control unit 11 executes a process of acquiring the text determined to be acquireable in step S1 (step S2, text acquisition execution step). The control unit 11 moves the process to step S3. The process of acquiring the text includes a process of storing the acquired text in the text list 131.
[0072] Next, the analysis device 1 executes a sentence division step (steps S3 to S4) of dividing the sentence into analysis units. The sentence division step preferably includes a style determination step (step S3) of determining the style of the sentence. This allows the analysis device 1 to divide the sentence into analysis units according to the style.
[0073] [Step S3: Identify the text style] The control unit 11 executes the text division unit 112 in cooperation with the storage unit 13. Then, the control unit 11 performs a process of determining the style of the text acquired in step S2 (step S3, style determination step). The control unit 11 moves the process to step S4.
[0074] The process of determining the style of a text is not particularly limited. For example, the process of determining the style of a text may be a process of determining that the text is one of the styles included in a predetermined style group including two or more of various styles exemplified by a screenplay, a plot, a dialogue, a novel, an essay, a blog, minutes, a report, an editorial, etc.
[0075] The process of determining the style of a text may be a process that uses one or more of various procedures, such as a procedure of determining the style using keywords in the text that are related to the style, a procedure of determining the style using the way paragraphs are separated, a procedure of determining the style using the beginning of a paragraph, and a procedure of determining the style using machine learning.
[0076] [Step S4: Divide the text into analysis units] The control unit 11 executes the text division unit 112 in cooperation with the storage unit 13. Then, the control unit 11 performs a process of dividing the text acquired in step S2 into analysis units (step S4, text division execution step). The control unit 11 moves the process to step S5. Note that the process of dividing the text into analysis units includes a process of storing the divided analysis units in the analysis unit list 132.
[0077] When the analysis process includes a style determination step, the sentence division execution step preferably includes a procedure of dividing the sentence into analysis units based on the style determined in step S3. This allows the analysis device 1 to divide the sentence into analysis units according to the style. The procedure of dividing the sentence into analysis units based on the style includes, for example, a process of dividing the sentence so that scenes in the screenplay correspond to the analysis units when the sentence is determined to be a screenplay, a process of dividing the sentence so that formal paragraphs correspond to the analysis units when the sentence is determined to be a blog, and a process of dividing the sentence so that chapters correspond to the analysis units when the sentence is determined to be a novel.
[0078] After dividing the text into analysis units, the analysis device 1 executes an emotion vector generation step (step S5) of generating an emotion vector transition for each analysis unit.
[0079] [Step S5: Generate the transition of emotion vectors for each analysis unit] The control unit 11 executes the emotion vector generation unit 113 in cooperation with the storage unit 13. The control unit 11 then performs a process of generating the transition of the emotion vector for each analysis unit divided in step S4 in the sentence acquired in step S2 (step S5, emotion vector generation step). The control unit 11 moves the process to step S6.
[0080] The process of generating a transition of an emotion vector includes a procedure of generating a transition of an emotion vector for each analysis unit based on the sentence acquired in step S2, the analysis units divided in step S4, and machine learning (first machine learning data) by first machine learning unit 119. This procedure includes a procedure of making an inference regarding the emotion vector using the first machine learning data.
[0081] Regarding the generation of emotion vectors, there may be a procedure in which emotion-related elements in a sentence are associated with emotions in advance, and emotion vectors are generated based on the association. However, emotion-related elements in a sentence are diverse, including words, expressions, line breaks, and symbols. Therefore, performing this association manually may require a great deal of effort. Furthermore, if there is an omission in the association, an inaccurate emotion vector may be generated. There is a concern that such omissions may occur frequently in sentences that include buzzwords, new words, onomatopoeic words, dialects, slang, jargon, and the like.
[0082] The procedure for generating a transition of emotion vectors for each analysis unit based on machine learning by the first machine learning unit 119, which will be described later, can generate the transition of emotion vectors without having to perform this association manually. This allows the procedure to generate more accurate emotion vectors with less effort.
[0083] After generating the transition of the emotion vector, the analysis device 1 executes an evaluation generating step of generating an evaluation for the transition of the emotion vector. The evaluation generated in the evaluation generating step is not particularly limited.
[0084] (Regarding the evaluations generated in the evaluation generation step) The evaluation generated in the evaluation generation step includes a correlation evaluation regarding the correlation between the norm of the emotion vector and the moving average of the norm. By including the correlation evaluation described above in the evaluation, the characteristics of the text can be more easily understood. The following is an explanation of this point.
[0085] A norm is a generalized concept of the "length" of a vector. Therefore, the norm of an emotion vector corresponds to the overall strength of emotion in the corresponding analysis unit. On the other hand, the moving average of the norm of an emotion vector corresponds to the overall strength of emotion not only in the corresponding analysis unit but also in the surrounding analysis units.
[0086] Therefore, the correlation between the norm and the moving average is large in each of the parts where the overall emotional strength does not change much and the emotional strength is small, and in each of the parts where the overall emotional strength changes rapidly and the emotional strength is large. On the other hand, the correlation between the norm and the moving average is small in each of the parts where the overall emotional strength does not change much but the emotional strength is large, and in each of the parts where the overall emotional strength changes rapidly but the emotional strength is small. Therefore, by using the correlation, it is possible to evaluate which analysis unit corresponds to the exciting part in the text where the overall emotional strength changes rapidly and becomes strong.
[0087] The evaluation generated in the evaluation generating step may additionally include one or more other evaluations, such as a correlation evaluation, an evaluation regarding the average width of emotion, an evaluation regarding the rate of change of emotion, an evaluation regarding the average difference between the start and end of emotion, an evaluation regarding the average emotion value, etc.
[0088] The emotion average width is the range of change in the norm of the emotion vector. The emotion change rate is the rate of change in the norm of the emotion vector. The emotion average start-to-end difference is the amount by which the moving average of the norm of the emotion vector changes within a predetermined range. The emotion value start-to-end difference is the amount by which the norm of the emotion vector changes within a predetermined range. The emotion value average is the average of the norm of the emotion vector within a predetermined range. The predetermined range is not particularly limited, and may be, for example, the entire sentence, a range corresponding to multiple consecutive analysis units, etc.
[0089] The evaluation includes an evaluation on the average emotional range and / or an evaluation on the rate of emotional change, so that the analysis device 1 can display an evaluation of the pace and sharpness of the sentence. The evaluation includes an evaluation on the average emotional difference from start to finish and / or the emotional value difference from start to finish, so that the analysis device 1 can display an evaluation of whether the sentence is a complete sentence, a sentence that continues to the next sentence, or an indecisive sentence. The evaluation includes an evaluation on the average emotional value, so that the analysis device 1 can display an evaluation of the impact that the sentence has on emotions.
[0090] The following steps S6 to S8 are an example of a procedure for generating the correlation evaluation described above. The analysis device 1 can generate evaluations for other evaluations in a similar manner.
[0091] [Step S6: Generate the norm of the emotion vector and the moving average of the norm] The control unit 11 executes the evaluation generation unit 114 in cooperation with the storage unit 13. The control unit 11 then performs a process of generating the norm of the emotion vector generated in step S5 and the moving average of the norm for each analysis unit divided in step S4 (step S6, norm generation step). The control unit 11 moves the process to step S7.
[0092] The norm of the emotion vector generated by the norm generation step is not particularly limited. The norm may be any norm exemplified by, for example, the maximum norm, Euclidean norm, p-th order average norm, norm determined by inner product, etc. The maximum norm is a norm that takes the largest value of the elements of the emotion vector as its value. The Euclidean norm is a norm that takes the square root of the sum of squares of the elements contained in the emotion vector as its value. The p-th order average norm is a norm that takes the p-th root of the sum of p-th powers of the elements contained in the emotion vector as its value. The norm determined by inner product is a norm that takes the square root of the inner product of a specified vector and the emotion vector as its value.
[0093] It is particularly preferable that the norm is a maximum norm, so that the norm of an emotion vector can indicate the strength of the strongest emotion contained in the emotion vector.
[0094] The moving average generated in the norm generation step is not particularly limited. The moving average may be a known moving average, for example, a simple moving average, a weighted moving average, an exponential moving average, etc. The moving average is preferably a moving average of the norm of the emotion vector in the analysis unit to be generated and the norm of the emotion vector in the analysis units before and after it. This allows the analysis device 1 to generate a moving average that makes it easy to understand the correspondence between the analysis units in which the norm of the emotion vector has changed.
[0095] [Step S7: Generate correlation between norm and moving average] The control unit 11 executes the evaluation generating unit 114 in cooperation with the storage unit 13. Then, the control unit 11 performs a process of generating a correlation between the norm and the moving average generated in step S6 (step S7, correlation generating step). The control unit 11 shifts the process to step S8.
[0096] The correlation generated by the correlation generating step is not particularly limited. The correlation may be a known correlation exemplified by, for example, Pearson's product moment correlation coefficient, Spearman's rank correlation coefficient, Kendall's rank correlation coefficient, etc. The data referenced when generating the correlation is not particularly limited, and may be, for example, the transition of the norm of the emotion vector in the analysis unit to be generated and the analysis units before and after it, and the transition of the moving average of the norm, etc. This allows the analysis device 1 to generate a correlation that makes it easy to understand the correspondence with the analysis unit in which the norm of the emotion vector has changed.
[0097] [Step S8: Generate correlation evaluation] The control unit 11 executes the evaluation generating unit 114 in cooperation with the storage unit 13. Then, the control unit 11 performs a process of generating a correlation evaluation based on the correlation generated in step S7 (step S8, correlation evaluation generating step). The control unit 11 shifts the process to step S9.
[0098] The procedure for generating the correlation evaluation in the correlation evaluation generating step is not particularly limited. The procedure may be, for example, a procedure for generating an evaluation corresponding to the correlation value in the entire sentence, a procedure for generating an evaluation corresponding to the correlation value and the norm change pattern in the entire sentence, etc.
[0099] A procedure for generating an evaluation corresponding to the change pattern of the correlation value and norm in the entire text may, for example, be a procedure for generating an evaluation of which of six types the text resembles, based on the change pattern: self-success type, tragic type, comeback type, downfall type, Cinderella type, or Oedipus type.
[0100] The success-to-be type corresponds to a change pattern in which the intensity of emotions continually rises. The tragedy type corresponds to a change pattern in which the intensity of emotions continually falls. The comeback type corresponds to a change pattern in which the intensity of emotions goes from falling to rising. The downfall type corresponds to a change pattern in which the intensity of emotions goes from rising to falling. The Cinderella type corresponds to a change pattern in which the intensity of emotions rises, falls, rises again. The Oedipus type corresponds to a change pattern in which the intensity of emotions falls, rises, falls again.
[0101] In the evaluation generation step of this embodiment, not only the norm but also the correlation value is used, so that the analysis device 1 can easily distinguish between rising and falling portions. This allows the analysis device 1 to easily generate an evaluation of which of the six patterns the text is closest to. The user can then easily grasp the characteristics of the text from the evaluation.
[0102] (Evaluation including advice) The evaluation generated in the evaluation generating step may include advice for improving the text acquired in the text acquiring step. This allows the user to improve the text using the advice. The advice is preferably advice based on the above-mentioned evaluation. Examples of such advice include advice to correct a part that is out of a preferable norm-correlation change pattern in the above-mentioned type, advice to bring the average emotion width and / or the emotion change rate closer to a value suitable for the type, advice to bring the average emotion difference and / or the emotion value difference closer to a value suitable for the type, advice to make the average emotion value larger, and the like.
[0103] Although not essential, the analysis device 1 preferably executes a summary generation step (step S9) of generating a summary.
[0104] [Step S9: Generate summary] The control unit 11 executes the summary generation unit 115 in cooperation with the storage unit 13. Then, the control unit 11 performs a process of generating a summary of the text acquired in step S2 (step S9, summary generation step). The control unit 11 moves the process to step S10.
[0105] The process of generating a summary includes a procedure of generating a summary of the sentence based on the sentence acquired in step S2, the analysis units divided in step S4, and machine learning (second machine learning data) by the second machine learning unit 120. This procedure includes a procedure of making an inference regarding the summary using the second machine learning data.
[0106] Regarding summarization, there may be a procedure for enumerating elements in a text related to the topic of the text in advance and generating a summary based on the enumeration. However, the elements in a text related to the topic are diverse, including words, expressions, line breaks, symbols, etc. Therefore, performing this enumeration manually may require a great deal of work. Furthermore, if there are omissions in the enumeration, an inaccurate summary may be generated.
[0107] The procedure for generating a summary based on machine learning by the second machine learning unit 120, which will be described later, can generate a summary without having to perform this enumeration manually, thereby enabling the procedure to generate a more accurate summary with less effort.
[0108] Although not essential, it is preferable that the analysis device 1 executes a character information acquisition step (steps S10 to S11) of acquiring character information, and an image generation step (step S12) of generating an image of the character.
[0109] [Step S10: Determine whether character information can be acquired] The control unit 11 executes the character information acquisition unit 116 in cooperation with the storage unit 13 and the communication unit 14. Then, the control unit 11 performs a process of determining whether the character information can be acquired (step S10, a character information acquisition possibility determination step). If it is determined that the character information can be acquired, the control unit 11 shifts the process to step S2. If it is not determined that the character information can be acquired, the control unit 11 shifts the process to step S13.
[0110] The process of determining whether the character information can be acquired is not particularly limited. For example, the process may be a process of determining that the character information can be acquired when the data of the character can be received from the terminal T, when the position of the character information on the network can be received from the terminal T, and / or when the character information can be acquired from the text stored in the analysis device 1.
[0111] [Step S11: Get character information] The control unit 11 executes the character information acquisition unit 116 in cooperation with the storage unit 13 and the communication unit 14. Then, the control unit 11 executes a process of acquiring the character information determined to be acquireable in step S10 (step S11, character information acquisition execution step). The control unit 11 moves the process to step S12. Note that the process of acquiring the character information includes a process of storing the acquired character information in the character list 133.
[0112] The process of acquiring the character information is not particularly limited, and may include, for example, one or more of the following: receiving data on the character from the terminal T, acquiring the character information from a position of the character information based on the position of the character information on the network, acquiring the character information from a sentence and / or an analysis unit by a process using machine learning, etc.
[0113] The character information is not particularly limited, and may be, for example, information including text having words and / or expressions indicating the characteristics of the character. The words and / or expressions indicating the characteristics of the character are also referred to as "dedicated phrases for image output." When the character information includes such text, it is preferable that the character information acquisition execution step includes a procedure for extracting dedicated phrases for image output from the text including the dedicated phrases for image output. This allows the analysis device 1 to extract dedicated phrases for image output from text such as an introduction to the characters. Then, the analysis device 1 can generate an image based on the extracted dedicated phrases for image output.
[0114] [Step S12: Generate images of the characters] The control unit 11 executes the image generation unit 117 in cooperation with the storage unit 13. Then, the control unit 11 performs a process of generating an image of a character based on the character information acquired in step S11 (step S12, image generation step). The control unit 11 moves the process to step S13. The process of generating an image of a character includes a process of storing the generated image in the character list 133.
[0115] The process of generating an image includes a procedure of generating an image based on the character information acquired in step S11 and machine learning (third machine learning data) by the third machine learning unit 121. The procedure preferably includes a de-diffusion process based on a diffusion model, a latent diffusion model, and / or a cold diffusion model. This allows the analysis device 1 to simultaneously generate an image with less computational complexity than image generation using an adversarial network and generate an image that reflects the character information.
[0116] After generating the evaluation or the like, the analysis device 1 executes a display command step (step S13) for commanding the display of the generated evaluation.
[0117] [Step S13: Command to display evaluation] The control unit 11 executes the display command unit 118 in cooperation with the storage unit 13 and the communication unit 14. Then, the control unit 11 performs a process of commanding the terminal T to display the evaluation generated in step S8 (step S13, display command step). The control unit 11 moves the process to step S14.
[0118] When the analysis process includes a summary generation step, the display command step preferably includes a procedure for commanding the terminal T to display the summary generated in the summary generation step. Also, when the analysis process includes an image generation step, the display command step preferably includes a procedure for commanding the terminal T to display the image generated in the image generation step.
[0119] The display command step preferably allows a command to display a graph of the norm of the emotion vector generated in step S6, allowing the user to easily grasp the change in the intensity of emotion in the text via the graph.
[0120] The display command step preferably allows a command to superimpose the correlation graph generated in step S7 on the norm graph, thereby allowing the user to easily grasp the exciting parts of the text through these two superimposed graphs.
[0121] The display command step is preferably capable of commanding to display an original graph corresponding to the type of the specified emotion among the emotion vectors generated in step S5, so that the user can easily grasp the change in the intensity of the specified emotion in the text through the graph.
[0122] The display command step preferably includes a command to display one or more of the above-mentioned various evaluations regarding the emotion vector, so that a user can easily grasp the characteristics of the text using these evaluations.
[0123] [Step S14: Determine whether to use machine learning to generate emotion vectors] The control unit 11 cooperates with the storage unit 13 to execute the first machine learning unit 119. Then, the control unit 11 performs a process of determining whether to perform machine learning to generate an emotion vector (step S14, first machine learning necessity determination step). If it is determined that machine learning is to be performed, the control unit 11 moves the process to step S15. If it is not determined that machine learning is to be performed, the control unit 11 moves the process to step S16.
[0124] The process of determining whether to generate emotion vectors through machine learning is not particularly limited, and may be, for example, a process of determining that emotion vectors will be generated through machine learning at a specified timing that is periodically set for machine learning the generation of emotion vectors.
[0125] [Step S15: Machine learning to generate emotion vectors] The control unit 11 cooperates with the storage unit 13 to execute the first machine learning unit 119. Then, the control unit 11 executes a process of machine learning the generation of an emotion vector based on the sentence acquired in step S2 and the analysis unit divided in step S4 (step S15, first machine learning execution step). The control unit 11 moves the process to step S16. This procedure includes a procedure of storing the learning data (first machine learning data) obtained by the machine learning in the storage unit 13.
[0126] The process of machine learning the generation of emotion vectors is not particularly limited. The process may be, for example, a procedure of machine learning the generation of emotion vectors from sentences and analysis units using a conditional random field (CRF), a structured support vector machine, a recurrent neural network (RNN), and a long short-term memory (LSTM), as well as a combination or improvement method of these methods.
[0127] [Step S16: Determine whether to use machine learning to generate a summary] The control unit 11 cooperates with the storage unit 13 to execute the second machine learning unit 120. Then, the control unit 11 performs a process of determining whether or not to perform machine learning to generate a summary (step S16, second machine learning necessity determination step). If it is determined that machine learning is to be performed, the control unit 11 shifts the process to step S17. If it is not determined that machine learning is to be performed, the control unit 11 shifts the process to step S18.
[0128] The process of determining whether to generate a summary by machine learning is not particularly limited, and may be, for example, a process of determining that the summary will be generated by machine learning at a specified timing that is periodically set for machine learning to generate a summary.
[0129] [Step S17: Machine learning to generate summaries] The control unit 11 cooperates with the storage unit 13 to execute the second machine learning unit 120. Then, the control unit 11 performs a process of machine learning to generate a summary based on the sentence acquired in step S2 and the analysis units divided in step S4 (step S17, second machine learning execution step). The control unit 11 moves the process to step S16. This procedure includes a procedure of storing the learning data (second machine learning data) obtained by the machine learning in the storage unit 13.
[0130] The process of machine learning the generation of summaries is not particularly limited. For example, the process may be a procedure of machine learning the generation of summaries from sentences and analysis units using an Encoder-Decoder model, a recurrent neural network with an attention mechanism, a Transformer, a Reformer, or a combination or improvement method of these methods.
[0131] [Step S18: Determine whether to use machine learning to generate images] The control unit 11 executes the third machine learning unit 121 in cooperation with the storage unit 13. Then, the control unit 11 performs a process of determining whether to perform machine learning to generate an image (step S18, third machine learning necessity determination step). If it is determined that machine learning is to be performed, the control unit 11 moves the process to step S19. If it is not determined that machine learning is to be performed, the control unit 11 moves the process to step S1, and repeats the processes from step S1 to step S19.
[0132] The process of determining whether to use machine learning to generate an image is not particularly limited, and may be, for example, a process of determining that machine learning will be used to generate an image at a specified timing that is periodically set for machine learning to generate an image.
[0133] [Step S19: Machine learning to generate images] The control unit 11 cooperates with the storage unit 13 to execute the third machine learning unit 121. Then, the control unit 11 performs a process of machine learning to generate an image based on the character information acquired in step S11 (step S19, third machine learning execution step). The control unit 11 shifts the process to step S1, and repeats the processes from step S1 to step S19. This procedure includes a procedure of storing the learning data (third machine learning data) obtained by the machine learning in the storage unit 13.
[0134] The process of generating images by machine learning is not particularly limited. For example, the process may be a procedure of generating images from character information by machine learning using a diffusion model, a latent diffusion model, and / or a cold diffusion model, or a combination or improvement method of these methods.
[0135] [Effects of analysis processing] By executing the analysis process of this embodiment, the analysis device 1 can divide the acquired text into multiple analysis units and generate a transition of the emotion vector for each analysis unit. In other words, the analysis device 1 can generate a transition of how multiple types of emotion values change for each analysis unit in the acquired text.
[0136] As described above, the norm of an emotion vector corresponds to the overall strength of emotion in the corresponding analysis unit. On the other hand, the moving average of the norm of an emotion vector corresponds to the overall strength of emotion in not only the corresponding analysis unit but also the surrounding analysis units. Then, by using the correlation between the norm and the moving average of the norm, it is possible to evaluate which analysis unit corresponds to the climax point in a text where the overall strength of emotion changes suddenly and becomes stronger.
[0137] The analysis device 1 that executes the analysis process of this embodiment can generate and display a correlation evaluation regarding the correlation between the norm of the emotion vector and the moving average of the norm. Therefore, the analysis device 1 can display the analysis result regarding the exciting part of the text. Therefore, the user can more easily grasp the characteristics of the text.
[0138] [Example of use of analytical device 1] The following describes an example of how the analysis device 1 of this embodiment can be used.
[0139] [Specify the text to be analyzed] The user specifies a sentence to be analyzed. This specification is realized by uploading the sentence to be analyzed to the analysis device 1, transmitting information specifying a sentence that has already been uploaded, or the like.
[0140] [Run Analysis] The analysis device 1 acquires a specified sentence and divides it into analysis units (scenes). Then, the analysis device 1 generates a transition of an emotion vector for each analysis unit. The analysis device 1 generates a norm of the emotion vector and a moving average of the norm. The analysis device 1 generates a correlation between the norm and the moving average, and generates an evaluation based on the correlation.
[0141] 8 is an example of an analysis result by the analysis device 1 of this embodiment. In the example shown in FIG. 8, the analysis result of a sentence with the title "What is the △△ market?" is displayed on the terminal T.
[0142] In this example, the title of the sentence being analyzed, graphs showing the trends in the emotion vector norm (solid line), moving average (dotted line), and correlation (dashed line) for each scene (analysis unit), and text showing the evaluation are displayed.
[0143] From the graph of the emotion vector norm shown by the solid line, the user can easily grasp the transition of the intensity of emotion in the text. From the graph of the emotion vector norm moving average shown by the dashed-dotted line, the user can roughly grasp the transition of the intensity of emotion in the text. And from the graph of the correlation between the emotion vector norm and the moving average of the norm shown by the dashed line, the user can easily grasp that the exciting points in the text are near the third scene at the beginning and near the ninth scene at the end.
[0144] In addition, the user can understand from the evaluation text that the style of the writing is close to the Oedipus type. The user can then improve the writing by using the advice to lower the midpoint of the flat and steady writing and to make the exciting points more distinct.
[0145] Therefore, the analysis device 1 of this embodiment enables a user to easily understand the characteristics of a sentence and improve the sentence.
[0146] <Modification> Analysis of text containing images The analysis device 1 can be configured to analyze features of text that includes images.
[0147] The analysis device 1 of this modified example differs from the analysis device 1 of the embodiment in the following points.
[0148] [Analyzer 1] When the analysis device 1 of this modified example is configured as a server group, it is preferable that the server group further includes a deep learning server for strings that generates trends in emotion vectors related to sentences, and a deep learning server for images that generates trends in emotion vectors related to images.
[0149] [Storage section 13] In addition to the first machine learning in which machine learning is performed to generate emotion vectors based on analysis units that are sentences, the storage unit 13 of this modification stores a fourth machine learning (predetermined machine learning) in which machine learning is performed to generate emotion vectors based on analysis units that are images. Furthermore, the sentence list 131 stored in the storage unit 13 of this modification is configured to be able to store sentences that include images. Additionally, the analysis unit list 132 stored in the storage unit 13 of this modification is configured to be able to store analysis units that are images.
[0150] [Analysis process of this modified example] The analysis process of this modification differs from the analysis process of the embodiment in the following points.
[0151] [Steps S1 to S2 (text acquisition steps)] The text acquisition step of this modified example is capable of acquiring text including images. Examples of such text include various types of text, such as a web page including text and images, a PDF file including text and images, and an electronic book including text and images.
[0152] [Steps S3 to S4 (text segmentation steps)] In the text division step of this modified example, when it is determined that the style of the text includes images, the text can be divided so that each image becomes an independent analysis unit.
[0153] [Step S5 (emotion vector generation step)] In the emotion vector generation step of this variation, when the analysis unit to be generated is a sentence, a trend of the emotion vector is generated based on a first machine learning, and when the analysis unit to be generated is an image, a trend of the emotion vector is generated based on a fourth machine learning.
[0154] The emotion vector generation step of this modification includes a procedure of correcting the emotion vectors generated based on the first and / or fourth machine learning so that the transitions of the emotion vectors generated based on the first machine learning and the transitions of the emotion vectors generated based on the fourth machine learning constitute a transition of a group of emotion vectors. This enables the analysis device 1 to synthesize emotion vectors generated based on different machine learning to form a transition of a group of emotion vectors.
[0155] [Effects of the analysis device 1 of this modified example] When a text contains images such as photographs and illustrations, such images may affect the emotions evoked by the text. For example, when a reader sees a photograph depicting a tragic scene, the reader may be evoked with emotions such as sadness, anger, and fear. Also, when a reader sees an illustration depicting a smiling person, the reader may be evoked with emotions such as anticipation and joy. Therefore, there is a demand for analyzing the characteristics of a text that includes images while taking the images into consideration.
[0156] The analysis device 1 of this modification is capable of analyzing the characteristics of a sentence that includes an image, taking into consideration not only the sentence itself but also the image. The analysis device 1 of this modification generates an emotion vector related to the image using a fourth machine learning in which machine learning is performed to generate an emotion vector based on an analysis unit that is an image, so that the emotion vector related to the image can be generated by an objective algorithm based on machine learning.
[0157] Therefore, the analysis device 1 of this modification can provide analysis results that enable easy understanding of the characteristics of text that includes images.
[0158] [Analysis process when the analysis device 1 of the modified example is a server group] Fig. 9 is a flowchart showing an example of a preferred flow of analysis processing executed by an analysis device 1, which is a server group, in the modified example. Fig. 10 is a diagram following Fig. 9. Below, an example of a preferred flow of analysis processing will be described using Figs. 9 and 10 when the analysis device 1 in this modified example is a server group including a normal server, an image deep learning server, and a character string deep learning server.
[0159] First, among the process flow in the normal server (steps S101 to S110), steps S101 to S104 will be described.
[0160] [Step S101: Obtain text] The normal server executes a process of acquiring a sentence to be analyzed (step S101, sentence acquisition step). The normal server moves the process to step S102. The sentence acquisition step may be the same as steps S1 to S2 in FIG.
[0161] [Step S102: Divide into analysis units] The normal server executes a process of dividing the sentence acquired in step S101 into analysis units (step S102, sentence division step). The normal server moves the process to step S103. The sentence division step may be the same as steps S3 to S4 in FIG.
[0162] [Step S103: Making it possible to obtain analysis units from other servers] The normal server executes a process to make each of the analysis units divided in step S102 available for acquisition from another server (step S103, acquisition preparation step). The normal server moves the process to step S104. The acquisition preparation step includes, for example, a procedure for making the analysis units available for acquisition using an identifier such as a URL. There is no particular limitation on the storage destination of the analysis units available for acquisition from another server. The storage destination may be, for example, the normal server, a server that publishes the text acquired in step S101, etc.
[0163] [Step S104: Command analysis of analysis unit] The normal server executes a process of instructing a server corresponding to the type of analysis unit to analyze the analysis unit (step S104, analysis instruction step).
[0164] In the analysis command step, the normal server commands the image deep learning server to analyze the analysis unit (analysis unit (image) D1) consisting of an image. Then, when the emotion vector D3 is obtained from the image deep learning server, the normal server transfers the process to step S105.
[0165] In addition, in the analysis command step, the normal server commands the deep learning server for character strings to analyze an analysis unit (analysis unit (sentence) D2) that does not include an image. Then, when the normal server obtains the emotion vector D4 from the deep learning server for character strings, the process proceeds to step S106.
[0166] Before describing step S105 and subsequent steps, the processing in the deep learning server for images (steps S201 to S203) and the processing in the deep learning server for strings (steps S301 to S304) will be described.
[0167] The following is an explanation of the processing in the image deep learning server (steps S201 to S203).
[0168] [Step S201: Obtain the fourth machine learning] The image deep learning server executes a process of acquiring a fourth machine learning related to generation of an emotion vector based on an image (step S201, fourth machine learning acquisition step). The image deep learning server shifts the process to step S202.
[0169] [Step S202: Execute inference related to the image] The image deep learning server executes a process of inferring an emotion vector related to the image of the analysis unit D1 instructed to be analyzed in step S104 based on the fourth machine learning (step S202, image inference step). The image deep learning server shifts the process to step S203.
[0170] [Step S203: Return the inference result as an emotion vector] The image deep learning server executes a process of returning the inference result of the emotion vector inferred in step S202 to the normal server as emotion vector D3 (step S203, image inference result providing step). The image deep learning server ends the process.
[0171] The following is an explanation of the processing in the deep learning server for strings (steps S301 to S304).
[0172] [Step S301: Separate words] The deep learning server for character strings executes a process of segmenting the sentence of the analysis unit D2 instructed to be analyzed in step S104 (step S301, segmentation step). The deep learning server for character strings transfers the process to step S303. The segmentation step is not particularly limited. The segmentation step includes a procedure of segmenting the sentence of the analysis unit D2 in a processing unit suitable for analysis in the first machine learning. The processing unit is, for example, a phrase, a word, or the like.
[0173] [Step S302: Obtain the first machine learning] The deep learning server for character strings executes a process of acquiring a first machine learning related to generation of an emotion vector based on a sentence (step S302, first machine learning acquisition step). The deep learning server for character strings shifts the process to step S303.
[0174] [Step S303: Execute inference related to the text] The deep learning server for character strings executes a process of inferring an emotion vector related to the sentence of the analysis unit D2 separated in step S301 based on the first machine learning (step S303, character string inference step). The deep learning server for character strings shifts the process to step S304.
[0175] [Step S304: Return the inference result as an emotion vector] The deep learning server for strings executes a process of returning the inference result of the emotion vector inferred in step S303 to the normal server as emotion vector D4 (step S203, string inference result providing step). The deep learning server for strings ends the process.
[0176] The explanation returns to the content related to the processing in the normal server.
[0177] [Step S105: Correct the emotion vector related to the image] The normal server that acquires the emotion vector D3 from the image deep learning server executes a process to correct the emotion vector D3 related to the image (step S105, correction step). The normal server moves the process to step S106.
[0178] [Step S106: Extract emotion vector] The normal server executes a process to extract the emotion vector D3 corrected in step S105 or the emotion vector D4 acquired from the deep learning server for character strings (step S106, extraction step). The normal server moves the process to step S107.
[0179] [Step S107: Determine whether all analytical units have been inferred] The normal server executes a process of determining whether all the analysis units divided in step S102 have been inferred (step S107, inference completion determination step). If it is determined that all have been inferred, the normal server transfers the process to step S108. If it is determined that all have not been inferred, the normal server transfers the process to step S104.
[0180] [Step S108: Store the results] The normal server executes a process of storing the results including the emotion vector D3 and emotion vector D4 extracted in step S106 (step S108, storage step). The normal server moves the process to step S109.
[0181] [Step S109: Generate norms of emotion vectors, etc.] The normal server executes a process to generate norms, etc. of the emotion vectors stored in step S109 (step S109, norm, etc. generation step). The normal server moves the process to step S110. The norm, etc. generation step may be the same as step S6 in FIG. 5. The norm, etc. generation step generates a norm of the emotion vector and a moving average of the norm.
[0182] [Step S110: Generate and display correlation evaluations related to norms, etc.] The normal server executes a process of generating and displaying correlation evaluations etc. related to the norms etc. generated in step S110 (step S110, correlation evaluation etc. generating and displaying step). The normal server ends the process. The correlation evaluation etc. generating and displaying step may be similar to step S7 in FIG. 5 to step S13 in FIG. 6. The correlation evaluation etc. generating and displaying step generates a correlation evaluation related to the correlation between a norm and a moving average of the norm, and displays an evaluation of the sentence including the correlation evaluation.
[0183] [Effect of analysis processing when the analysis device 1 of the modified example is a server group] Through the above-described analysis process, the analysis device 1, which is a server group, can generate emotion vectors corresponding to different processing units in parallel in the deep learning server for strings and the deep learning server for images. As a result, the analysis device 1 can generate and display evaluations related to text more quickly than an analysis device 1 configured as an integrated device, despite performing more complex processing that also takes into account emotion vectors related to images. Furthermore, each server of the analysis device 1, which is a server group, can be configured more simply and with higher maintainability than an analysis device 1 configured as an integrated device. This can improve the maintainability and cost-effectiveness of the analysis device 1.
[0184] [Machine learning for generating emotion vectors based on image parsing units] The analysis device 1 of this modification is preferably configured to include a fourth machine learning unit (not shown) that executes machine learning related to the fourth machine learning. This allows the analysis device 1 to further perform machine learning of generating emotion vectors based on analysis units that are images. This allows the analysis device 1 to further improve the accuracy of emotion analysis during its operation. At this time, it is preferable that the server group is configured to further include a learning server (image learning server) that realizes the fourth machine learning unit. This allows the analysis device 1 to execute evaluation and learning of sentences in parallel. Then, the analysis device 1 can obtain the above-mentioned various effects related to parallel execution.
[0185] <Modification 2> Analysis of text including videos and images, or text without images The analysis device 1 can be configured to analyze features of videos, text with images, or text without images or the like.
[0186] The analysis device 1 of the modified example 2 is similar to the analysis device 1 of the modified example.
[0187] [Analysis process of modified example 2] 11 is a flowchart showing another example of a preferable flow of the analysis process executed by the analysis device 1, which is a server group, in the modification 2. The analysis process of the modification 2 differs from the analysis process of the modification in the following points.
[0188] [Step S121: Get file] In the analysis process of the modified example 2, the normal server executes a process of acquiring a file from the terminal T or the like (step S121, file acquisition step) instead of executing the text acquisition step of step S101. The normal server moves the process to step S122.
[0189] [Step S122: Analysis unit generation process] In the analysis process of the modified example 2, the normal server executes an analysis unit generation process (step S122, analysis unit generation process execution step) instead of executing the sentence division step of step S102. The normal server moves the process to step S103. The analysis unit generation process will be described in more detail later with reference to FIG. 12 and FIG. 13.
[0190] [Step S125: Inference result correction process] In the analysis process of the modified example 2, the normal server executes an inference result correction process (step S125, an inference result correction process execution step) instead of executing the correction step of step S105. The normal server transfers the process to step S106. The inference result correction process will be described in more detail later with reference to FIG. 14 and FIG. 15.
[0191] [Analysis unit generation process] Fig. 12 is a flowchart of the analysis unit generation process executed in step S122 of Fig. 11. Fig. 13 is a diagram continuing from Fig. 12. The following is an example of a preferred flow of the analysis unit generation process executed in step S122 of Fig. 11 using Figs. 12 and 13.
[0192] [Step S401: Obtain user input] The normal server executes a process of acquiring user input from terminal T or the like (step S401, input acquisition step). The normal server moves the process to step S402. The input acquisition step is not particularly limited. The input acquisition step includes, for example, a procedure of acquiring input from a GUI displayed on terminal T.
[0193] [Step S402: Determine if it is a video] The normal server executes a process of determining whether the file acquired in step S121 is a moving image (step S402, first moving image determination step). If it is determined that the file is a moving image, the normal server transfers the process to step S403. If it is not determined that the file is a moving image, the normal server transfers the process to step S406.
[0194] [Step S403: Divide the audio of the video into processing units] The normal server executes a process of dividing the audio of the video determined in step S402 into processing units (step S403, video dividing step). The normal server moves the process to steps S404 and S414. The processing unit is not particularly limited, and may be, for example, the number of frames specified by the user in the input acquired in step S401.
[0195] Following step S403, the normal server executes in parallel a series of processes from step S404 to step S405 and a series of processes from step S414 to step S415. This parallel execution enables the normal server to process audio and images simultaneously and generate analysis units for moving images in a shorter time.
[0196] [Step S404: Convert voice to text] The normal server executes a process of converting the voice divided into processing units in step S403 into text (step S404, text conversion step). The normal server moves the process to step S405. The process of converting voice into text is not particularly limited. The process includes, for example, a procedure of converting voice into text by voice recognition using deep learning.
[0197] [Step S405: Modify the text obtained by conversion] The normal server executes a process of correcting the text obtained by the conversion in step S404 (step S405, text correction step). After completing the process in step S415, the normal server ends the analysis unit generation process and returns to the original process. The process of correcting the text is not particularly limited. The process includes, for example, a procedure of correcting the text based on the user's input, a procedure of correcting the text by automatic proofreading using deep learning, and the like.
[0198] [Step S414: Divide the images of the video into processing units] The normal server executes a process of dividing the images of the moving image determined in step S402 into processing units (step S414, moving image dividing step), and proceeds to step S415.
[0199] [Step S415: Storing images obtained by division] The normal server executes a process of storing the images obtained by the division in step S414 in the memory unit of the normal server (step S415, moving image storage step). After completing the process in step S405, the normal server ends the analysis unit generation process and returns to the original process.
[0200] [Step S406: Determine if images and text are mixed] The normal server executes a process to determine whether the file acquired in step S121 is a file containing a mixture of images and text (step S406, first mixed file determination step). If it is determined that the file is a mixed file, the normal server transfers the process to step S407. If it is not determined that the file is a mixed file, the normal server transfers the process to step S409. Note that the first mixed file determination step also performs the same process on a file containing only images as when it is determined that the file is a mixed file.
[0201] [Step S407: Identify image and text format] The normal server executes a process of determining the format of each of the images and text determined in step S406 (step S407, image / text format determination step). The normal server ends the analysis unit generation process and returns to the original process. This allows the analysis device 1 to perform processes such as inference according to the format, similar to the above-mentioned configuration.
[0202] [Step S408: Store image] The normal server executes a process of storing the image, the format of which has been determined in step S407, in the storage unit of the normal server (step S408, image storage step).The normal server ends the analysis unit generation process and returns to the original process.
[0203] [Step S409: Determine the text format] The normal server executes a process of determining the format of the text determined in step S406 (step S409, text format determination step). The normal server ends the analysis unit generation process and returns to the original process. This allows the analysis device 1 to perform processes such as inference according to the format, similar to the above-mentioned configuration.
[0204] By executing a file acquisition step instead of executing the text acquisition step of step S101, and by executing an analysis unit generation process instead of executing the text division step of step S102, the normal server of variant example 2 can divide various files, such as videos, text including images, or text without images, into analysis units.
[0205] [Inference result correction process] Fig. 14 is a flowchart of the inference result correction process executed in step S125 of Fig. 11. Fig. 15 is a diagram following Fig. 14. The following is an example of a preferable flow of the inference result correction process executed in step S125 of Fig. 11 using Figs. 14 and 15.
[0206] [Step S501: Determine if it is a video] The normal server executes a process of determining whether the file acquired in step S121 is a moving image (step S501, second moving image determination step). If it is determined that the file is a moving image, the normal server transfers the process to step S502. If it is not determined that the file is a moving image, the normal server transfers the process to step S504.
[0207] [Step S502: Select images and text that have a strong impact on the scene] The normal server executes a process of selecting an inference result (image) that has a strong influence on the scene and an inference result (text) that has a strong influence on the scene from among the inference results related to the video determined in step S501 (step S502, first representative image / text selection step). The normal server moves the process to step S503. Here, "having a strong influence on the scene" refers to an inference result with the largest emotion value.
[0208] [Step S503: Correct the inference result based on the selected images and text] The normal server executes a process to correct the inference result based on the image and text selected in step S502 (step S503, video inference result correction step). The normal server ends the inference result correction process and returns to the original process. The video inference result correction step includes a procedure of, for example, adding up the inference result of the image and the inference result of the dialogue based on the dialogue (text) and dividing the sum by the number of elements to obtain the inference result. Note that, when inferring an emotion vector related to a video, if the image contains text, it is preferable that the analysis device 1 infers an emotion vector using the image as an image without extracting text from the image using OCR or the like. This reduces the calculation load in the inference result correction process.
[0209] [Step S504: Determine if images and text are mixed] The normal server executes a process to determine whether the file acquired in step S121 is a file containing both images and text (step S504, second image / text mixed determination step). If it is determined that the file is a mixed file, the normal server moves the process to step S505. If it is not determined that the file is a mixed file, the normal server moves the process to step S507. Note that the second image / text mixed determination step performs the same process on a file containing only images as it does on a file containing only images that is determined to be a mixed file.
[0210] [Step S505: Select images and text that have a strong impact on the scene] The normal server executes a process of selecting an inference result (image) that has a strong influence on the scene and an inference result (text) that has a strong influence on the scene from among the inference results related to the file determined in step S504 (step S505, second representative image / text selection step). The normal server moves the process to step S506.
[0211] [Step S506: Correct the inference result based on the selected images and text] The normal server executes a process to correct the inference result based on the image and text selected in step S505 (step S506, mixed file inference result correction step). The normal server ends the inference result correction process and returns to the original process. Note that, in the inference of the emotion vector related to the mixed file, if the image contains characters, it is preferable that the analysis device 1 infers the emotion vector using the image as an image without extracting the characters from the image using OCR or the like. This reduces the calculation load in the inference result correction process. However, if the image is an image of content such as a comic book in which dialogue has a large influence on the emotion vector, the analysis device 1 can optionally extract the characters from the image using OCR or the like and use them as the subject of the emotion vector inference.
[0212] [Step S507: Select sentences that have a strong influence on the scene] The normal server executes a process of selecting an inference result (sentence) that has a strong influence on the scene from among the inference results related to the file determined in step S504 (step S507, sentence selection step). The normal server ends the inference result correction process and returns to the original process.
[0213] By executing a file acquisition step instead of executing the text acquisition step of step S101, and by executing an inference result correction process instead of executing the correction step of step S105, the normal server of variant example 2 can correct the inference results related to various files divided into analysis units, whether they are videos, text including images, or text without images.
[0214] This allows the analysis device 1 of the second modification to analyze the characteristics of a wide variety of files, such as videos, text including images, and text without images.
[0215] An example of a preferred embodiment of the present invention has been described above. However, within the scope of the concept of the present invention, various modifications and alterations can be conceived by those skilled in the art. Therefore, it is understood that such modifications and alterations are within the scope of the present invention, as is the case with the above-mentioned example. For example, those in which a person skilled in the art appropriately adds, deletes or modifies components, or adds, omits or modifies conditions of steps, to the above-mentioned embodiment, are included in the scope of the present invention, as is the case with the above-mentioned example, so long as they include the gist of the present invention. [Explanation of symbols]
[0216] S Analysis System 1 Analyzer 11 Control section 111 Text acquisition section 112 Sentence division part 113 Emotion Vector Generation Unit 114 Evaluation Generation Unit 115 Summary generator 116 Character information acquisition department 117 Image Generation Unit 118 Display command section 119 Machine Learning Department 1 120 2nd Machine Learning Department 121 3rd Machine Learning Department 13 Storage section 131 List of Articles 132 List of analysis units 133 Character List 14 Communications Department N Network T-Terminal
Claims
1. A text acquisition unit capable of acquiring a text; A text division unit capable of dividing the text into a plurality of analysis units; an emotion vector generation unit capable of generating a transition of an emotion vector for each analysis unit in the sentence; an evaluation generating unit capable of generating an evaluation for a transition of the emotion vector; A display command unit capable of commanding a display of the evaluation; A first machine learning unit capable of machine learning the generation of the emotion vector based on the sentence and the analysis unit; Equipped with The emotion vector is a vector based on the intensity of each of a plurality of types of emotions, the emotion vector generation unit is capable of generating a transition of the emotion vector based on the sentence, the analysis unit, and machine learning by the first machine learning unit; The evaluation generating unit is capable of generating a correlation evaluation regarding a correlation between a norm of the emotion vector and a moving average of the norm. A text analysis device.
2. a summary generator capable of generating a summary of the text; A second machine learning unit capable of machine learning the generation of the summary based on the sentence and the analysis unit; Further equipped with The summary generation unit is capable of generating the summary based on the sentence and machine learning by the second machine learning unit; The display command unit can further command the display of the summary. The analytical device of claim 1 .
3. A character information acquisition unit capable of acquiring character information of characters appearing in the text; an image generating unit capable of generating an image of the character based on the character information; A third machine learning unit capable of machine learning the generation of the image based on the character information; Further equipped with The image generation unit is capable of generating the image based on machine learning by the third machine learning unit, The display command unit is further capable of commanding display of the image. The analytical device of claim 1 .
4. The text acquisition unit is capable of acquiring text including images, The text segmentation unit is capable of segmenting the text including images into a plurality of analysis units including an analysis unit not including an image and an analysis unit including an image, The emotion vector generation unit For an analysis unit that does not include an image, a transition of the emotion vector can be generated based on machine learning by the first machine learning unit, For an analysis unit consisting of an image, a transition of the emotion vector can be generated based on a predetermined machine learning related to generation of an emotion vector based on an image. The analytical device of claim 1 .
Citation Information
Patent Citations
Document content discriminating device, document, paper band, document content discriminating program
JP2003178083A
Sentence analyzer, method, and program
JP2022026278A
Cited By
Support device for editing multimedia content
JP7899429B1
