Industrial chain correction method, system and equipment based on evidence theory
Through evidence theory and text generation model, the industrial chain relationship is corrected, which solves the error problems caused by single data source and information lag in the existing technology, and provides more reliable industrial chain data.
Patent Information
- Application Number
- CN202411187354.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-28
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-08-28
AI Technical Summary
In the existing technology, the construction of industrial chain relationships is prone to problems such as single data source, subjective bias and information lag, leading to errors in the construction of some relationships.
The industry chain correction method based on evidence theory is adopted, by obtaining the industry chain triplet, using the text generation model to generate relevant text, building a text similarity model, retrieving Internet data, calculating the confidence coefficient, and applying the evidence theory to construct a trust distribution function and correct Industrial chain relations.
It effectively solves the problem of incorrect relationship construction in traditional methods, provides more reliable industrial chain data, and provides more accurate basis for decision makers.
Smart Images

Figure CN118690210B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of natural language processing, and in particular to an industrial chain correction method, system and device based on evidence theory. Background Art
[0002] Industrial chain is a concept in industrial economics, referring to production, supply and sales, the entire industrial chain from raw materials to consumers. It is a chain-like relationship form that is objectively formed between various departments based on certain technical and economic connections and according to specific logical relationships and time-space layout relationships.
[0003] At present, there are two main ways to build an industrial chain: one is the traditional manual method, and the other is a method based on machine learning. For example, the Chinese invention patent with application number 202310260247.6 discloses an industrial chain construction and iterative expansion development method, which obtains the relationship between new words based on the upper and lower relationships and parallel semantic relationships of the industrial corpus, constructs an industrial chain tree, designs a dedicated data storage structure for storage, and iterates and expands the industrial chain tree to build an industrial chain. The Chinese invention patent with application number 202211674470.7 discloses an enterprise industrial chain construction, credit granting method, device, server and storage medium, which constructs a neural network based on tax data to find upstream and downstream enterprises, and then constructs the enterprise industrial chain based on the information of related downstream enterprises and downstream enterprises. The Chinese invention patent with application number 202210254413.7 discloses an industrial chain construction method, device and storage medium, which constructs an industrial chain based on enterprise data according to the word training model.
[0004] However, the above method is prone to errors in the construction of some relationships in the industrial chain due to the single data source, subjective bias and information lag. To solve this problem, the present invention proposes an industrial chain correction method and system based on evidence theory. The method retrieves the existing industrial chain through Internet data, applies evidence theory to judge the credibility of industrial chain triples, optimizes the existing industrial chain, and provides a more reliable basis for decision makers. Summary of the invention
[0005] The present invention aims to solve at least one of the technical problems existing in the prior art.
[0006] To this end, the first aspect of the present invention provides an industrial chain correction method based on evidence theory.
[0007] The second aspect of the present invention provides an industrial chain correction system based on evidence theory.
[0008] A third aspect of the present invention provides a computer device.
[0009] The industrial chain correction method based on evidence theory proposed in the present invention includes:
[0010] According to the existing industrial chain information, obtain the industrial chain triples with upstream and downstream relationships;
[0011] Using an external data set to train a text generation model, and generating a number of generated texts related to industrial chain triples based on the text generation model; wherein the external data set includes triples for representing upstream and downstream of products, and texts describing the triples;
[0012] Build a text similarity model and use public datasets to train the text similarity model;
[0013] Retrieving the generated texts one by one from a search engine, wherein the retrieval task of each generated text includes collecting retrieval results, and calculating the similarity between the generated text and the retrieved text through a text similarity model, and taking the highest similarity value as the confidence coefficient of the generated text;
[0014] The trust distribution function is constructed by applying evidence theory, and the trust function value is calculated using the confidence coefficient. The product triplets are divided into reasonable triplets or unreasonable triplets according to the trust function value, and the industrial chain is corrected based on the division results.
[0015] The industrial chain correction method based on evidence theory according to the above technical solution of the present invention may also have the following additional technical features:
[0016] In the above technical solution, the process of obtaining an industrial chain triplet with upstream and downstream relationships based on the existing industrial chain information includes:
[0017] Based on graph theory, the existing industrial chain is represented, where each node represents a product or service, there is an upstream or downstream relationship between nodes, and there is at least one connecting path between any two nodes in the industrial chain, and each connecting path is defined as an edge;
[0018] Adjacent nodes and their relationships in the industrial chain are extracted to obtain industrial chain triples with upstream and downstream relationships.
[0019] In the above technical solution, the text generation model is trained using an external data set, and a number of generated texts related to the industrial chain triples are generated based on the text generation model, including:
[0020] The external data set is a text generation data set, and the text generation data set includes a triple consisting of two entities and a relationship, and three independent texts for describing the triple;
[0021] A text generation data set is used to train a text generation model, where the text generation model is used to generate three independent texts describing the industrial chain triples based on the industrial chain triples.
[0022] In the above technical solution, the method of using the text generation dataset to train the text generation model includes:
[0023] Each piece of data in the text generation dataset is divided into input text and target text, where the input text is a triple consisting of two entities and a relationship, and the target text is three independent texts used to describe the triple;
[0024] Map each piece of data to the character encoding in the model's internal vocabulary, and return a dictionary with the input sequence and the target sequence;
[0025] The input sequence passes through the Transformer encoder to obtain a context-dependent semantic representation vector;
[0026] Construct a training function to train the model based on the input sequence tensor, and compare the output of the model with the target sequence; use the cross entropy loss function to calculate the loss value, perform backpropagation based on the loss value, and optimize the model parameters.
[0027] In the above technical solution, the step of building a text similarity model and using a public data set to train the text similarity model includes:
[0028] Build a twin neural network for calculating text similarity, which includes an embedding layer for converting text into vectors, a bidirectional LSTM layer for capturing contextual information, and a linear layer for calculating text similarity scores;
[0029] Among them, the public dataset is a public text matching dataset.
[0030] In the above technical solution, the generated texts are retrieved one by one from the search engine, and the retrieval task of each generated text includes collecting the retrieval results, and calculating the similarity between the generated text and the retrieved text through the text similarity model, and taking the highest similarity value as the confidence coefficient of the generated text, including:
[0031] Retrieving the generated text in a search engine, and designing a crawler script to obtain the search results; the crawler script includes: constructing a search query according to the content of the generated text, obtaining a target web page, and then using a special tag of the search engine to locate the specified text in the web page, and crawling a plurality of texts related to the generated text;
[0032] The text similarity between the generated text and the retrieved text is calculated using a text similarity model to obtain multiple similarity values, and the highest similarity value is used as the confidence coefficient of the generated text; wherein each industrial chain triple has at least one generated text, and the industrial chain triple has y confidence coefficients matching the number of generated texts.
[0033] In the above technical solution, the application of evidence theory constructs a trust allocation function, uses a confidence coefficient to calculate a trust function value, divides product triplets into reasonable triplets or unreasonable triplets according to the trust function value, and corrects the industrial chain based on the division result, including:
[0034] Based on the confidence coefficient and DS evidence theory, the identification framework and trust allocation function are designed;
[0035] Among them, the design recognition framework θ, , all propositions in the recognition framework θ are mutually exclusive, This triple is reasonable. Indicates that this triple is unreasonable; and Respectively represent the i-th confidence coefficient for the proposition and proposition The confidence level of , that is, the trust function value, and + =1;
[0036] Calculate the trust function value and compare and size; when Greater than When the triple is considered reasonable, Less than When the triplet is considered unreasonable, all industrial chain triplets are divided into two categories: reasonable and unreasonable. The unreasonable triplets are deleted to obtain the corrected industrial chain.
[0037] In the above technical solution, the method for calculating the trust function value includes:
[0038] Calculate the conflict coefficient K, the calculation formula is:
[0039]
[0040] Where n represents the number of confidence coefficients, i and j represent the numbers of the confidence coefficients respectively;
[0041] Using DS synthesis rules to synthesize computational propositions The trust function value of , the calculation formula is:
[0042]
[0043] Similarly, we can calculate the proposition The trust function value of .
[0044] The present invention provides an industry chain correction system based on evidence theory, comprising:
[0045] The data processing module obtains the triplet of the industrial chain with upstream and downstream relationships based on the existing industrial chain information;
[0046] A text generation module, which uses an external data set to train a text generation model, and generates a number of generated texts related to industrial chain triples based on the text generation model; wherein the external data set includes triples for representing upstream and downstream products, and texts describing the triples;
[0047] Text similarity module, builds a text similarity model and uses public datasets to train the text similarity model;
[0048] A confidence coefficient module retrieves the generated texts one by one from a search engine, wherein the retrieval task of each generated text includes collecting retrieval results, and calculating the similarity between the generated text and the retrieved text through a text similarity model, and taking the highest similarity value as the confidence coefficient of the generated text;
[0049] The triplet correction module applies evidence theory to construct a trust allocation function, uses the confidence coefficient to calculate the trust function value, divides the product triplets into reasonable triplets or unreasonable triplets according to the trust function value, and corrects the industrial chain based on the division results.
[0050] A computer device provided by the present invention includes a processor and a memory, wherein a computer program is stored in the memory. When the computer program is loaded and executed by the processor, an industrial chain correction method based on evidence theory as described in any one of the above technical solutions is implemented.
[0051] In summary, due to the adoption of the above technical features, the beneficial effects of the present invention are:
[0052] The present invention corrects the industrial chain based on the evidence theory. Specifically, the present invention combines the pre-training model and data mining to obtain relevant information of the industrial chain, judges the rationality of the industrial chain triples through the evidence theory, and corrects the industrial chain. It effectively solves the problem of incorrect construction of industrial chain relationships caused by the single data source, subjective bias and information lag in traditional methods, optimizes the existing industrial chain, and provides a more reliable basis for decision makers.
[0053] Additional aspects and advantages of the present invention will become apparent from the following description or may be learned by practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0055] Figure 1 is a flow chart of an industrial chain correction method based on evidence theory according to an embodiment of the present invention;
[0056] Figure 2 It is a structural diagram of an industry chain correction system based on evidence theory according to an embodiment of the present invention. DETAILED DESCRIPTION
[0057] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0058] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0059] Refer to the following Figure 1 and Figure 2 To describe the industry chain correction method, system and device based on evidence theory provided according to some embodiments of the present invention.
[0060] Some embodiments of the present application provide an industrial chain correction method based on evidence theory.
[0061] like Figure 1 As shown, the first embodiment of the present invention proposes an industrial chain correction method based on evidence theory, including the following steps S1-S5. It should be noted that the order of steps S1-S5 shown in the present disclosure is only one of several embodiments, and the method disclosed in the present disclosure does not have to be strictly executed in the order of steps. Those skilled in the art can adjust the order of steps according to needs and actual conditions, and different steps can also be executed at the same time.
[0062] S1. Based on the existing industrial chain information, obtain the industrial chain triples with upstream and downstream relationships.
[0063] Specifically, step S1 includes: representing an existing industrial chain based on graph theory, wherein each node is represented as a product or service, there is an upstream or downstream relationship between nodes, and there is at least one connection path between any two nodes in the industrial chain, and each connection path is defined as an edge. Adjacent nodes and their relationships in the industrial chain are extracted to obtain an industrial chain triple with an upstream and downstream relationship.
[0064] In a specific embodiment, taking the constructed new energy vehicle industry chain as an example, the existing industry chain consists of 95 nodes and 94 edges, and there is a connecting path between any two nodes. All adjacent nodes and their relationships in the industry chain are extracted to obtain an industry chain triplet with upstream and downstream relationships.
[0065] S2. Use an external data set to train a text generation model, and generate a number of generated texts related to industrial chain triples based on the text generation model; wherein the external data set includes triples used to represent upstream and downstream of products, and texts describing the triples.
[0066] Specifically, step S2 includes:
[0067] The external data set is a text generation data set, and the text generation data set includes a triple consisting of two entities and a relationship, and three independent texts for describing the triple;
[0068] The text generation data set is used to train the text generation model, which is used to generate three independent texts describing the industrial chain triples based on the industrial chain triples. Among them, the text generation model belongs to the pre-training model. The training text first converts the character encoding into a semantic vector representation through the embedding layer, and then uses the Transformer layer to capture the relationship of each word in the context, and obtains the standardized vector through the normalization layer. Finally, the features are extracted to generate the probability distribution of the target text. After the training is completed, the text generation model is used to generate multiple texts describing the industrial chain triples.
[0069] In some embodiments, taking the text generation model using the pre-trained model GPT2 as an example, the method for training the text generation model includes:
[0070] Each piece of data in the text generation dataset is divided into input text and target text, where the input text is a triple consisting of two entities and a relationship, and the target text is three independent texts used to describe the triple;
[0071] Map each piece of data to the character encoding in the vocabulary inside GPT2, and return a dictionary with the input sequence and the target sequence;
[0072] The input sequence passes through the Transformer encoder to obtain a context-dependent semantic representation vector;
[0073] Construct a training function to train the model based on the input sequence tensor, compare the model's output with the target sequence; use the cross entropy loss function to calculate the loss value, perform back propagation based on the loss value, and optimize the model parameters. After training, use the model to generate three independent texts describing the industrial chain triples based on the industrial chain triples.
[0074] In a specific embodiment, based on the extraction of the industrial chain triples from the new energy automobile industrial chain, a method for obtaining the generated text is as follows:
[0075] The external text generation dataset has more than 10,000 data items. Each data item includes a triplet of the upstream and downstream of the product, and three sentences that independently describe the triplet. The format of each data item is shown in Table 1.
[0076] Table 1 Data format of text generation dataset
[0077]
[0078] The pre-trained model GPT2 based on the Transform architecture is used as the text generation model. The model includes an embedding layer, a position encoding layer, a Transform encoder layer, and an output layer. The embedding layer has a dimension of 768 and a total of 12 layers. The triple data is divided into input text and target text, with the triple as the input text and the description part as the target text. The GPT2 vocabulary is used for encoding, and a dictionary containing the input text encoding, character mask, and target text encoding is returned. The data is input into GPT2 in batches, and the input sequence is first converted into a 768-dimensional vector through the embedding layer. After multiple layers of Transformer blocks and linear layers, the probability prediction vector for the next word is obtained. The cross entropy loss function is used to calculate the loss function value between the input sequence and the target sequence, and the gradient is calculated by back propagation, and the parameters are adjusted using the Adam optimizer. After the training is completed, the trained GPT2 model is used to generate 3 texts related to the triple according to the industrial chain triple obtained in step S1.
[0079] S3. Build a text similarity model and use public datasets to train the text similarity model.
[0080] Specifically, step S3 includes: building a twin neural network for calculating text similarity, wherein the twin neural network includes an embedding layer for converting text into a vector, a bidirectional LSTM layer for capturing contextual information, and a linear layer for calculating text similarity scores;
[0081] Among them, the public dataset is a public text matching dataset. You can choose any of the existing public datasets according to your needs, such as DIAC2019, CCKS2018_Task3, LCQMC, AFQMC, GAIIC2021_Task3, THS2021, CHIP2019, SOHU_2021, COVID19, PAWSX, XF2021, Chinese-MNLI, Chinese-SNLI, Chinese-STS-B, OCNLI, PKU, etc.
[0082] In a specific embodiment, the twin neural network adopts Siamese-BiLSTM, which includes a 256-dimensional embedding layer, a bidirectional LSTM layer for extracting contextual information (each LSTM has 128 hidden layers), and a linear layer for converting the LSTM output into a similarity score; the model vocabulary defaults to 10,000, the dropout rate (Dropout) is set to 0.2, and the loss function is a contrast loss function; after two texts are input into the model, they are first converted into word embedding vectors through the embedding layer, and the embedded vectors are processed by the bidirectional LSTM layer to capture sequence information and contextual correlation, and a joint vector is obtained through maximum pooling processing, and finally the joint vector is linearly transformed through a linear layer, and the Sigmoid function is used to obtain the similarity score.
[0083] The text matching dataset used in this embodiment is illustrated by taking LCQMC as an example. The LCQMC dataset has more than 400,000 data items, each of which contains two sentences and a label to determine whether they are similar. The data format is shown in Table 2, where a similarity label value of 1 indicates that the two are similar, and a similarity label value of 0 indicates that the two are not similar.
[0084] Table 2 LCQMC dataset data format
[0085]
[0086] S4. Retrieve the generated texts one by one from a search engine. The retrieval task of each generated text includes collecting retrieval results, and calculating the similarity between the generated text and the retrieved text through a text similarity model, and taking the highest similarity value as the confidence coefficient of the generated text.
[0087] Specifically, step S4 includes:
[0088] Retrieving the generated text in a search engine, and designing a crawler script to obtain the search results; the crawler script includes: constructing a search query according to the content of the generated text, obtaining a target web page, and then using a special tag of the search engine to locate the specified text in the web page, and crawling a plurality of texts related to the generated text;
[0089] The text similarity between the generated text and the retrieved text is calculated using a text similarity model to obtain multiple similarity values, and the highest similarity value is used as the confidence coefficient of the generated text; wherein each industrial chain triple has at least one generated text, and the industrial chain triple has y confidence coefficients matching the number of generated texts.
[0090] In a specific embodiment, the relevant content of the generated text is crawled in the search engine. Taking the Bing engine as an example, a crawler script is designed to search the three sentences of text generated by GPT2 respectively. First, the target web page is obtained by "'https: / / cn.bing.com / search?q=' + generated text", and then the specific mark of the most similar keyword of the Bing search engine is used to locate the paragraph tag of the web page. <strong>The target text is crawled, and three retrieval texts similar to the generated text are crawled. The crawling results are shown in Table 3.
[0091] Table 3 Search engine crawling results
[0092]
[0093] Then, the text similarity model Siamese-BiLSTM established in step S3 is used to calculate the semantic similarity between the generated text and the retrieved text, and multiple similarity values are obtained. The highest similarity value is used as a confidence coefficient of the industrial chain triple. Since the generated text is based on the industrial chain triple, the confidence coefficient is applicable to the industrial chain triple. Each industrial chain triple has 3 generated texts, so the industrial chain triple has 3 confidence coefficients.
[0094] S5. Apply evidence theory to construct a trust allocation function, use the confidence coefficient to calculate the trust function value, divide the product triplets into reasonable triplets or unreasonable triplets according to the trust function value, and correct the industrial chain based on the division results.
[0095] Specifically, step S5 includes:
[0096] Based on the confidence coefficient and DS (Dempster-Shafer) evidence theory, the identification framework and trust allocation function are designed; including:
[0097] Design the recognition framework θ, , all propositions in the recognition framework θ are mutually exclusive, This triple is reasonable. Indicates that this triple is unreasonable; and Respectively represent the i-th confidence coefficient for the proposition and proposition The confidence level of , that is, the trust function value, and + =1;
[0098] Calculate the trust function value and compare and size; when Greater than When the triple is considered reasonable, Less than When the triplet is considered unreasonable, all industrial chain triplets are divided into two categories: reasonable and unreasonable. The unreasonable triplets are deleted to obtain the corrected industrial chain.
[0099] The method for calculating the trust function value includes:
[0100] Calculate the conflict coefficient K, the calculation formula is:
[0101]
[0102] Where n represents the number of confidence coefficients, i and j represent the numbers of the confidence coefficients respectively;
[0103] Using DS synthesis rules to synthesize computational propositions The trust function value of , the calculation formula is:
[0104]
[0105] Similarly, we can calculate the proposition The trust function value of .
[0106] In a specific embodiment, three confidence coefficients are used as three evidence sources to represent the reasonable confidence of the industrial chain triplet, which are: , , (the values are all between 0 and 1); the unreasonable confidence of this industrial chain triplet is , , .
[0107] First calculate the conflict coefficient K:
[0108]
[0109] = * * + * * + * * +
[0110] * * + * * + * *
[0111] The synthetic basic trust function value of whether this triple is reasonable or unreasonable is calculated based on the conflict coefficient, and the calculation is as follows:
[0112]
[0113] Right now: = * * * ;
[0114] = * * * ;
[0115] calculate The composite trust function value of and ,Compare and Size, when Greater than When the triple is considered reasonable, Less than The triplet is considered unreasonable. The above 94 triples are verified through the above steps and the following triples of the industrial chain are found Less than , which is an unreasonable triple; as shown in Table 4.
[0116] Table 4 Trust function value of industry chain ternary combination
[0117]
[0118] The above unreasonable triples are deleted from the new energy vehicle industry chain to obtain the corrected new energy vehicle industry chain.
[0119] The second embodiment of the present invention proposes an industry chain correction system based on evidence theory, and on the basis of the first embodiment, Figure 2 As shown, the system includes: a data processing module, a text generation module, a text similarity module, a confidence coefficient module and a triple correction module. The data processing module obtains the triples of the industrial chain with upstream and downstream relationships according to the existing industrial chain information; the text generation module uses an external data set to train the text generation model, and generates a number of generated texts related to the industrial chain triples based on the text generation model; wherein the external data set includes triples used to represent the upstream and downstream of the product, and the text describing the triples; the text similarity module is used to build a text similarity model, and use a public data set to train the text similarity model; the confidence coefficient module retrieves the generated texts one by one from the search engine, and the retrieval task of each generated text includes collecting the retrieval results, and calculating the similarity between the generated text and the retrieved text through the text similarity model, and taking the highest similarity value as the confidence coefficient of the generated text; the triple correction module applies the evidence theory to construct the trust allocation function, uses the confidence coefficient to calculate the trust function value, divides the product triples into reasonable triples or unreasonable triples according to the trust function value, and corrects the industrial chain based on the division result.
[0120] A third embodiment of the present invention provides a computer device, including a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is loaded and executed by the processor, the industrial chain correction method based on evidence theory as described in any of the above embodiments is implemented.
[0121] In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0122] Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.< / strong>
Claims
1. An industrial chain correction method based on evidence theory, characterized in that: include: According to the existing industrial chain information, obtain the industrial chain triples with upstream and downstream relationships; Using an external data set to train a text generation model, and generating a number of generated texts related to industrial chain triples based on the text generation model; wherein the external data set includes triples for representing upstream and downstream of products, and texts describing the triples; Build a text similarity model and use public datasets to train the text similarity model; Retrieving the generated texts one by one from a search engine, wherein the retrieval task of each generated text includes collecting retrieval results, and calculating the similarity between the generated text and the retrieved text through a text similarity model, and taking the highest similarity value as the confidence coefficient of the generated text; The trust distribution function is constructed by applying evidence theory, and the trust function value is calculated using the confidence coefficient. The product triplets are divided into reasonable triplets or unreasonable triplets according to the trust function value, and the industrial chain is corrected based on the division results.
2. The method for correcting an industrial chain based on evidence theory according to claim 1 is characterized in that: The step of obtaining an industrial chain triplet with upstream and downstream relationships based on the existing industrial chain information includes: Based on graph theory, the existing industrial chain is represented, where each node represents a product or service, there is an upstream or downstream relationship between nodes, and there is at least one connecting path between any two nodes in the industrial chain, and each connecting path is defined as an edge; Adjacent nodes and their relationships in the industrial chain are extracted to obtain industrial chain triples with upstream and downstream relationships.
3. The method for correcting an industrial chain based on evidence theory according to claim 2 is characterized in that: The text generation model is trained using an external data set, and a plurality of generated texts related to the industrial chain triples are generated based on the text generation model, including: The external data set is a text generation data set, and the text generation data set includes a triple consisting of two entities and a relationship, and three independent texts for describing the triple; A text generation data set is used to train a text generation model, where the text generation model is used to generate three independent texts describing the industrial chain triples based on the industrial chain triples.
4. The method for correcting an industrial chain based on evidence theory according to claim 3 is characterized in that: The method of using a text generation dataset to train a text generation model includes: Each piece of data in the text generation dataset is divided into input text and target text, where the input text is a triple consisting of two entities and a relationship, and the target text is three independent texts used to describe the triple; Map each piece of data to the character encoding in the model's internal vocabulary, and return a dictionary with the input sequence and the target sequence; The input sequence passes through the Transformer encoder to obtain a context-dependent semantic representation vector; Construct a training function to train the model based on the input sequence tensor, and compare the output of the model with the target sequence; use the cross entropy loss function to calculate the loss value, perform backpropagation based on the loss value, and optimize the model parameters.
5. The method for correcting an industrial chain based on evidence theory according to claim 1 is characterized in that: The method of building a text similarity model and using a public data set to train the text similarity model includes: Build a twin neural network for calculating text similarity, which includes an embedding layer for converting text into vectors, a bidirectional LSTM layer for capturing contextual information, and a linear layer for calculating text similarity scores; Among them, the public dataset is a public text matching dataset.
6. The method for correcting an industrial chain based on evidence theory according to claim 1, characterized in that: The step of retrieving the generated texts one by one from the search engine, wherein each retrieval task of the generated texts includes collecting retrieval results, and calculating the similarity between the generated texts and the retrieved texts through a text similarity model, and taking the highest similarity value as the confidence coefficient of the generated text, comprises: Retrieving the generated text in a search engine, and designing a crawler script to obtain the search results; the crawler script includes: constructing a search query according to the content of the generated text, obtaining a target web page, and then using a special tag of the search engine to locate the specified text in the web page, and crawling a plurality of texts related to the generated text; The text similarity between the generated text and the retrieved text is calculated using a text similarity model to obtain multiple similarity values, and the highest similarity value is used as the confidence coefficient of the generated text; wherein each industrial chain triple has at least one generated text, and the industrial chain triple has y confidence coefficients matching the number of generated texts.
7. The method for correcting an industrial chain based on evidence theory according to claim 1, characterized in that: The application of evidence theory constructs a trust allocation function, uses a confidence coefficient to calculate a trust function value, divides product triplets into reasonable triplets or unreasonable triplets according to the trust function value, and corrects the industrial chain based on the division result, including: Based on the confidence coefficient and DS evidence theory, the identification framework and trust allocation function are designed; including: Design the recognition framework θ, , all propositions in the recognition framework θ are mutually exclusive, This triple is reasonable. Indicates that this triple is unreasonable; and Respectively represent the i-th confidence coefficient for the proposition and proposition , that is, the trust function value, and + =1; Calculate the trust function value and compare and size; when Greater than When the triple is considered reasonable, Less than When the triplet is considered unreasonable, all industrial chain triplets are divided into two categories: reasonable and unreasonable. The unreasonable triplets are deleted to obtain the corrected industrial chain.
8. The method for correcting an industrial chain based on evidence theory according to claim 7 is characterized in that: The calculation method of the trust function value includes: Calculate the conflict coefficient K, the calculation formula is: Where n represents the number of confidence coefficients, i and j represent the numbers of the confidence coefficients respectively; Using DS synthesis rules to synthesize computational propositions The trust function value of , the calculation formula is: Calculation Proposition The trust function value of .
9. An industry chain correction system based on evidence theory, characterized in that: include: The data processing module obtains the triplet of the industrial chain with upstream and downstream relationships based on the existing industrial chain information; A text generation module, which uses an external data set to train a text generation model, and generates a number of generated texts related to industrial chain triples based on the text generation model; wherein the external data set includes triples for representing upstream and downstream products, and texts describing the triples; Text similarity module, builds a text similarity model and uses public datasets to train the text similarity model; A confidence coefficient module retrieves the generated texts one by one from a search engine, wherein the retrieval task of each generated text includes collecting retrieval results, and calculating the similarity between the generated text and the retrieved text through a text similarity model, and taking the highest similarity value as the confidence coefficient of the generated text; The triplet correction module applies evidence theory to construct a trust allocation function, uses the confidence coefficient to calculate the trust function value, divides the product triplets into reasonable triplets or unreasonable triplets according to the trust function value, and corrects the industrial chain based on the division results.
10. A computer device, characterized in that: It comprises a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is loaded and executed by the processor, the industrial chain correction method based on evidence theory as described in any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Industrial chain construction method, equipment and storage medium
CN114595330A
Industrial chain construction and iterative expansion development method
CN115982390A
Enterprise industry chain construction and credit granting method and device, server and storage medium
CN116797383A
Evidence theory-based network quality evaluation method
CN105975984A
Conflict evidence combination method based on weighted correction
CN109871899A
