A method for constructing a computable value system based on hierarchical clustering and attribute mining

Through methods based on hierarchical clustering and attribute mining, a data-driven computable value system is constructed, which solves the problem of lack of dynamic adaptability and diversity in the existing technology, achieves accurate calculation and dissemination of text value, and has Efficiency and flexibility.

CN118296414BActive Publication Date: 2024-09-27UNIV OF SCI & TECH OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410729803.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-06
Publication Date
2024-09-27
Estimated Expiration
2044-06-06

AI Technical Summary

Technical Problem

Existing computable value system construction methods lack data-driven and dynamic adaptability, are difficult to cope with rapidly changing environments and needs, and cannot effectively capture and integrate new value factors, resulting in knowledge systems that are limited in system scale and diversity.

Method used

Using methods based on hierarchical clustering and attribute mining, through hierarchical node mining and relationship analysis of large-scale real-time data, a more objective and accurate calculable value system is constructed, combined with expert participation to complement each other in a collaborative model, and is highly scalable sex and flexibility.

Benefits of technology

It achieves accurate calculation and dissemination of text value, can understand complex text semantics, has good versatility and computational efficiency, can dynamically adapt to environmental changes, and improves the efficiency of identification and dissemination of value content.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118296414B
    Figure CN118296414B
Patent Text Reader

Abstract

The present invention relates to the technical field of natural language understanding technology, and discloses a method for constructing a computable value system based on hierarchical clustering and attribute mining, including: hierarchical node mining, clustering corpus data into four categories of corpus, extracting keywords, summarizing all keywords and removing duplicates to obtain keywords as word nodes; node relationship attribute construction based on soft and hard weight fusion; multi-level comprehensive knowledge matching calculation, initializing the value score of the test text, extracting entities in the test text, calculating the value score of the entity according to the hierarchical attributes of the adjacent word nodes of the word node corresponding to the entity, and the weight corresponding to the edge between the word nodes, summing the value scores of all entities in the test text, and obtaining the value score of the test text. The present invention proposes a method for constructing a computable value system based on hierarchical clustering and attribute mining from the perspective of multi-level knowledge discrimination, and calculates the value of the input text according to the granularity from coarse to fine.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of natural language understanding, and in particular to a method for constructing a computable value system based on hierarchical clustering and attribute mining. Background Art

[0002] In the omnimedia era, information is showing a trend of complex content, diversified values, and blurred boundaries. If these low-value contents are allowed to proliferate freely, the quality of information content will be seriously lacking, the cyberspace will be polluted, and huge challenges will be brought to the dissemination of information and the advocacy of value orientation. Therefore, it is necessary to establish a computable value system to identify and calculate the content that is contrary to the value orientation of the system, so as to realize the identification and accurate dissemination of valuable content in the omnimedia environment, and make it possible to quantify the value of content in the dissemination process.

[0003] The current methods of constructing computable value systems are not sufficient to adapt to new efficiency and scale requirements. Specifically, they are as follows: 1) Existing knowledge system construction methods lack data-driven construction technology, and mostly use traditional artificially predefined expert knowledge to summarize and conclude from top to bottom. The knowledge system obtained is very limited in system scale and knowledge diversity; 2) The constructed value system lacks dynamic adaptability, relying on regular manual adjustments or rule-based automated processing, which makes it difficult to cope with rapidly changing environments and needs, and cannot capture and integrate new value factors. To this end, the present invention proposes a computable value system construction method based on hierarchical clustering and attribute mining. With the hierarchical node mining and relationship analysis technology of large-scale real-time data, the constructed system is more objective and accurate. At the same time, it can also complement the system constructed with the participation of experts in a collaborative mode, and has high scalability and flexibility. Summary of the invention

[0004] In order to solve the above technical problems, the present invention provides a method for constructing a computable value system based on hierarchical clustering and attribute mining.

[0005] In order to solve the above technical problems, the present invention adopts the following technical solutions:

[0006] A method for constructing a computable value system based on hierarchical clustering and attribute mining is used to calculate the value score of texts spread in the network, which specifically includes the following steps:

[0007] Step 1: Hierarchical node mining: cluster the corpus data into four categories of corpus, including category Ae representing positive corpus, category B representing neutral corpus, category C representing irrelevant corpus, and category Ne representing negative corpus; extract keywords from all corpus, aggregate all keywords and remove duplicates to obtain N keywords as word nodes, and obtain a set of independent word nodes , is the i-th word node, ; Each word node The ratio of the total word frequency of the corresponding keyword in each type of corpus to the total number of corpus instances in each type of corpus is input into the normalization function to obtain the word node Level attributes ; Level attributes Each dimension in represents The probability that the corresponding corpus belongs to different categories. If the category corresponding to the maximum probability is category X, the word node is divided into level X. .

