Moral analysis device, moral analysis method, and program
The morality analysis device and method address the challenge of objectively evaluating moral expressions in text data by extracting and classifying morality-related words, enabling effective corporate responses to ethical issues.
Patent Information
- Application Number
- JP2021132826
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-08-17
- Publication Date
- 2025-11-25
- Estimated Expiration
- 2041-08-17
AI Technical Summary
Existing technologies struggle to quantify and objectively evaluate moral expressions related to social responsibility, corporate ethics, and human rights in large amounts of text data, leading to inadequate responses to incidents and a lack of personalized and specialized knowledge in text data analysis.
A morality analysis device and method that extracts morality-related words from text data using a dictionary-based approach, analyzes moral values, and visualizes the results, incorporating sentiment analysis to classify expressions as virtue or violation words.
Enables objective evaluation and visualization of moral expressions in text data, facilitating appropriate responses to ethical issues by quantifying and categorizing moral values, enhancing corporate decision-making.
Smart Images

Figure 0007774993000001 
Figure 0007774993000002 
Figure 0007774993000003
Abstract
Description
[Technical Field]
[0001] The present disclosure relates to a morality analysis device, a morality analysis method, and a program. [Background technology]
[0002] The widespread use of social media, such as blogs and social networking services, has led to the accumulation of large amounts of text data. Organizations, such as companies, are also increasingly accumulating text data via their intranets. In recent years, there has been a desire to analyze such large amounts of accumulated text data and utilize it in corporate activities. Accordingly, there is a demand for technology that can efficiently extract desired text data from large amounts of text data and quantitatively analyze or visualize it.
[0003] Patent Document 1 discloses a technique for acquiring related words associated with a keyword based on the keyword for acquiring text data, and acquiring text data corresponding to the keyword and the related words. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] Japanese Patent Publication No. 2020-119254 Summary of the Invention [Problem to be solved by the invention]
[0005] In recent years, companies and other organizations have been required to not only provide value but also to consider social responsibility and corporate ethics, such as ESG and Sustainable Development Goals (SDGs), as well as moral aspects such as human rights. As consumer and investor demands for companies have also increased, unintentional human rights violations in product and service development and advertising have frequently led to strong public criticism. When such incidents occur, swift and appropriate action is required. However, quantifying and objectively evaluating moral expressions related to social responsibility, corporate ethics, and human rights has been difficult, and responses to such incidents have traditionally been handled on a personal basis. As a result, the personalities of the individuals responsible and organizational culture can sometimes prevent appropriate responses. Furthermore, as values become increasingly diverse, quantitative and objective analysis of large amounts of text data containing people's opinions can provide clues for addressing issues companies need to address and identify specific improvements in service and product development. Therefore, while text data analysis is important for corporate activities, it has also been problematic in that it cannot be performed appropriately without specialized knowledge and experience.
[0006] The technology described in Patent Document 1 is capable of collecting text data, but does not describe anything about evaluating moral expressions contained in the collected text data.
[0007] An object of the present disclosure is to provide a moral analysis device, a moral analysis method, and a program capable of evaluating moral expressions contained in text data. [Means for solving the problem]
[0008] A morality analysis device according to one aspect of the present disclosure includes an extraction unit that extracts words that match morality-related words from text data as moral expression words based on dictionary data that defines morality-related words related to morality, and an analysis unit that analyzes the moral values of the text data using the moral expression words. [Effects of the Invention]
[0009] According to the present invention, it is possible to evaluate moral expressions contained in text data. [Brief explanation of the drawings]
[0010] [Figure 1] FIG. 1 is a configuration diagram illustrating a hardware configuration of a morality analysis device according to an embodiment of the present disclosure. [Figure 2] FIG. 1 is a diagram illustrating an example of a functional configuration of a morality analysis device according to an embodiment of the present disclosure. [Figure 3] FIG. 10 is a diagram illustrating an example of a query. [Figure 4] FIG. 10 is a diagram illustrating an example of text data. [Figure 5] FIG. 10 is a diagram illustrating an example of a moral foundation dictionary. [Figure 6] 10 is a flowchart illustrating an example of an operation of a data acquisition unit. [Figure 7] 10 is a flowchart illustrating an example of the operation of a sentiment analysis unit and a moral analysis unit. [Figure 8] 10 is a flowchart illustrating an example of a moral analysis process. [Figure 9] 10 is a flowchart illustrating an example of a morality determination process. [Figure 10] FIG. 10 is a diagram illustrating an example of processed data. [Figure 11] 10 is a flowchart illustrating an example of an operation of a processed data display unit. [Figure 12] FIG. 10 illustrates an example of a dashboard. [Figure 13] FIG. 10 is a diagram illustrating an example of a search area. [Figure 14] FIG. 10 is a diagram illustrating an example of a pie chart area. [Figure 15] FIG. 10 is a diagram showing an example of a moral foundation ratio area. [Figure 16] FIG. 10 is a diagram showing an example of a moral foundation counting area. [Figure 17] FIG. 10 is a diagram showing an example of a moral foundation ranking area. [Figure 18] FIG. 10 is a diagram illustrating an example of a timeline area. [Figure 19] FIG. 10 is a diagram illustrating an example of a word cloud area. DETAILED DESCRIPTION OF THE INVENTION
[0011] Hereinafter, embodiments of the present disclosure will be described with reference to the drawings.
[0012] Fig. 1 is a configuration diagram showing the hardware configuration of a morality analysis device according to an embodiment of the present disclosure. The morality analysis device 10 shown in Fig. 1 is, for example, an information processing device. The morality analysis device 10 may be implemented using a cloud server provided by a cloud system, or may be implemented using a terminal device such as a personal computer (PC).
[0013] 1 includes a processor 11, a main memory device 12, an auxiliary memory device 13, an input device 14, an output device 15, and a communication device 16. These are connected to each other so as to be able to communicate with each other via communication means such as a bus (not shown).
[0014] The processor 11 is configured using, for example, a CPU (Central Processing Unit) and an MPU (Micro Processing Unit). The processor 11 realizes various functions of the morals analysis device 10 by reading and executing programs (computer programs) stored in the main memory device 12. The main memory device 12 is a device that stores programs and data, and is, for example, a ROM (Read Only Memory), a RAM (Random Access Memory), and a non-volatile semiconductor memory (NVRAM (Non Volatile RAM)).
[0015] The auxiliary storage device 13 is configured, for example, with a hard disk drive, an SSD (Solid State Drive), an optical storage device (for example, a CD (Compact Disc) or a DVD (Digital Versatile Disc)), an IC card, an SD memory card, or the like. A storage system or a cloud server may also be used as the auxiliary storage device 13. The auxiliary storage device 13 stores programs and data. The programs and data stored in the auxiliary storage device 13 are loaded into the main storage device 12 as needed.
[0016] The input device 14 is configured using, for example, a keyboard, a mouse, a touch panel, a card reader, and a voice input device. The input device 14 accepts various information from the user who uses the moral analysis device 10. The output device 15 provides the user with various information such as the progress and results of processing. The output device 15 is configured using, for example, a screen display device (such as a liquid crystal monitor, LCD (Liquid Crystal Display), and a graphics card), a voice output device (such as a speaker), and a printer.
[0017] The communication device 16 is a wired or wireless communication interface that enables communication with other devices via communication means such as a LAN or the Internet, and is configured using, for example, a NIC (Network Interface Card), a wireless communication module, a USB (Universal Serial Interface) module, and a serial communication module.
[0018] Note that input and output of information may be performed between the device and another device (not shown) via the communication device 16. The moral analysis device 10 may also include hardware such as an ASIC (Application Specific Integrated Circuit) in addition to the above configuration. Some or all of the computer programs and data included in the present disclosure may be stored in a non-volatile storage medium 100.
[0019] FIG. 2 is a diagram illustrating an example of the functional configuration of the morality analysis device 10. As shown in FIG. 2, the morality analysis device 10 includes a data acquisition unit 101, a sentiment analysis unit 102, a morality analysis unit 103, a processed data display unit 104, and an information storage unit 105. The information storage unit 105 also includes a media data storage unit 111, a sentiment analysis data storage unit 112, a morality analysis data storage unit 113, and an other data storage unit 114. Each unit of the morality analysis device 10 shown in FIG. 2 is implemented using the hardware configuration shown in FIG. 1. For example, at least one of the units may be implemented by the processor 11 reading and executing a program stored in the main storage device 12 or the auxiliary storage device 13. Furthermore, at least one of the units may be implemented using hardware such as an ASIC.
[0020] The morality analysis device 10 is also connected to an external media device 20 so that they can communicate with each other. The morality analysis device 10 may also include a text uploader 30. The external media device 20 is a storage device that stores a collection of text data and is usually provided separately from the morality analysis device 10. In this embodiment, the external media device 20 stores media data posted to social media such as microblogs as text data. The text uploader 30 is a terminal device or the like that uploads text data to the morality analysis device 10.
[0021] The data acquisition unit 101 is an acquisition unit that acquires text data. Specifically, the data acquisition unit 101 transmits a query 201, which is a search query that defines extraction conditions for extracting media data from the external media device 20, to the external media device 20, and acquires media data 202 that matches the extraction conditions of the query 201. The data acquisition unit 101 may also acquire text 203, which is text data uploaded from a text uploader 30. In this embodiment, the text 203 is a CSV (Comma Separated Values) file, but is not limited to a CSV file. The data acquisition unit 101 stores the acquired media data 202 and text 203 as acquired data 204 in the media data storage unit 111 of the information storage unit 105.
[0022] The emotion analysis unit 102 acquires, as text 205, text data stored as acquired data 204 in the media data storage unit 111. The emotion analysis unit 102 executes emotion analysis processing to evaluate the emotion expressed in the text 205 (the emotion of the creator of the text 205), and stores processed data 206, which is the result of the emotion analysis processing and associates emotion-attached information with the text 205, in the emotion analysis data storage unit 112 of the information storage unit 105. The creator is, for example, a poster who posted the text data on social media. In this embodiment, the emotion-attached information includes an emotion score that quantifies the emotion of the creator.
[0023] The moral analysis unit 103 acquires the processed data 206 stored in the emotion analysis data storage unit 112 as text 207. The moral analysis unit 103 executes a moral analysis process to analyze the text 207 from a moral perspective, and stores processed data 208 in which the processing result of the moral analysis process is associated with the text 207 in the moral analysis data storage unit 113 of the information storage unit 105.
[0024] The moral analysis process is performed based on a Moral Foundations Dictionary (MFD) 209, which is dictionary data that defines morality-related words related to morality. The Moral Foundations Dictionary 209 may be set in the morality analysis device 10 from outside.
[0025] The Moral Foundations Dictionary 209 is a dictionary based on the Moral Foundations Theory proposed by social psychologist Jonathan Haidt. Moral Foundations Theory classifies morality into six basic categories: moral foundations (protection, fairness, in-group, authority, chastity, and general morality). In the Moral Foundations Dictionary 209, morality-related words belong to at least one of the six moral foundations. Furthermore, for five of the six moral foundations (protection, fairness, in-group, authority, and chastity), excluding general morality, morality-related words are divided into "virtue" (which corresponds to the moral foundation) and "vice" (which does not correspond to the moral foundation). Therefore, morality can be said to be divided into 11 detailed moral foundations: the virtue of protection, the virtue of justice, the virtue of in-group, the virtue of authority, the virtue of chastity, the violation of protection, the violation of fairness, the violation of in-group, authority, chastity, and general morality. In the following, the six moral foundations will be referred to as the basic moral foundations, and the eleven subdivided moral foundations will be referred to simply as the moral foundations. The moral-related words defined in the Moral Foundations Dictionary may be in any language. For example, the Moral Foundations Dictionary may be written in either English or Japanese.
[0026] The processed data display unit 104 is an analysis unit that acquires processed data 211, which is processed data 208 that matches the search conditions 210, from the moral analysis device 10, quantitatively analyzes the moral values of the processed data 211, and displays the analysis results to visualize the moral values.
[0027] The information storage unit 105 stores various information. Specifically, the media data storage unit 111 stores acquired data 204. The emotion analysis data storage unit 112 stores processed data 206. The moral analysis data storage unit 113 stores processed data 208. The other data storage unit 114 stores other data. The other data is, for example, user data related to users who use the moral analysis device 10.
[0028] Fig. 3 is a diagram showing an example of a query 201. The query 201 shown in Fig. 3 is a query statement that the data acquisition unit 101 sends to the external media device 20 to acquire media data 202. The query 201 indicates, for example, a search keyword as an extraction condition. In this case, the external media device 20 returns media data containing the search keyword to the data acquisition unit 101 as media data 202. Note that the media data 202 is provided with metadata indicating the date and time the media data 202 was created, the creator, the source of the media data 202, and the like.
[0029] Fig. 4 is a diagram showing an example of text 203. The text 203 shown in Fig. 4 is a CSV file and has fields 203a and 203b. Field 203a stores text data. Field 203b stores time information related to the text data in field 203a. The time information indicates, for example, the date and time when the text data was created or the date and time when the text data was updated.
[0030] Fig. 5 is a diagram showing an example of the moral foundation dictionary 209. In the example of Fig. 5, the moral foundation dictionary 209 is formatted as a CSV file so that it can be easily handled by the moral analysis device 10. However, the moral foundation dictionary 209 is not limited to the format of a CSV file.
[0031] The moral foundation dictionary 209 shown in Fig. 5 includes a word dictionary 501 and a moral name dictionary 502. The word dictionary 501 has fields 501a and 501b. The field 501a stores morality-related words (words) that are words related to morality. The field 501b stores morality IDs (Moral IDs) that are identification information that identify the moral foundations to which the morality-related words belong.
[0032] The moral name dictionary 502 has fields 502a and 502b. The field 502a stores a moral foundation name, which is the name of the moral foundation to which the morality-related word belongs. The field 502b stores a moral ID that identifies the moral foundation.
[0033] In addition, the moral foundation dictionary 209 may store the name and identification information of the basic moral foundation instead of or in addition to the moral foundation name and moral ID.
[0034] 6 is a flowchart for explaining an example of the operation of the data acquisition unit 101. The following operation is executed periodically or when instructed by the user.
[0035] First, the data acquiring unit 101 acquires a search keyword (step S101). For example, the data acquiring unit 101 may acquire, as a search keyword, a word input by a user to the input device 14, or may acquire, via the communication device 16, a word transmitted by a user using a user terminal device (not shown).
[0036] The data acquisition unit 101 generates a query 201, which is a search query, based on the acquired search keyword (step S102). The data acquisition unit 101 transmits the generated query 201 to the external media device 20 (step S103).
[0037] The external media device 20 transmits media data 202, which is text data (e.g., text data including a search keyword) corresponding to the query 201. The data acquisition unit 101 receives the media data 202 (step S104). The data acquisition unit 101 stores the received media data 202 as acquired data 204 in the media data storage unit 111 (step S105), and ends the process.
[0038] 7 is a flowchart for explaining an example of the operation of the emotion analysis unit 102 and the moral analysis unit 103. The following operation is executed, for example, periodically.
[0039] First, the emotion analysis unit 102 acquires text 205, which is the acquired data 204 to be analyzed in the emotion analysis process, from the media data storage unit 111 (step S201). The text 205 is, for example, text data from the acquired data 204 stored in the media data storage unit 111 that has not been subjected to emotion analysis processing or moral analysis processing.
[0040] The emotion analysis unit 102 performs emotion analysis processing on the acquired text 205, and adds emotion attachment information, which is the processing result of the emotion analysis processing, to the text 205, and stores the result as processed data 206 in the emotion analysis data storage unit 112 (step S202).
[0041] The sentiment analysis process includes a process of calculating, for each text 205, a sentiment score that quantifies the sentiment expressed in the text 205 based on each word contained in the text 205. The sentiment score is a numerical value ranging from -1 to 1, with a value closer to -1 indicating a more "negative sentiment" and a value closer to 1 indicating a more "positive sentiment." The sentiment score can be calculated, for example, as a value obtained by subtracting a negativity value ranging from 0 to 1 indicating the negative degree of the sentiment from a positivity value ranging from 0 to 1 indicating the positive degree of the sentiment. The sentiment analysis process can also be performed using, for example, a machine learning model. The processed data 206 is data in which emotion-annotated information including the sentiment score is associated with the text 205.
[0042] The morality analysis unit 103 acquires processed data 206 to be analyzed in the morality analysis process as text 207 from the emotion analysis data storage unit 112, and performs morality analysis processing (see FIG. 8) on the text 207 (step S203). The morality analysis unit 103 assigns morality attribution information, which is the processing result of the morality analysis process, to the text 207 and stores it in the morality analysis data storage unit 113 as processed data 208 (step S202).
[0043] FIG. 8 is a flowchart for explaining an example of the moral analysis process in step S203 of FIG.
[0044] In the moral analysis process, first, the moral analysis unit 103 reads the moral foundation dictionary 209 (step S301). The moral analysis unit 103 acquires the processed data 206 to be analyzed in the moral analysis process as text 207 from the emotion analysis data storage unit 112 (step S302).
[0045] The moral analysis unit 103 executes word segmentation processing to break down the text 207 into words (step S303). The word segmentation processing can be performed using, for example, a machine learning model. Alternatively, the word segmentation processing may be processing that does not use a machine learning model, such as morphological decomposition.
[0046] The morality analysis unit 103 executes a word segmentation correction process to correct the result of the word segmentation process (step S304). The word segmentation correction process is a process of correcting each word decomposed in the word segmentation process to the format of a morality-related word included in the morality-based dictionary 209. For example, if the morality-related word "parent" is registered in the morality-based dictionary 209, the morality analysis unit 103, when the word "parent" exists in the result of the word segmentation process, checks whether "rashi" exists next to "parent" in the text 207. If "rashi" exists next to "parent" in the text 207, the morality analysis unit 103 corrects the word "parent" in the result of the word segmentation process to "parentarashi".
[0047] The morality analysis unit 103 compares each morality-related word in the word dictionary 501 of the morality-based dictionary 209 with each word of the text 207 corrected by the word segmentation correction process, and extracts words that match the morality-related words as morality expression words from the text 207. Furthermore, the morality analysis unit 103 extracts morality IDs corresponding to the morality expression words from the word dictionary 501, and extracts morality-based names corresponding to the extracted morality IDs from the morality name dictionary 502 of the morality-based dictionary 209 (step S305).
[0048] Then, the morality analysis unit 103 determines whether or not one or more moral expression words have been extracted (step S306).
[0049] If one or more moral expression words are not extracted, the moral analysis unit 103 ends the process. On the other hand, if one or more moral expression words are extracted, the moral analysis unit 103 executes a morality determination process (see FIG. 9) to classify each moral expression word into either a virtue word conforming to morality or a violation word violating morality (step S307), and ends the process.
[0050] FIG. 9 is a flowchart for explaining an example of the morality determination process in step S307 of FIG.
[0051] In the morality judgment process, first, the morality analysis unit 103 acquires an emotion score from the text 207 (step S401).
[0052] The morality analysis unit 103 performs a classification process to classify the moral expression words extracted from the text 207 into either virtue words that conform to morality or violation words that violate morality, based on the classification conditions related to the affective scores. The morality analysis unit 103 generates classification information, which is the processing result of the classification process, as morality attribution information (step S402), and ends the process.
[0053] In this embodiment, the moral analysis unit 103 compares the emotion score with a predetermined threshold for each text 207 and classifies each moral expression word extracted from the text 207 as either a virtue word or a violation word. The threshold is adjustable. For example, if the emotion score of the text 207 is −0.05 or less, the moral analysis unit 103 determines the emotion expressed in the text 207 as negative and classifies each moral expression word extracted from the text 207 as a violation word. If the emotion score is 0.05 or more, the moral analysis unit 103 determines the emotion expressed in the text 207 as positive and classifies each moral expression word extracted from the text 207 as a virtue word. Alternatively, if the emotion score is greater than −0.05 and less than 0.05, the moral analysis unit 103 determines the emotion expressed in the text 207 as neutral and classifies each moral expression word extracted from the text 207 as either a virtue word or a violation word based on the moral expression word's conformity to the moral foundation. In other words, when the emotion is neutral, the moral analysis unit 103 classifies the moral expression word as a virtue word if the moral foundation to which the moral expression word belongs is the virtue of protection, the virtue of justice, the virtue of in-group, the virtue of authority, or the virtue of purity, and classifies the moral expression word as a violation word if the moral foundation to which the moral expression word belongs is the violation of protection, the violation of justice, the violation of in-group, the violation of authority, or the violation of purity.
[0054] The morality analysis unit 103 may classify moral expression words into either virtue words or violation words based on predetermined classification conditions without using the affective score.
[0055] In addition, in this embodiment, the moral analysis unit 103 does not classify moral expression words whose moral foundation is general morality into virtue words or violation words. However, in this embodiment, the moral analysis unit 103 may also classify moral expression words whose moral foundation is general morality.
[0056] Fig. 10 is a diagram showing an example of processed data 208 that is the processing result of morality analysis unit 103. Processed data 208 shown in Fig. 10 has fields 208a to 208f.
[0057] Field 208a stores a message ID, which is identification information for identifying text data. Field 208b stores a morality ID, which identifies the moral foundation to which the moral expression words contained in the text data belong. Fields 208c to 208e store classification information, which is the processing result of moral analysis processing for the moral expression words. Specifically, field 208c stores Level 1, which is an index indicating the basic moral foundation of the moral expression word. Field 208d stores Level 2, which is an index indicating the conformity of the moral expression word with respect to morality. Note that conformity indicates "virtue word" or "violation word." Field 208e stores Level 3, which is an index indicating the basic moral foundation and conformity. Field 208f stores moral expression words. Note that the processed data 208 may have fields for storing other data.
[0058] FIG. 11 is a flowchart for explaining an example of the operation of the processed data display unit 104.
[0059] The processed data display unit 104 displays a dashboard for displaying the analysis results of quantitatively analyzing the moral values of the processed data 211 (step S501). After that, the processed data display unit 104 acquires the search conditions 210 input by the user via the dashboard (step S502).
[0060] The processed data display unit 104 searches for the processed data 208 stored in the moral analysis data storage unit 113 based on the search criteria 210, and acquires the processed data 211, which is the processed data 208 that matches the search criteria 210 (step S503). Then, the processed data display unit 104 performs an analysis process to quantitatively analyze the moral values of the text data (text data identified by the message ID stored in field 208a in FIG. 10) corresponding to the processed data 211 based on the moral expression words and moral attribution information (classification information) of the processed data 211, generates an analysis result by the analysis process, adds it to the dashboard (step S504), and ends the process.
[0061] In this embodiment, in the analysis process, the processed data display unit 104 analyzes moral values based on the number of virtue words and the number of violation words included in the processed data 211. For example, the processed data display unit 104 evaluates, as moral values, the ratio of virtue words to moral expression words included in the processed data 211 and the ratio of violation words to moral expression words included in the processed data 208. The processed data display unit 104 may also analyze moral values based on the number of moral expression words or the number of virtue words and the number of violation words for each basic moral foundation. For example, the processed data display unit 104 may analyze moral values based on the number of moral expression words for each basic moral foundation, or may evaluate, as an analysis of moral values, the number of virtue words and the number of violation words for each basic moral foundation.
[0062] Fig. 12 is a diagram showing an example of a dashboard. The dashboard 1200 shown in Fig. 12 includes a search area 1201, a pie chart area 1202, a moral foundation ratio area 1203, a moral foundation count area 1204, a moral foundation ranking area 1205, a timeline area 1206, word cloud areas 1207 to 1209, and a message list area 1210. In the example of Fig. 12, there are multiple word cloud areas 1207.
[0063] The search area 1201 is an area for inputting search criteria 210. The pie chart area 1202 to the word cloud area 1207 are areas for displaying analysis results. The message list area 1210 is an area for displaying text data corresponding to the processed data 211.
[0064] Fig. 13 is a diagram showing an example of the search area 1201. The search area 1201 shown in Fig. 13 has input areas 1301 to 1308 for inputting search conditions.
[0065] Specifically, input area 1301 is an area for selecting a data source of processed data 211 to be searched. The data source indicates the storage source of text data that is the source of the processed data 211, and indicates, for example, the type of social media or a file (text data) uploaded by the text uploader 30. Input area 1302 is an area for inputting the start date and time (From date) of the creation time range of search target data to be searched. Input area 1303 is an area for inputting the end date and time (To date) of the creation time range. Input area 1304 is an area for inputting keywords included in processed data 211 to be searched. Input area 1305 is an area for inputting tags included in processed data 211 to be searched. The tags are set appropriately by, for example, the sentiment analysis unit 102.
[0066] The input area 1306 is an area for inputting the basic moral foundation or moral foundation of a moral expression word contained in the processed data 211 to be searched. The input area 1307 is an area for inputting additional keywords to be contained in the processed data 211 to be searched. The input area 1308 is an area for inputting excluded keywords to be excluded from the processed data 211 to be searched.
[0067] Fig. 14 is a diagram showing an example of the pie chart area 1202. The pie chart area 1202 shown in Fig. 14 is an area for displaying a pie chart 1401. The pie chart 1401 shows the ratio of virtue words to moral expression words included in the processed data 211, and the ratio of violation words to moral expression words included in the processed data 211.
[0068] Fig. 15 is a diagram showing an example of the moral foundation proportion area 1203. The moral foundation proportion area 1203 shown in Fig. 15 is an area for displaying a band chart 1501. The band chart 1501 includes five bands 1502 corresponding to the five basic moral foundations excluding morality in general. Each band 1502 shows the ratio of virtue words to violation words in the moral expression words of the corresponding basic moral foundation contained in the processed data 211.
[0069] Fig. 16 is a diagram showing an example of the moral foundations count area 1204. The moral foundations count area 1204 shown in Fig. 16 is an area for displaying a bar chart 1601. The bar chart 1601 includes six bars 1602 corresponding to the six basic moral foundations. Each bar 1602 indicates the number of moral expression words for the corresponding basic moral foundation contained in the processed data 211. In addition, the bar chart 1601 displays each bar 1602 in a ranking format, with the bars 1602 sorted in descending order of the number of moral expression words.
[0070] FIG. 17 is a diagram showing an example of the moral foundations ranking area 1205. The moral foundations ranking area 1205 shown in FIG. 17 is an area for displaying a bar chart 1701. The bar chart 1701 includes bars 1702 indicating the number of virtue words and violation words for each of the six basic moral foundations. However, the bar 1702 corresponding to general morality indicates the number of moral expression words, since virtue words and violation words are not distinguished for general morality. For this reason, there are 11 bars 1702. Furthermore, the bar chart 1701 displays each bar 1702 in a ranking format, sorted in descending order of the number of words.
[0071] Fig. 18 is a diagram showing an example of the timeline area 1206. The timeline area 1206 shown in Fig. 18 is an area for displaying a timeline 1801. The timeline 1801 shows the number of moral expression words included in the processed data 211 for each moral foundation in chronological order. The moral foundations displayed on the timeline 1801 are selectable, and in the example of Fig. 18, "chastity (violation)," "general morality," and "in-group (virtue)" are shown.
[0072] FIG. 19 is a diagram showing an example of the word cloud area 1207, representing the word cloud areas 1207 to 1209. The word cloud area 1207 is an area for displaying a word cloud 1901. The word cloud 1901 displays a plurality of words extracted from the processed data 211 according to a predetermined extraction rule, with the size corresponding to the frequency of appearance of the words. The extraction rule is not particularly limited, but may be, for example, to extract a predetermined number of words with a high frequency of appearance. Note that the word cloud areas 1207 to 1209 can display word clouds 1901 with different extraction rules, for example.
[0073] Although not shown, the message list area 1210 is used to display, for example, the processed data 211.
[0074] As described above, according to this embodiment, the morality analysis unit 103 extracts words that match morality-related words from the acquired data 204, which is text data, as moral expression words, based on the morality-based dictionary 209, which is dictionary data that defines morality-related words related to morality. The processed data display unit 104 analyzes the moral values of the acquired data 204 using the moral expression words. Therefore, it is possible to evaluate the moral expressions included in the acquired data 204, which is text data.
[0075] In this embodiment, the moral analysis unit 103 generates classification information that classifies moral expression words into either virtue words that conform to morality or violation words that violate morality based on predetermined classification conditions. The processed data display unit 104 further uses the classification information to analyze moral values. This makes it possible to more appropriately evaluate moral expressions contained in text data.
[0076] In this embodiment, the emotion analysis unit 102 calculates an emotion score that evaluates the emotion of the creator of the acquired data 204. The moral analysis unit 103 generates classification information based on classification conditions related to the emotion score. Therefore, it is possible to appropriately classify moral expression words according to the emotion of the creator, and therefore it is possible to more appropriately evaluate moral expressions included in text data.
[0077] In addition, in this embodiment, the moral analysis unit 103 classifies emotions into positive, neutral, or negative based on the emotion score, and if the emotion is positive, classifies the moral expression words into virtue words, and if the emotion is negative, classifies the moral expression words into violation words. Therefore, it is possible to more appropriately classify moral expression words.
[0078] In this embodiment, the processed data display unit 104 analyzes moral values based on the number of virtue words and the number of violation words, thereby enabling a more appropriate analysis of moral values.
[0079] Furthermore, in this embodiment, the processed data display unit 104 analyzes moral values for each moral foundation, thereby enabling more appropriate analysis of moral values.
[0080] In this embodiment, the processed data display unit 104 analyzes moral values based on the number of virtue words and the number of violation words for each moral foundation, thereby enabling a more appropriate analysis of moral values.
[0081] In this embodiment, the processed data display unit 104 generates a ranking of moral foundations according to the number of moral expression words, thereby enabling users to intuitively grasp moral values.
[0082] In addition, in this embodiment, the morality analysis unit 103 breaks down the acquired data 204 into words, corrects the format of each word to the format of a morality-related word, and matches each corrected word with the morality-related word to extract morality-expressing words. This makes it possible to more appropriately extract morality-expressing words.
[0083] In addition, in this embodiment, since the dictionary data is the moral-based dictionary 209, it is possible to extract academically supported moral expression words, making it possible to more appropriately evaluate the moral expressions contained in the text data.
[0084] The above-described embodiments of the present disclosure are merely illustrative examples of the present disclosure, and are not intended to limit the scope of the present disclosure to these embodiments alone. Those skilled in the art may implement the present disclosure in various other forms without departing from the scope of the present disclosure. [Explanation of symbols]
[0085] 10: Moral analysis device 20: External media device 30: Text uploader 101: Data acquisition unit 102: Emotion analysis unit 103: Moral analysis unit 104: Processed data display unit 105: Information storage unit 111: Media data storage unit 112: Emotion analysis data storage unit 113: Moral analysis data storage unit 114: Other data storage unit
Claims
1. an extraction unit that extracts, based on dictionary data defining morality-related words related to morality, words that match the morality-related words from text data as moral expression words; an analysis unit that analyzes the moral values of the text data using the moral expression words; an emotion analysis unit that calculates an emotion score that evaluates the emotion of the creator of the text data that appears in the text data, The extraction unit generates classification information that classifies the moral expression words into virtue words that conform to morality and violation words that violate morality based on predetermined classification conditions related to the emotion scores, and The analysis unit further uses the classification information to analyze the moral values.
2. 2. The moral analysis device according to claim 1, wherein the extraction unit classifies the emotion into one of positive, neutral, and negative based on the emotion score, and if the emotion is positive, classifies the moral expression word into the virtue word, and if the emotion is negative, classifies the moral expression word into the violation word.
3. The moral analysis device according to claim 1 , wherein the analysis unit analyzes the moral values based on the number of virtue words and the number of violation words.
4. The dictionary data defines, for each category related to morality, the morality-related words belonging to that category; The extraction unit extracts the moral expression words for each of the categories, The morality analysis device according to claim 1 , wherein the analysis unit analyzes the moral values for each of the categories.
5. The moral analysis device according to claim 4 , wherein the analysis unit analyzes the moral values based on the number of virtue words and the number of violation words for each category.
6. The morality analysis device according to claim 4 , wherein the analysis unit generates a ranking of the category according to the number of moral expression words.
7. 2. The morality analysis device according to claim 1, wherein the extraction unit decomposes the text data into words, corrects the format of each word to the format of the morality-related word, and matches each corrected word with the morality-related word to extract the moral expression word.
8. The morality analysis device according to claim 1 , wherein the dictionary data indicates a moral foundation dictionary.
9. A moral analysis method executed by a moral analysis device, extracting, from the text data, words that match the morality-related words as moral expression words based on dictionary data that defines morality-related words related to morality; calculating an emotion score that evaluates the emotion of the creator of the text data that appears in the text data; generating classification information that classifies the moral expression words into virtue words that conform to morality and violation words that violate morality based on predetermined classification conditions related to the emotion scores; A moral analysis method for analyzing the moral values of the text data using the moral expression words and the classification information.
10. On the computer, an extraction unit that extracts, based on dictionary data defining morality-related words related to morality, words that match the morality-related words from text data as moral expression words; an analysis unit that analyzes the moral values of the text data using the moral expression words; a sentiment analysis unit that calculates a sentiment score that evaluates the sentiment of the creator of the text data that appears in the text data, The extraction unit generates classification information that classifies the moral expression words into virtue words that conform to morality and violation words that violate morality based on predetermined classification conditions related to the emotion scores, A program for causing the analysis unit to further use the classification information to analyze the moral values.
Citation Information
Patent Citations
Display control program, display control method, and information processing device
JP2017102873A
Text data collection device and method
JP2020119254A
Lexicon generation methods, computer implemented lexicon editing methods, lexicon generation devices, lexicon editors, and articles of manufacture
US20080005051A1