Text mining device and text mining method
The text mining device enhances understanding of document content trends by creating and clustering graphs with added category information, facilitating easy comparison and visibility of dependency structures.
Patent Information
- Application Number
- JP2020101990
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-06-12
- Publication Date
- 2024-09-12
- Estimated Expiration
- 2040-06-12
AI Technical Summary
Existing text mining techniques struggle to effectively grasp trends in the content of documents by specifying dependency relationships between words, lacking practicality in understanding the content without complex processing.
A text mining device that creates a base graph from dependency structures, performs clustering, and highlights graph portions with added category information to facilitate understanding of document trends.
Enables easy grasping of document content trends by visualizing and comparing dependency structures with other documents, improving visibility and comprehension.
Smart Images

Figure 0007549977000004 
Figure 0007549977000003 
Figure 0007549977000008
Abstract
Description
[Technical field]
[0001] The present invention relates to a text mining device and a text mining method. [Background technology]
[0002] In recent years, technological developments related to text mining have been thriving. For example, Patent Document 1 discloses a technology for displaying a dependency relationship network structure between three or more words. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2007-293685 A Summary of the Invention [Problem to be solved by the invention]
[0004] When performing text mining on a huge amount of documents, it may be required to grasp the tendency of the contents of the target documents. Specifically, it may be required to grasp what topic the target document mainly describes without reading the document. In general, the tendency is grasped by comparing with other documents, but this requires complex processing and is not practical. The invention of Patent Document 1 is limited to identifying dependency relationships between words of multiple analysis targets (corresponding to documents), and lacks the perspective of grasping the tendency of the contents of the analysis targets. For this reason, the invention of Patent Document 1 is insufficient in identifying dependency relationships between words, and there is room for improvement.
[0005] In view of the above circumstances, an object of the present invention is to make it easier to grasp the trends in the contents of a target document. [Means for solving the problem]
[0006] In order to solve the above problems, the present invention provides a graph creation unit that creates a base graph corresponding to a document group including the target document by creating a graph based on a dependency structure identified by dependency analysis of the text data; a clustering unit that performs clustering on the created base graph; a display processing unit that highlights a graph portion corresponding to the target document when displaying the clustered base graph. 、 the graph creation unit adds category information for classifying documents to nodes and edges constituting the base graph; The display processing unit highlights the nodes and edges to which category information specified by the input unit is added. The text mining device is characterized by the above. Other inventions will be described later. Effect of the Invention
[0007] According to the present invention, it is possible to easily grasp the trends in the contents of a target document. [Brief description of the drawings]
[0008] [Figure 1] FIG. 2 is a diagram illustrating an example of a functional configuration of a text mining device according to the present embodiment. [Diagram 2] 13 is an example of a flowchart illustrating a visualization process according to the present embodiment. [Diagram 3] 1 is a graph expressing a dependency structure of a target document. [Figure 4] FIG. 1 is an explanatory diagram of a base map. [Diagram 5] FIG. 13 is an explanatory diagram of mapping of a designated document. [Figure 6] FIG. 13 is an explanatory diagram of category update by merging. [Figure 7] FIG. 13 is an explanatory diagram of a case where a plurality of documents are mapped. [Figure 8] FIG. 13 is an explanatory diagram of a case where mapping is performed by category. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Next, an embodiment of the present invention will be described with reference to the drawings.
[0010] [composition] The text mining device 100 of this embodiment shown in FIG. 1 is a computer including hardware such as an input unit, an output unit, a control unit, and a storage unit. For example, if the control unit is configured with a CPU (Central Processing Unit), information processing by the computer including the control unit is realized by program execution processing by the CPU. Furthermore, the storage unit included in the computer stores various programs for realizing the functions of the computer according to instructions from the CPU. This realizes cooperation between software and hardware. The programs can be provided by recording them on a recording medium or via a network.
[0011] 1, the text mining device 100 of this embodiment includes a reading unit 1, a preprocessing unit 2, a morphological analysis unit 3, a dependency analysis unit 4, a graph creation unit 5, a clustering unit 6, an extraction unit 7, and a display processing unit 8. The text mining device 100 also stores a document group G and a base graph B.
[0012] The document group G is a collection of documents including text data. The documents may have one or more types of items, with text data being input for each item. For example, in the case of a document regarding a customer's hotel review, the items may be, but are not limited to, the name of the facility being reviewed (hotel name) and impressions. In addition, one or more types of category information may be added to the document. The category information is information for classifying the document. The category information may be, for example, the document's ID (identifier). In addition, in the case of a document regarding a customer's hotel review, the category information may be, for example, the duration of the stay, the customer's gender, the customer's age, and the location of the stay (area). However, the types of category information are not limited to these. In addition, in this embodiment, the text data is assumed to be a character string in Japanese, but is not limited to this and may be a character string in another language.
[0013] The reading unit 1 reads text data of a document specified by a user of the text mining device 100. The document can be specified, for example, by an input from an input unit of the text mining device 100, but is not limited to this. The reading unit 1 can read text data from a document of the document group G.
[0014] The preprocessing unit 2 performs preprocessing of the text data. Preprocessing of the text data is a preliminary process to obtain correct results in morphological analysis. For example, when full-width and half-width characters exist for words with the same meaning, it unifies them into one of them, and corrects incorrect usage caused by similar character shapes, such as the long vowel mark "ー" and the minus sign "-", to the correct symbol. Note that pre-processing of the text data is not essential.
[0015] The morphological analysis unit 3 performs a morphological analysis of the text data. The morphological analysis of this embodiment uses an existing morphological analysis and an existing morphological dictionary. The morphological analysis identifies a group of morphemes and the part of speech of each morpheme.
[0016] The dependency analyzer 4 performs dependency analysis of the text data. The dependency analysis of this embodiment uses an existing dependency analysis. The dependency analyzer 4 can identify the dependency structure of the text data, that is, which morphemes correspond to "dependency" and which morphemes correspond to "substitution."
[0017] The graph creation unit 5 creates a graph based on the dependency structure identified by the dependency analysis unit 4. In this embodiment, an existing technology is used to create the graph. The graph is composed of nodes for each word and edges connecting the nodes. The graph creation unit 5 can create a graph for each document. Furthermore, the graph creation unit 5 can create one graph corresponding to multiple documents by merging multiple graphs created for each document. Furthermore, the graph creation unit 5 can add category information to the nodes and edges that make up the created graph.
[0018] The clustering unit 6 performs clustering of the graph created by the graph creation unit 5. The clustering unit 6 can perform clustering of one graph corresponding to a plurality of documents. As a result, one or a plurality of clusters are generated. By the clustering, the arrangement of each node on the graph can be made to follow, for example, a spring model. The text mining device 100 can set a topic that symbolizes the generated cluster. The topic for each cluster can be inferred, for example, from the words included in each cluster. The topic can also be set by the user of the text mining device 100.
[0019] The extraction unit 7 extracts one or more characteristic words from each cluster generated by the clustering unit 6. The characteristic words extracted from each cluster are words that appear frequently (TF: Term Frequency) within each cluster.
[0020] The display processing unit 8 performs a display process for displaying the clustered graph on the display unit of the text mining device 100 . The base graph B is a graph created by the graph creation unit 5 for the document group G. The base graph B clustered by the clustering unit 6 is called a "base map." The display processing unit 8 can visualize the base map and display it on the display unit. The text mining device 100 may store the base map in advance.
[0021] [process] Next, the visualization process executed by the text mining device 100 will be described with reference to Fig. 2. In the description, Fig. 1 will also be referred to as appropriate.
[0022] First, the reading unit 1 reads text data of a document (designated document) designated by a user (step S1). Next, the preprocessing unit 2 preprocesses the read text data (step S2). Next, the morphological analysis unit 3 and the dependency analysis unit 4 perform morphological analysis and dependency analysis of the text data (step S3).
[0023] Next, the graph creation unit 5 creates a graph of the designated document based on the dependency structure identified by the dependency analysis (step S4). At this time, the graph creation unit 5 can add category information to the nodes and edges that make up the created graph. Next, the graph creation unit 5 merges the graph of the designated document into the base graph B and updates the base graph B (step S5).
[0024] Next, the clustering unit 6 performs clustering on the updated base graph B (step S6). As a result, one or more clusters related to the updated base graph B are generated. The extraction unit 7 can extract one or more feature words from each of the generated clusters. In addition, it can appropriately set a topic for each of the generated clusters.
[0025] Finally, the display processing unit 8 displays the clustering result of the updated base graph B as an updated base map on the display unit (step S7: display processing). Specifically, the nodes and edges constituting the graph portion corresponding to the designated document are highlighted. Note that updating the base map by the designated document may be called "mapping of the target document."
[0026] Also, for example, following the reference document (JP 2019-117484 A), the display processing unit 8 can display nodes with a size proportional to the TF, or display edges with a thickness proportional to the set weight.
[0027] 2, the user can check the highlighted graph portion in comparison with the base graph B. Thus, the user can easily grasp the tendency of the contents of the specified document while comparing it with the document group G.
[0028] [Specific example] Next, as a specific example of this embodiment, a case where a base map is visualized in text mining of hotel reviews of hotels used by customers will be described. The document group G (FIG. 1) is a collection of documents created for each customer, including the name of the facility to be reviewed and impressions as items. In this specific example, the following documents 1 to 3 are taken as the document group G.
[0029] Document 1: I made a reservation with a cheap rate plan. It was conveniently located near the station and convenience stores. The room was clean and spacious, and the bed was large and comfortable. Document 2: The bed was spacious, but the price was high Document 3: Low price
[0030] Assume that documents 1 to 3 are all reviews (word of mouth) from customers who stayed at Hotel A. In other words, the name of the facility being reviewed is Hotel A. In addition, documents 1 to 3 are added with predetermined category information. The predetermined category information is an ID (review ID) that identifies each document, and the name of the facility being reviewed (Hotel A). In addition, text mining device 1 stores base graph B corresponding to document group G consisting of documents 1 to 3.
[0031] First, the reading unit 1 reads the text data of the review comments of the designated document (corresponding to step S1 in FIG. 2). Here, the format of the designated document is the same as documents 1 to 3. The content of the designated document (review comment) is "The room is spacious but the price is cheap." The category information added to the designated document is an ID that identifies the designated document (review ID: A001) and the name of the facility being reviewed (Hotel A).
[0032] Next, the preprocessing unit 2 preprocesses the text data of the impression comments of the designated document (corresponding to step S2 in FIG. 2). In this specific example, it is assumed that no wording in the designated document was modified by the preprocessing. Next, the morphological analysis unit 3 and the dependency analysis unit 4 perform morphological analysis and dependency analysis of the text data of the impression comments of the designated document (corresponding to step S3 in FIG. 2). The morphological analysis identifies the morpheme groups of the impression comments of the designated document and the parts of speech of each morpheme.
[0033] Next, the graph creation unit 5 creates a graph based on the dependency structure for the specified document (corresponding to step S4 in FIG. 2). The graph creation unit 5 regards the prototypes of the selected words (in this specific example, nouns and adjectives) as nodes (word nodes) and the dependency relationships as edges. In FIG. 3, nodes are indicated by circles and edges are indicated by solid lines. Word nodes that have dependency relationships are connected by edges.
[0034] For the designated document, an end node that does not participate in the dependency relationship and an edge that connects to the end node are prepared for convenience. The end node can be represented, for example, as "A001" (reference numeral 11 in FIG. 3) (sometimes referred to as a document node) which is the review ID of the designated document as shown in FIG. 3. The end node can also be represented, for example, as the name of the facility to be reviewed in the designated document, that is, "Hotel A" (not shown) (sometimes referred to as a category node). As shown in FIG. 3, the graph creation unit 5 can create a graph in which five nodes 11 to 15 including the end nodes are connected by four edges 21 to 24.
[0035] In addition, the graph creation unit 5 sets the number of occurrences (TF value) of the selected words (nouns and adjectives) in the specified document as an attribute of the word node. In FIG. 3, the TF value is shown in the vicinity of each of the nodes 12 to 15 (TF: k (k=1, 2, . . .)).
[0036] In addition, the graph creation unit 5 sets the number of times a dependency relationship between two words appears in a specified document as the weight of the edge between the two word nodes. In Fig. 3, the weight values are shown near the solid lines symbolizing each of the edges 21 to 24.
[0037] In addition, the graph creation unit 5 adds category information to each node and each edge of the designated document. In Fig. 3, review ID: A001 and hotel name: Hotel A are shown as category information near each of the nodes 11 to 15 and near each of the edges 21 to 24.
[0038] In addition, the graph creation unit 5 merges the graph of the designated document into the base graph B consisting of documents 1 to 3, and updates the base graph B (corresponding to step S5 in FIG. 2). If the same word node and the same edge exist as a result of the merging, those nodes and edges are shared, and the TF values and weights are added.
[0039] Next, the clustering unit 6 performs clustering on the updated base graph B (corresponding to step S6 in FIG. 2). As a result, one or more clusters are generated for the updated base graph B. In addition, the extraction unit 7 extracts feature words from each of the generated clusters (corresponding to step S6 in FIG. 2).
[0040] Next, the display processing unit 8 performs display processing of the clustered graph (corresponding to step S7 in FIG. 2). As a comparative example, a base map of a base graph B before updating, which is made up of documents 1 to 3, is shown in FIG. 4. As shown in FIG. 4, clusters 1 to 3 are generated by the clustering unit 6.
[0041] Moreover, the result of the display process when the base graph B updated by the designated document is clustered, that is, when the designated document is mapped, is shown in Fig. 5. As shown in Fig. 5, clusters 1 to 3 are generated by the clustering unit 6.
[0042] The display processing unit 8 can also highlight the nodes and edges that make up the graph portion originating from the specified document. In Fig. 5, the size of the nodes that make up the graph portion originating from the specified document, "A001", "Room", "Spacious", "Price", and "Cheap" are made larger and bold. Also, the edges that make up the graph portion originating from the specified document are made bold.
[0043] The highlighting by the display processing unit 8 can be various and is not limited to the above. For example, the characters of the relevant node can be colored, font, shaped (italic, underlined), or surrounded by a circle or a square. The line indicating the relevant edge can be curved or dashed. The display processing unit 8 can hide nodes and edges that satisfy a predetermined condition (filtering). The predetermined condition can be determined appropriately, and can be, for example, a character whose TF value is equal to or less than a predetermined value, a character whose display is inappropriate according to social convention, or a character of a node that corresponds to a specific category indicated by the category information, but is not limited to these. The display processing unit 8 can display or hide document nodes and category nodes that do not participate in the dependency relationship.
[0044] According to this specific example, the user can visually check the updated base map (FIG. 5) and confirm the highlighted graph portion of the specified document. Therefore, the user can easily check the tendency of the contents of the specified document while comparing it with documents 1 to 3. For example, the user can understand how much information about "room" is included in the specified document that includes words such as "room", "wide", "price" and "cheap" without reading the specified document. Also, the user can understand how much information about "room" is included in the specified document compared to other documents (documents 1 to 3). Also, by tracing the edges connecting to the "room" node, the user can understand how and to what extent customers are interested in the words that are related to (spoken together with) "room" in all documents (specified document and documents 1 to 3). Also, the user can understand that the words in the specified document are connected with the relationships of "room-wide" and "price-cheap". Also, by comparing it with other documents (documents 1 to 3), the user can understand how much customers are interested in the relationships.
[0045] (Category Update) When merging the graph of the designated document into the base graph B, the graph creation unit 5 can update the category information added to the node in accordance with a predetermined rule. As shown in Fig. 6, nodes 31 and 32, both of which have the word "bath", will be described. The category information of node 31 is review ID: A001, hotel name: Hotel A. The category information of node 32 is review ID: A002, hotel name: Hotel A.
[0046] By merging, nodes 31 and 32 having the same word become one node 33. At this time, the category information of node 33 can be expressed using the category information of nodes 31 and 32. Specifically, using " / ", the review ID of node 33 can be expressed as A001 / A002, which is a concatenation of the category information of the merged nodes. Meanwhile, since the hotel name in the category information of nodes 31 and 32 is the same, the hotel name in the category information of node 33 can remain as Hotel A. In this way, even if graphs are merged, it is preferable to be able to refer to the category information of the merged node. Note that the TF value of node 33 increases by merging (TF value: 1+1=2).
[0047] The above category update discussion for nodes also applies to edges.
[0048] (Application example 1: Mapping multiple documents) By repeating the process of FIG. 2, mapping of multiple designated documents can be realized. For example, for the specific example described above, a base map B corresponding to document group G consisting of documents 1 to 3, a first designated document, and a second designated document are prepared. Documents 1 to 3 are as described above. The content of the first designated document is "The room is spacious but the price is cheap." The category information added to the first designated document is an ID (review ID: A001) that identifies the first designated document, and the name of the facility to be reviewed (Hotel A). The content of the second designated document is "Close to the station but expensive." The category information added to the second designated document is an ID (review ID: B001) that identifies the second designated document, and the name of the facility to be reviewed (Hotel A).
[0049] First, the text mining device 100 executes steps S1 to S6 in Fig. 2 for the first designated document. Then, the base graph B updated by merging the graph of the first designated document is clustered. Next, the text mining device 100 executes steps S1 to S6 in Fig. 2 for the second designated document. Then, the base graph B re-updated by merging the graph of the second designated document is clustered.
[0050] Next, the display processing unit 8 performs display processing of the clustered graph (corresponding to step S7 in FIG. 2). FIG. 7 shows the result of the display processing when the base graph B updated by the designated document is clustered, that is, when the first designated document and the second designated document are mapped. As shown in FIG. 7, clusters 1 to 3 are generated by the clustering unit 6. In addition, the nodes ("room", "large", "price", "cheap") and edges constituting the graph portion originating from the first designated document are highlighted, and the nodes ("station", "close", "fee", "expensive") and edges constituting the graph portion originating from the second designated document are highlighted. At this time, it is preferable to have both types of highlighting different from each other.
[0051] According to application example 1, it is possible to easily grasp the tendency of the contents between the designated documents.
[0052] (Application Example 2: Mapping by Category) In the base map, highlighting based on category information can be realized. For example, for the specific example described above, documents 1 to 3, a third designated document, and a fourth designated document are prepared. Documents 1 to 3 are as described above. The content of the third designated document is "The room is spacious but the price is cheap." The category information added to the third designated document is an ID (review ID: A001) that identifies the third designated document, and the name of the facility to be reviewed (Hotel B). The content of the fourth designated document is "Close to the station but expensive." The category information added to the fourth designated document is an ID (review ID: B002) that identifies the fourth designated document, and the name of the facility to be reviewed (Hotel B).
[0053] First, the text mining device 100 regards documents 1 to 3, the third designated document, and the fourth designated document as one document, and executes steps S1 to S6 in Fig. 2. Then, base graph B created by merging the graphs of documents 1 to 3, the third designated document, and the fourth designated document is clustered. Note that the result of executing steps S1 to S6 in Fig. 2 does not depend on the selection order of documents 1 to 3, the third designated document, and the fourth designated document. In other words, regardless of which document steps S1 to S6 in Fig. 2 are executed, the clustering result after merging the graphs of all documents will be the same.
[0054] Next, the display processing unit 8 performs display processing of the clustered graph (corresponding to step S7 in FIG. 2). At this time, the display processing unit 8 can perform highlighting processing based on category information specified by a request from the input unit, for example. Suppose the specified category information is "Hotel B." Then, the graph creation unit 5 prepares one category node representing "Hotel B" and creates a graph consisting of the category node as a category graph for convenience. In addition, the graph creation unit 5 merges the category graph with base graph B and updates base graph B. The clustering unit 6 performs clustering of the updated base graph B (step S6 in FIG. 2).
[0055] The display processing unit 8 performs display processing of the clustered graph. FIG. 8 shows the result of display processing when the base graph B updated by the specification of the category is clustered, that is, when mapping is performed by the category. As shown in FIG. 8, the nodes ("room", "large", "price", "cheap") and edges constituting the graph portion originating from the third document having the category of "hotel B" are highlighted. Also, the nodes ("station", "close", "fee", "expensive") and edges constituting the graph portion originating from the fourth specified document having the category of "hotel B" are highlighted. Also, the category node of "hotel B" (denoted as "hotel B" in FIG. 8) and the edges connected to the category node are highlighted. Note that, for convenience of illustration, the document nodes "A001" and "B002" are omitted in FIG. 8, but the display processing unit 8 may display or not display the document nodes.
[0056] According to the application example 2, it is possible to easily grasp the tendency of the contents of the designated documents for each category.
[0057] [summary] According to this embodiment, by highlighting the graph portion of the target document in the clustered base graph, it is possible to improve the visibility of the dependency structure of the text data of the target document included in the document group, and to facilitate comparison with other documents. Therefore, it is possible to easily grasp the tendency of the contents of the target document.
[0058] [others] (a): In this embodiment, the display process in the case where the base map corresponding to the document group G is updated by merging the graph corresponding to the specified document into the base map corresponding to the document group G has been described. However, the display process may be performed so that the graph portion corresponding to one document already included in the document group G is highlighted. Specifically, in the process of FIG. 2, one document included in the document group G is selected from the input unit. Since a graph has already been created for the selected document and merged into the base graph, steps S2 to S6 in FIG. 2 can be omitted. The display processing unit 8 performs a display process to highlight the nodes and edges that constitute the graph portion of the selected document (step S7 in FIG. 2). According to such a display process, it is possible to improve the visibility of the dependency structure of the text data of the target document already incorporated in the base graph, and to facilitate comparison with other documents. Therefore, it is possible to easily grasp the tendency of the contents of the target document.
[0059] (b): It is also possible to realize a technology that appropriately combines the various technologies described in this embodiment. (c) The software described in this embodiment can be realized as hardware, and vice versa. (d) In addition, the hardware, software, flow charts, etc. may be modified as appropriate without departing from the spirit of the present invention. [Explanation of symbols]
[0060] 100 Text Mining Device 1 Reading section 2 Pretreatment section 3 Morphological analysis section 4 Dependency Analysis 5. Graph Creation Section 6 Clustering Department 7 Extraction part 8 Display Processing Section G Document Set B Basemap
Claims
1. a graph creation unit that creates a base graph corresponding to a document group including the target document by creating a graph based on a dependency structure identified by dependency analysis of the text data; a clustering unit that performs clustering on the created base graph; a display processing unit that highlights a graph portion corresponding to the target document when displaying the clustered base graph; the graph creation unit adds category information for classifying documents to nodes and edges constituting the base graph; The text mining device according to claim 1, wherein the display processing unit highlights the nodes and edges to which category information specified by an input unit is added.
2. There are a plurality of target documents, 2. The text mining device according to claim 1, wherein the display processing unit highlights the graph portion differently for each of the plurality of target documents.
3. The text mining device A first step of creating a base graph corresponding to a document group including a target document by creating a graph based on a dependency structure identified by dependency analysis of text data; a second step of clustering the created base graph; a third step of highlighting a portion of the graph corresponding to the target document when displaying the clustered base graph; In the first step, category information for classifying documents is added to the nodes and edges constituting the base graph; A text mining method characterized in that in the third step, the nodes and edges to which category information specified by an input unit is added are highlighted.
4. There are a plurality of target documents, The text mining device, 4. The text mining method according to claim 3, wherein in the third step, the graph portion is highlighted differently for each of the plurality of target documents.
Citation Information
Patent Citations
Document retrieval method
JP2004348768A
Device, program, and method for mining text
JP2007293685A
Document retrieval device and document retrieval program
JP2007328714A
Text-analyzing program, text-analyzing method, and text-analyzing device
JP2009075881A
Text mining device and text mining method
JP2019117484A