[0008] For calculations involving levels, level attributes are used; the specific levels of nodes here are mainly for a more intuitive visualization of system nodes. Level attributes can be regarded as a soft label, and level division is a hard label.

[0009] Step 2: Construct node relationship attributes based on soft and hard weight fusion: First, perform word segmentation on the corpus data. Due to the limitation of the context window of the existing language model, the corpus data can only be received in segments. Cut into lengths of The word sequence of , among which Participle , , and create an index mapping function : ; Use the pre-trained relation extraction model to process word segmentation, and form node pairs corresponding to the word segmentation with semantic relationship to obtain a node pair set; Based on the node pair set, a hard relation matrix for representing the hard labels of the relationship between word nodes is constructed ; Determine whether the node pair consisting of the mth word node and the nth word node is in the node pair set. If so, Elements in Set to 1, otherwise, the element Set to 0;

[0010] Paired word sequence Perform mask processing and use the mask processing results as training data to train the BERT model. The BERT model outputs an attention score matrix for representing the soft labels of the relationship between word segments. ; Based on hard relationship matrix and the attention score matrix , and get the fusion relationship matrix ;right The final relationship matrix r between word nodes is obtained by weighted average according to the confidence level; the elements in r represent the relationship scores of two word nodes; when the relationship scores of two word nodes are higher than the threshold, an edge with the relationship score as the weight is established between the two word nodes, thereby obtaining a node value graph;

[0011] Step 3: Multi-level comprehensive knowledge matching calculation: adjust the BERT model through the corpus of category Ae and the corpus of category Ne, and enable the BERT model to distinguish the input text as positive value text or negative value text in the form of a binary classification task; input the test text into the adjusted BERT model, and perform a preliminary value classification on the test text: if the test text is classified as negative value text, initialize the value score of the test text ; If the test text is classified as a positive value text, the value score of the initial test text is ;

[0012] Extract entities from the test text and obtain the entity sequence of the test text; for each entity in the entity sequence , query the corresponding word node in the node value graph, calculate the entity according to the hierarchical attributes of the adjacent word nodes of the word node corresponding to the entity, and the weights corresponding to the edges between the word nodes The value score of the test text is obtained by summing up the value scores of all entities in the test text.

[0013] Furthermore, clustering the corpus data into four categories of corpus specifically includes:

[0014] Select multiple corpora as cluster anchors for each category, use the pre-trained language model to extract features from all cluster anchors, and calculate the centroid of the cluster anchors for each category in the feature space:

[0015] ;

[0016] in, is the mth cluster anchor feature, , is the number of clustering anchor points for each category, For Category The centroid of the cluster anchor points, ;

[0017] The K-means clustering algorithm is used to cluster the corpus data, and the centroid of the cluster anchor point is used as the initial cluster center of the K-means clustering algorithm; based on the initial cluster center, all the corpus data are clustered to the category to which the nearest cluster anchor point belongs to achieve clustering.

[0018] Furthermore, the keywords of all corpora are extracted, and N keywords obtained after all keywords are aggregated and deduplicated are used as word nodes to obtain an independent word node set. , is the i-th word node, ; Each word node The ratio of the total word frequency of the corresponding keyword in each type of corpus to the total number of corpus instances in each type of corpus is input into the normalization function to obtain the word node Level attributes ; Level attributes Each dimension in represents The probability that the corresponding corpus belongs to different categories. If the category corresponding to the maximum probability is category X, the word node is divided into level X, including:

[0019] The corpus in the four categories is used to extract keywords using named entity recognition technology. For each category, a keyword set with repeated elements will be obtained, and there are overlapping keywords between the keyword sets corresponding to different categories; all keywords are summarized and deduplicated, and the N keywords obtained are As N word nodes, get a set of independent word nodes ; Calculate the level attributes for each word node:

[0020] ;

[0021] in, Representing word nodes The hierarchical properties of Represents the i-th keyword In category The total word frequency in the corpus, Representative Category The total number of corpus instances in , softmax is the normalization function; hierarchical attributes Each dimension in represents The probability that the corresponding corpus belongs to different categories. If the category corresponding to the maximum probability is category X, the word node is divided into level X. .

[0022] Furthermore, the hard relationship matrix and the attention score matrix , and get the fusion relationship matrix ,right The final relationship matrix r between word nodes is obtained by weighted averaging according to the confidence level, including:

[0023] Given the number of word nodes N and the length of the word segmentation sequence of a corpus and the hard relationship matrix , initialize a matrix of all zeros , according to the hard relationship matrix And the index mapping function established in the word segmentation stage , fill in 1 at the index position corresponding to the all-zero matrix; fuse the matrix through the gating mechanism and the attention score matrix , and get the fusion relationship matrix :

[0024] ;

[0025] in, represents the Sigmoid function, , are all learnable parameters, stands for element-wise product;

[0026] The BERT model consists of L layers of Transformer encoders; take the fusion relationship matrix output by the last layer of Transformer encoder , due to the fusion relationship matrix The elements in represent the relationship scores between all the word segmentation results. In the end, only the relationship scores between the word nodes need to be retained. Therefore, In the , the relationship matrix between word nodes is extracted according to the mapping relationship between word segmentation and word nodes. Since the keyword corresponding to a word node may appear in multiple positions in the corpus, multiple relationship matrices are generated, which need to be weighted averaged according to the confidence given by the BERT model:

[0027] ;

[0028] To intercept matrix operations, is the weighted average according to confidence, and softmax is the normalization function. is the final relationship matrix r between word nodes.

[0029] Furthermore, the entities in the test text are extracted to obtain the entity sequence of the test text. For each entity in the entity sequence , query the corresponding word node in the node value graph, calculate the entity according to the hierarchical attributes of the adjacent word nodes of the word node corresponding to the entity, and the weights corresponding to the edges between the word nodes The value score of the test text is obtained by summing up the value scores of all entities in the test text, including:

[0030] Use named entity recognition technology to extract entities in the test text and obtain a sequence of K entities ; For the kth entity , , retrieve the node value graph and get the entity Level attributes , p is an entity Corresponding word node in the node value graph The index of; there are q word nodes and word nodes in the node value graph Connection, then the word node The relation attributes of are represented as a sequence of relation scores and a sequence of hierarchical attributes of adjacent word nodes , Word nodes The index of the q adjacent word nodes in the node value graph, Represents word node With word node The relationship score between Word Node The hierarchical attribute of the test text for:

[0031] ;

[0032] ;

[0033] in, For Entity The value score, tanh is the activation function, is the weight vector.

[0034] Compared with the prior art, the beneficial technical effects of the present invention are:

[0035] The present invention proposes a method for constructing a computable value system based on hierarchical clustering and attribute mining from the perspective of multi-level knowledge discrimination, and calculates the value of the input text from coarse to fine granularity. Clustering technology is used to mine the hierarchical information of the corpus, and it is used as a bridge to obtain a coarse-grained value binary model and fine-grained node hierarchical attributes. In order to construct a fine-grained node value graph structure, the present invention further mines the node relationship attributes and proposes a calculation method that combines soft and hard weights, which can take into account the domain knowledge learned in the value text and the general relationship between words. Through multi-level attribute mining and value calculation, the method proposed by the present invention can understand more complex text semantics, and has good versatility and computational efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 It is a schematic diagram of the overall flow of the embodiment of the present invention. DETAILED DESCRIPTION

[0037] A preferred embodiment of the present invention is described in detail below with reference to the accompanying drawings.

[0038] The construction of a computable value system is defined as: by analyzing the massive corpus data on the Internet, mining knowledge nodes and relationships, and intelligently modeling the value content into an effective knowledge system, and with the corresponding value calculation methods, it is possible to identify and calculate the value of various content texts disseminated on the network.

[0039] The overall process of the present invention is as follows Figure 1 As shown, the present invention constructs a computable value system based on hierarchical clustering and attribute mining from the perspective of multi-level knowledge discrimination, and calculates the value of text according to the granularity from coarse to fine, which specifically includes the following contents.

[0040] 1. Hierarchical node mining:

[0041] Hierarchical node mining aims to mine and extract hierarchical knowledge nodes and their hierarchical attributes from large-scale real-time corpus data in a data-driven manner. Specifically, it includes the following steps:

[0042] a) Corpus filtering and preprocessing. Since the original corpus data comes from the Internet and the content is complex, it is necessary to perform basic cleaning and preprocessing on the corpus data. Specifically, it includes filtering of stop words, removal of links and special characters, and filtering of noise corpus.

[0043] b) Corpus clustering. The input corpus data is clustered into four categories in a data-driven manner, namely, category Ae representing positive corpus, category B representing neutral corpus, category C representing irrelevant corpus, and category Ne representing negative corpus. To this end, some corpus instances are first selected as cluster anchors for each category, and a pre-trained language model is used. In this embodiment, the BERT model is used to extract features for all cluster anchors. The centroid of the cluster anchors for each category in the feature space is calculated:

[0044] ;

[0045] in, is the mth cluster anchor feature, is the number of clustering anchor points for each category, is the feature dimension, For Category The centroid of the cluster anchor points, . Different from the randomly initialized cluster center of the original K-means algorithm, the centroid of the cluster anchor point is used as the initial cluster center of the K-means clustering algorithm. Based on the initial cluster center, all corpus data are clustered to the category of the nearest cluster anchor point using the K-means algorithm, which can effectively promote the correctness of the clustering mining direction. After clustering, the input corpus is divided into four categories: Ae, B, C, and Ne.

[0046] c) Node mining and hierarchical division. The corpus in the four categories is used to extract keywords using named entity recognition technology. For each category, a keyword set with repeated elements is obtained. There are also overlapping keywords between categories. For example, some keywords may appear in multiple positive corpora as well as multiple neutral corpora. First, all keywords in the four categories are aggregated and deduplicated to obtain a set of independent word nodes with unique elements. , calculate the hierarchical attributes for each keyword node:

[0047] ;

[0048] in, Representing word nodes The hierarchical attributes of Representing word nodes Corresponding keywords The total frequency of words in the corpus of category Ae, Represents the total number of corpus instances of category Ae. Based on the above definition, the definitions of other similar symbols can be known; softmax is a normalization function, Each dimension represents a word node The probability of belonging to a certain category of word nodes, taking the category with the highest probability as the word node So far, the mining and hierarchical attribute calculation of word nodes at the four levels of Ae, B, C, and Ne have been completed.

[0049] 2. Node relationship attribute construction based on soft and hard weight fusion:

[0050] Get a set of independent word nodes After that, it is necessary to further determine the relationship weights between word nodes in order to perform value calculation at the node level. The present invention proposes a self-learning soft and hard weight fusion method to finely process the semantic relationship between word nodes. First, the mainstream value corpus is re-segmented using the word nodes that have been obtained to ensure that the word nodes are not separated in the corpus after segmentation. Specifically, a piece of original corpus will be cut into pieces of length The word sequence of ,in , and create an index mapping function Then, the pre-trained relation extraction model is used to process the word segmentation data with word node information to obtain a preliminary set of node pairs with semantic relationships. Based on these node pairs, a hard-coded hard relation matrix is ​​constructed. , when the mth word node and the nth word node are in the predicted node pair set, the element Set to 1, otherwise Set to 0. In this embodiment, the relationship extraction model uses the DRel model in the DeepNLP tool library, or a GPT-type large language model prompted by a small number of samples.

[0051] However, the relation extraction model that has not been specially trained on value-oriented knowledge data cannot predict the semantic relationship between all word nodes. The present invention further learns the relational knowledge between word nodes on unstructured corpus and uses the whole word mask modeling strategy to perform self-supervisory training on the autoencoder BERT-type model. The autoencoder model such as BERT is composed of L layers of Transformer encoders and has a bidirectional attention mechanism, thus having stronger text comprehension capabilities. Masking is performed to obtain training data. In order to improve training efficiency, only the nodes contained in the independent word node set are processed. The participle in Perform mask prediction. Each layer of the BERT model calculates the attention score matrix , where the attention score is equivalent to the soft label of the relationship between the word segments. In order to achieve the fusion of soft and hard weights, the present invention additionally initializes a matrix of all zeros , and according to the obtained hard relationship matrix And the index mapping function established in the word segmentation stage , fill in 1 at the appropriate index position. The present invention designs a gating mechanism to fuse the matrix and the attention score matrix , the specific formula is as follows:

[0052] ;

[0053] in Represents the Sigmoid function, and the output range is (0,1); , is a learnable parameter, Stands for element-wise product.

[0054] The gating mechanism is used to learn the influence of hard-coded prior knowledge on the soft label of attention score, thereby realizing knowledge fusion. After the whole word mask self-supervised training is completed, the final BERT model is used to perform mask prediction on each node again, and the fusion relationship matrix output in the last layer is The relationship matrix between word nodes is extracted from the corpus. Since the keywords of a word node may appear in multiple positions in the corpus, multiple relationship matrices are generated. The final result can be obtained by weighted averaging based on the prediction confidence given by the BERT model. The calculation formula is as follows:

[0055] ;

[0056] To intercept matrix operations, To achieve weighted average by confidence, softmax normalization is used. is the final word node relationship matrix. The present invention sets a threshold , when the relationship score between two word nodes is higher than When , an edge with the relationship score as the weight is established. If it is lower than It believes that the two word nodes have no relationship. The final word node connection integrates professional knowledge in the field of mainstream values ​​and prior knowledge of basic word relationships, and has a more accurate semantic representation capability.

[0057] 3. Multi-level comprehensive knowledge matching calculation:

[0058] After the above processing, a structured node value graph can be obtained from the unstructured article corpus. The node value graph contains many word nodes, each word node corresponds to hierarchical attributes and relationship attributes, and word node level calculations can be performed. But this is not enough. For example, if the input text "I don't want to do something", the word node "do something" will appear many times in the corpus of category Ae. Simply calculating at the word node level will result in a positive value score. Therefore, in order to consider the complex semantics at the sentence level, the present invention uses the corpus of category Ae and the corpus of category Ne to fine-tune the BERT model, so that the BERT model has the ability to distinguish between positive and negative values ​​contained in the text in the form of a binary classification task. Since the category labels of the corpus are pseudo-labels obtained through unsupervised clustering, the corpus of category Ae and the corpus of category Ne may be mixed with some corpus in neutral or irrelevant boundary areas. The BERT model trained using such noisy data is not completely reliable. Therefore, when a test text for which a value score needs to be calculated is received, the present invention first uses a fine-tuned BERT model to perform a preliminary value division on the test text:

[0059] If the test text is classified as negative value text, initialize the value score of the test text ; If the test text is classified as positive value text, initialize the value score of the test text .

[0060] Use named entity recognition technology to extract entities in the test text and obtain a sequence of K entities In the node value graph, we query the hierarchical attributes and relationship attributes of these entities one by one, weight the hierarchical attributes, and calculate the value score of the entire test text. Specifically, for the kth entity , retrieve the node value graph to get The hierarchical attributes are , p is The index in the node value graph, assuming there are q word nodes and word nodes in the node value graph Connection, then the word node The relational attributes of can be represented as a sequence of relation scores and a sequence of hierarchical attributes of adjacent word nodes , Word nodes The index of the q adjacent word nodes in the node value graph. The value score of the test text for:

[0061] ;

[0062] ;

[0063] Among them, tanh is the activation function; is a weighted vector. The reason for this assignment is that the hierarchical attribute h is a four-dimensional vector. The two middle dimensions are related to the frequency of word nodes in neutral and irrelevant corpora. These two dimensions contribute less to the value calculation, so they are assigned lower weights in the dot product. ( is a preset threshold, which is set to 0.13 in the present invention), then the test text should be neutral text or irrelevant text; otherwise, the value score is output .

[0064] It is obvious to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential features of the present invention. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-limiting, and the scope of the present invention is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention, and any reference numerals in the claims should not be regarded as limiting the claims involved.

[0065] In addition, it should be understood that although this specification is described in terms of implementation methods, not every implementation method contains only one independent technical solution. This narrative method of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation methods that can be understood by those skilled in the art.

Claims

1. A method for constructing a computable value system based on hierarchical clustering and attribute mining, characterized in that: It is used to calculate the value score of the text spread in the network, which specifically includes the following steps: Step 1, hierarchical node mining: cluster the corpus data into four categories of corpus, including category Ae representing positive corpus, category B representing neutral corpus, category C representing irrelevant corpus and category Ne representing negative corpus; Extract keywords from all corpora, aggregate all keywords and remove duplicates to obtain N keywords as word nodes, and obtain a set of independent word nodes , is the i-th word node, ; Each word node The ratio of the total word frequency of the corresponding keyword in each type of corpus to the total number of corpus instances in each type of corpus is input into the normalization function to obtain the word node Level attributes ; Level attributes Each dimension in represents The probability that the corresponding corpus belongs to different categories; specifically, the following steps are used: extract keywords from the corpus in the four categories using named entity recognition technology. For each category, a keyword set with repeated elements will be obtained, and there will be overlapping keywords between the keyword sets corresponding to different categories; all keywords are aggregated and de-duplicated, and the N keywords obtained are As N word nodes, get a set of independent word nodes ; Calculate the level attributes for each word node: ; in, Representing word nodes The hierarchical properties of Represents the i-th keyword In category The total word frequency in the corpus, Representative Category The total number of corpus instances in , softmax is the normalization function; hierarchical attributes Each dimension in represents The probability that the corresponding corpus belongs to different categories. If the category corresponding to the maximum probability is category X, the word node is divided into level X. ; Step 2: Take a piece of corpus Cut into lengths of The word sequence , among which Participle , , and create an index mapping function : ; Use the pre-trained relation extraction model to process word segmentation, and form node pairs corresponding to the word segmentation with semantic relationship to obtain a node pair set; Based on the node pair set, a hard relation matrix for representing the hard labels of the relationship between word nodes is constructed ; Determine whether the node pair consisting of the mth word node and the nth word node is in the node pair set. If so, Elements in Set to 1, otherwise, the element Set to 0; word segmentation sequence Perform mask processing and use the mask processing results as training data to train the BERT model. The BERT model outputs an attention score matrix for representing the soft labels of the relationship between word segments. ; Based on hard relationship matrix and the attention score matrix , and get the fusion relationship matrix ;right The final relationship matrix r between word nodes is obtained by weighted averaging according to the confidence level; specifically, the number of word nodes N, the length of the word segmentation sequence of a corpus and the hard relationship matrix , initialize a matrix of all zeros , according to the hard relationship matrix And the index mapping function established in the word segmentation stage , fill in 1 at the index position corresponding to the all-zero matrix; fuse the matrix through the gating mechanism and the attention score matrix , and get the fusion relationship matrix : ; in, represents the Sigmoid function, , are all learnable parameters, stands for element-wise product; The BERT model consists of L layers of Transformer encoders; take the fusion relationship matrix output by the last layer of Transformer encoder , fusion relationship matrix contains elements representing the relationship scores between all the participles, which need to be mapped from participles to word nodes. The relationship matrix between word nodes is extracted from . Since the keyword corresponding to a word node may appear in multiple positions in the corpus, multiple relationship matrices are generated. They need to be weighted averaged according to the confidence given by the BERT model: ; To intercept matrix operations, is the weighted average according to confidence, and softmax is the normalization function. is the final relationship matrix r between word nodes; The elements in r represent the relationship scores of two word nodes. When the relationship scores of two word nodes are higher than a threshold, an edge with the relationship score as the weight is established between the two word nodes, thereby obtaining a node value graph. The node value graph contains multiple word nodes, each of which corresponds to a hierarchical attribute or a relationship attribute, and can perform word node hierarchical calculations. Step 3: Adjust the BERT model through the corpus of category Ae and the corpus of category Ne, so that the BERT model has the ability to distinguish the input text as positive value text or negative value text in the form of a binary classification task; input the test text into the adjusted BERT model, and perform a preliminary value classification on the test text: if the test text is classified as negative value text, initialize the value score of the test text ; If the test text is classified as a positive value text, the value score of the initial test text is ; Extract entities from the test text and obtain the entity sequence of the test text; for each entity in the entity sequence , query the corresponding word node in the node value graph, calculate the entity according to the hierarchical attributes of the adjacent word nodes of the word node corresponding to the entity, and the weights corresponding to the edges between the word nodes The value score of all entities in the test text is summed up to obtain the value score of the test text, which specifically includes: using named entity recognition technology to extract entities in the test text and obtain a sequence of K entities ; For the kth entity , , retrieve the node value graph and get the entity Level attributes , p is an entity Corresponding word node in the node value graph The index of; there are q word nodes and word nodes in the node value graph Connection, then the word node The relation attributes of are represented as a sequence of relation scores and a sequence of hierarchical attributes of adjacent word nodes , Word nodes The index of the q adjacent word nodes in the node value graph, Represents word node With word node The relationship score between Word Node The hierarchical attribute of the test text for: ; ; in, For Entity The value score, tanh is the activation function, is the weight vector.

2. The method for constructing a computable value system based on hierarchical clustering and attribute mining according to claim 1, characterized in that: The clustering of the corpus data into four categories of corpus specifically includes: Select multiple corpora as cluster anchors for each category, use the pre-trained language model to extract features from all cluster anchors, and calculate the centroid of the cluster anchors for each category in the feature space: ; in, is the mth cluster anchor feature, , is the number of clustering anchor points for each category, For Category The centroid of the cluster anchor points, ; The K-means clustering algorithm is used to cluster the corpus data, and the centroid of the cluster anchor point is used as the initial cluster center of the K-means clustering algorithm; based on the initial cluster center, all the corpus data are clustered to the category to which the nearest cluster anchor point belongs to achieve clustering.