A method for extracting enterprise information, a method and system for constructing a graph, and a storage medium

Through the combination of large language model and adjustment module screening module, the problem of time-consuming, labor-intensive and low accuracy in the process of enterprise information extraction and map construction is solved, and efficient and accurate enterprise information extraction and map construction are realized to support market layout and potential Market development.

CN117473036BActive Publication Date: 2024-08-23HEFEI GUOKE ZHILIAN DIGITAL TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311552385.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-17
Publication Date
2024-08-23
Estimated Expiration
2043-11-17

AI Technical Summary

Technical Problem

The process of enterprise information extraction and map construction in the existing technology is time-consuming and labor-intensive, and suffers from subjectivity and low accuracy, resulting in low-quality enterprise maps. It is especially difficult to obtain a large amount of accurate enterprise information when in-depth market understanding and potential market development are concerned. .

Method used

Using a large language model combined with an adjustment module and a screening module, through deduplication processing, text preprocessing, keyword extraction, screening and optimization loss function calculation, it can automatically extract corporate information that meets the needs from financial information, and build a corporate map to ensure that the information accuracy and efficiency.

Benefits of technology

It achieves efficient and accurate extraction of enterprise information and rapid construction of maps, saves labor costs, improves the timeliness and flexibility of information, and ensures support for market layout and potential market development.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117473036B
    Figure CN117473036B
Patent Text Reader

Abstract

The present invention belongs to the field of information processing technology, and in particular, relates to a method for extracting enterprise information, a method and system for constructing a graph, and a storage medium. The extraction method includes: capturing financial information and removing duplicates and storing it in a local database, the local database sends the newly added financial information to a text preprocessing module to obtain a financial text; sending the demand to a specific task unit in an adjustment module, the specific task unit generates a specific task based on the demand and the optimization unit in the adjustment module, and the large language model extracts keywords from the financial text based on the specific task to form enterprise information; after the screening module calculates the similarity between the enterprise information and the current specific task, the enterprise information with a similarity above the set value is output to the technician and the optimization unit of the adjustment module to calculate the joint loss function, and the optimization unit optimizes the parameters in the specific task and the large language model based on the joint loss function. The present invention can accurately and efficiently extract enterprise information from financial information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of information processing technology, and in particular relates to an enterprise information extraction method, a graph construction method and system, and a storage medium. Background Art

[0002] With the development of the information age, a large amount of financial information continues to emerge. This information not only includes the development status of various fields, but also the development status of enterprises in various fields, the upstream and downstream relationships between various enterprises, etc. Integrating effective content from financial information to form enterprise information and using this enterprise information to construct an enterprise map can effectively assist market analysis and business layout.

[0003] In the existing technology, financial information is mainly collected manually in large quantities, and based on demand orientation, corporate information that meets the needs is extracted from the financial information through reading and summarization, and then a corporate map is manually constructed based on the summarized corporate information.

[0004] However, the process of obtaining enterprise information and building an enterprise map is very time-consuming and laborious; and because different personnel have different familiarity and standards in different fields, the enterprise information obtained is highly subjective, of varying quality, and of low accuracy, which directly affects the quality of the subsequent enterprise map. Especially when conducting in-depth market understanding and potential market development in specific fields, a large amount of accurate enterprise information is required to build an enterprise map, while also ensuring the richness of the enterprise information. However, the existing manual extraction of a large amount of enterprise information not only takes a very long time, but may also miss some enterprise information containing potential market content, that is, the richness of the enterprise information cannot be guaranteed, further affecting the subsequent market research and judgment conducted by technical personnel based on the enterprise map. Summary of the invention

[0005] The purpose of the present invention is to overcome the deficiencies of the prior art and provide a method for extracting enterprise information, which can accurately and efficiently extract enterprise information that meets the requirements from financial information.

[0006] To achieve the above object, the present invention adopts the following technical solutions:

[0007] S1, after deduplication, the financial information captured from various platforms is stored in the local database, and the local database sends the newly added financial information to the text preprocessing module for preprocessing to obtain the financial text;

[0008] S2, sending demand A to the specific task unit in the adjustment module. The specific task unit generates a specific task based on demand A and the optimization unit in the adjustment module. The large language model sequentially retrieves financial texts from the text preprocessing module based on the specific task, extracts keywords from the financial texts to form structured enterprise information.

[0009] A piece of corporate information consists of several keywords;

[0010] S3, each piece of enterprise information enters the screening module. After the screening module calculates the similarity between each piece of enterprise information and the current specific task, the enterprise information with a similarity above the set value is output to the technical staff as qualified enterprise information; at the same time, the qualified enterprise information is sent to the optimization unit in the adjustment module by the screening module to calculate the joint loss function, and then returns to S2. The optimization unit optimizes various parameters in the specific task and the large language model based on the joint loss function. The large language model after optimizing the parameters extracts keywords from the new financial text based on the optimized specific task to form structured enterprise information.

[0011] Preferably, S1 also includes the following sub-steps:

[0012] S11, when the captured financial information is in a foreign language or contains abbreviations, the foreign financial information or abbreviations are translated into Chinese and then compared with the financial information stored in the local database. If the current captured financial information is repeated with the financial information stored in the local database, the current financial information is discarded; otherwise, the current captured financial information is sent to the local database for storage;

[0013] Financial information includes financial news, corporate annual reports, and corporate business information;

[0014] S12, the local database sends the newly added financial information to the text preprocessing module, and the text preprocessing module performs synonym replacement on each financial information, that is, replaces the words in each financial information with standard words according to the synonym standard word list;

[0015] S13, the text preprocessing module performs regular expression on the financial information after synonym replacement, and the regular expression removes noise content in the financial information by matching the financial information with a regular expression template to form a financial text, and the financial text is numbered in chronological order and stored;

[0016] Noise content includes blank characters, underscores, charts, formulas, image addresses, and web page tags.

[0017] Preferably, S2 also includes the following sub-steps:

[0018] S21, manually select a number of financial texts and annotate the keywords used to form corporate information in these financial texts, use the financial texts with manually annotated keywords as a pre-training data set, and after the large language model is pre-trained based on the training set, the prompt module in the large language model constructs a preliminary prompt text template.

[0019] In the large language model, the prompt module generates a prompt text T1 according to the prompt text template and the financial text. The large language model extracts keywords from each financial text based on the prompt of the prompt text T1 to form structured enterprise information.

[0020] S22, the technician sets requirement A and sends requirement A to the specific task unit in the adjustment module. The specific task unit generates a specific task according to requirement A and the output of the optimization unit in the adjustment module, and adjusts the parameters of the Prompt text template of the prompt module in the large language model through the P-Tuning fine-tuning method based on the current specific task. At the same time, the current specific task is introduced into the prompt module. The prompt module uses the adjusted Prompt text template to generate a prompt text T2 with specific constraints according to the current specific task; the large language model retrieves the financial text from the text preprocessing module in the order of numbers, and extracts keywords from the currently retrieved financial text based on the prompt text T2 to form structured corporate information.

[0021] Preferably, S3 also includes the following sub-steps:

[0022] S31, the large language model binds the enterprise information with the financial text number of the current enterprise information and sends it to the screening module, records any enterprise information as W(i), and records the b keywords contained in the enterprise information W(i) as W(i)={W i1 ,...,W ia ,...,W ib}, where 1≤a≤b, and a and b are positive integers, the screening module retrieves the financial text x of the current enterprise information W(i) in the text preprocessing module according to the financial text number;

[0023] At the same time, the screening module retrieves the current specific task k from the specific task unit, and based on machine learning, uses the pre-trained language model combined with the conditional random field to segment the current specific task k and remove repeated words to obtain n task words, forming the task phrase R(k) of the specific task k: R(k) = {R k1 ,...,R kd ,...,R kn}, where R kd represents the dth task word in the current task word group R(k), 1≤d≤n, and d and n are both positive integers;

[0024] S32, the screening module calculates the word frequency and the inverse document frequency of each keyword in the enterprise information W(i) in the corresponding financial text x, and calculates the weight of each keyword in the current enterprise information W(i) in the current financial text x based on the word frequency and the inverse document frequency; at the same time, the screening module calculates the word frequency and the inverse document frequency of each task word in the current task phrase R(k), and calculates the weight of each task word in the current task phrase R(k) based on the word frequency and the inverse document frequency, and then calculates the similarity between the current task phrase R(k) and the enterprise information W(i) according to the weight of each keyword in the enterprise information W(i) and the weight of each task word in the current task phrase R(k), and outputs the enterprise information with a similarity above the set value as qualified enterprise information to the technicians and the optimization unit;

[0025] S33, the optimization unit calculates the joint loss function L in real time based on the received qualified enterprise information total (θ):

[0026] L total (θ) = L pretrain (θ)+λ·L task (θ)

[0027] Among them, L pretrain (θ) is the large language model loss function calculated last time using qualified enterprise information, L task (θ) is the loss function of the large language model based on a specific task calculated using the current qualified enterprise information, λ is a specific loss hyperparameter, which is set manually, and θ represents the parameter set in the large language model.

[0028] Towards the joint loss function L total (θ) The gradient of the specific task unit is decreased to optimize the specific task and various parameters in the large language model. The parameters in the large language model include the parameters of the Prompt text template of the prompt module, etc., that is, returning to S22, the specific task and the large language model with optimized parameters are used to extract keywords from the new financial text to form corporate information that better meets the requirement A.

[0029] Preferably, S32 also includes the following sub-steps:

[0030] S321, the screening module is based on machine learning, and uses a pre-trained language model combined with a conditional random field to segment each financial text in the text preprocessing module, and obtains a vocabulary set for each financial text. The vocabulary set corresponding to the financial text x is recorded as P(x)={P x1 ,...,P xc ,...,P xd}, 1≤c≤d, and c and d are positive integers, P xcrepresents the cth word in the vocabulary set P(x),

[0031] The filtering module retains only once the words that appear repeatedly in the word set P(x), forming the corresponding word set F(x) = {F x1 ,...,F xc ,...,F xm}, F xc represents the cth candidate keyword in the word set F(x), 1≤c≤m≤f, and c, m, f are positive integers.

[0032] Calculate the frequency of each keyword in the enterprise information W(i) in the corresponding financial text x:

[0033] TF(W ia )=E ia / d,

[0034] Among them, TF(W ia ) represents the keyword W in the enterprise information W(i) ia The frequency of words appearing in the financial text x, E ia Indicates keyword W ia The number of times it appears in the corresponding vocabulary set P(x), d represents the total number of words contained in the vocabulary set P(x),

[0035] The screening module records the total number of all vocabulary sets g in the current text preprocessing module, and respectively records the number of vocabulary sets that contain each keyword in the current enterprise information W(i) in these g vocabulary sets, including the keyword W ia The number of word sets is recorded as H ia , calculate the current keyword W ia The inverse document frequency IDF(W ia ):

[0036] IDF(W ia )=[log2(g)-log2(H ia )],

[0037] Calculate the weight of each keyword in the current enterprise information W(i) in the current financial text x:

[0038] TF-IDF(W ia )=TF(W ia )×IDF(W ia )=(E ia / d)×[log2(g)-log2(H ia )],

[0039] Among them, TF-IDF(W ia ) represents the keyword W in the current enterprise information W(i)ia The weight in the financial text x,

[0040] Vectorize the current enterprise information W(i): V[W(i)] = {V wi1 ,...,V wia ,...,V wib},

[0041] Among them, V[W(i)] is the vectorized representation of the current enterprise information W(i). The number of dimensions in V[W(i)] is the same as the number of patent keywords in the current enterprise information W(i), and each dimension in V[W(i)] corresponds one-to-one to the keywords in the current enterprise information W(i). wia represents the value of the ath dimension in V[W(i)], V wia The value of the keyword W ia The weighted TF-IDF(Wia) in the corresponding financial text x;

[0042] At the same time, the screening module records the total number of vocabulary sets g in the current text preprocessing module, and respectively records the number of vocabulary sets that contain each task word in the current task phrase R(k) in these g vocabulary sets, as well as the number of times each task word in the current task phrase R(k) appears in each vocabulary set in the current text preprocessing module, and calculates the word frequency of each task word in the current task phrase R(k):

[0043]

[0044] Where P(y) represents the vocabulary set corresponding to the financial text y, and the vocabulary set P(y) is one of the g vocabulary sets contained in the current text preprocessing module. kd |P(y)] represents the task word R kd The frequency of words in the vocabulary set P(y), E[R kd |P(y)] represents the task word R kd The number of times it appears in the vocabulary set P(y), f[P(y)] represents the total number of words contained in the vocabulary set P(y),

[0045] Calculate the inverse document frequency of each task word in the current task word group R(k):

[0046] IDF(R kd )={log2(g)-log2[H(R kd )]},

[0047] Among them, IDF(R kd ) represents the task word R kd The inverse document frequency of the g vocabulary sets contained in the current text preprocessing module, H(Rkd ) indicates that the g vocabulary sets in the current text preprocessing module contain the task word R kd The number of vocabulary sets,

[0048] Calculate the weight of each task word in the current task phrase R(k) in the g vocabulary sets contained in the current text preprocessing module:

[0049]

[0050] Among them, TF-IDF[R kd |P(y)] represents the task word R in the current task phrase R(k) kd The weights in the vocabulary set P(y) contained in the current text preprocessing module,

[0051] Vectorize the current task phrase R(k):

[0052] V[R(k)|P(y)]={V[R k1 |P(y)],...,V[R kd |P(y)],...,V[R kn |P(y)]},

[0053] Among them, V[R(k)|P(y)] is the vectorized representation of the current task phrase R(k) based on the vocabulary set P(y). The number of dimensions in V[R(k)|P(y)] is the same as the number of task words in the current task phrase R(k), both of which are n dimensions. Moreover, each dimension in V[R(k)|P(y)] corresponds one-to-one to the task words in the current task phrase R(k). kd |P(y)] represents the value of the dth dimension in V[R(k)|P(y)], V[R kd The value of |P(y)] is the task word R kd The weighted TF-IDF[R kd |P(y)];

[0054] S322, the screening module calculates the similarity between the current task phrase R(k) and the current enterprise information W(i):

[0055]

[0056] Among them, Simi[R(k),W(i)] represents the similarity between the current task phrase R(k) and the current enterprise information W(i), G represents all the vocabulary sets contained in the current text preprocessing module,

[0057] If Simi[R(k),W(i)] is above the set value, the current enterprise information W(i) is qualified enterprise information, and the screening module outputs the qualified enterprise information to the technicians and the optimization unit.

[0058] Preferably, each piece of enterprise information is composed of several keywords, including entity name, relationship between entities, and duration of relationship between entities. Entities include enterprises, products, technologies, and fields. Relationships between entities include the field in which the enterprise is located, the products produced by the enterprise, the technologies produced by the enterprise, the suppliers of the enterprise, the fields potentially involved by the enterprise, and the potential suppliers of the enterprise.

[0059] The present invention also provides a method for constructing an enterprise graph, which is applied after the enterprise information extraction method as described above, and further includes S4:

[0060] S4, merging the same entities in the outputted qualified enterprise information to form an enterprise map, and continuously using the newly generated qualified enterprise information to update the enterprise map.

[0061] Preferably, S4 specifically includes the following contents:

[0062] Merge the same entities in each qualified enterprise information to form an enterprise map;

[0063] If the entities included in the newly generated qualified enterprise information already exist in the current enterprise map, but the relationship between the entities is different from the corresponding relationship between the entities already existing in the current enterprise map, then the relationship between the entities in the current qualified enterprise information and / or the duration of the relationship between the entities are added to the corresponding entities in the current enterprise map;

[0064] If the entities contained in the newly generated qualified enterprise information already exist in the current enterprise graph, and the relationships between the entities are the same as the corresponding relationships between the entities already existing in the current enterprise graph, then determine whether the duration of the entity relationships contained in the current qualified enterprise information is the same as that in the current enterprise graph. If the corresponding entity relationships in the current enterprise graph have no duration or the end time of the duration is earlier than the end time of the duration in the current qualified enterprise information, then replace the duration of the corresponding entity relationships in the current enterprise graph with the duration in the current qualified enterprise information to update the current enterprise graph; if the end time of the corresponding entity relationship duration in the current enterprise graph is later than the end time of the duration in the current qualified enterprise information, or there is no entity relationship duration in the current qualified enterprise information, then discard the current qualified enterprise information.

[0065] The present invention also provides an enterprise graph construction system, comprising:

[0066] Capture module, local database, text preprocessing module, adjustment module, large language model, screening module, graph construction module,

[0067] The capture module is used to capture financial information from various platforms and remove the financial information that is repeated in the local database, and then send it to the local database for storage; the local database is used to store the financial information sent by the capture module, and send the newly added financial information to the text preprocessing module; the text preprocessing module processes the financial information into financial text; the adjustment module includes a specific task unit and an optimization unit, the demand enters the specific task unit, the specific task unit forms or modifies the specific task based on the joint loss function calculated by the demand and the optimization unit, the specific task unit sends the specific task to the prompt module in the large language model, the optimization unit uses the qualified enterprise information output by the screening module to calculate the joint loss function, and optimizes the parameters in the specific task and the large language model based on the joint loss function; the prompt module in the large language model extracts keywords from the financial text retrieved from the text preprocessing module based on the specific tasks in the specific task unit to form structured enterprise information, and sends it to the screening module; the screening module screens out qualified enterprise information and outputs it to the technical personnel, and at the same time sends the qualified enterprise information to the optimization unit and the map construction module; the map construction module constructs an enterprise map based on the qualified enterprise information;

[0068] Each module or unit is programmed or configured to execute the steps of a method for constructing an enterprise map as described above.

[0069] The present invention also provides a computer-readable storage medium storing a computer program programmed or configured to execute a method for constructing an enterprise map as described above.

[0070] The beneficial effects of the present invention are:

[0071] (1) The enterprise information extraction method of the present invention is based on a large language model and creatively sets up an adjustment module and a screening module before and after the large language model to extract enterprise information from financial information efficiently and accurately. The adjustment module not only directly receives the requirements proposed by the technicians, but also calculates the joint loss function of the output results of the screening module, and adjusts the content of the specific task and the parameters of the large language model based on the joint loss function and the requirements. The specific task helps the large language model to better understand the requirements, and extracts keywords that are more in line with the requirements from the financial text to form enterprise information. The screening module calculates the similarity between the enterprise information generated by the keywords extracted by the large language model and the current specific task based on the word frequency and the inverse document frequency, and further screens out qualified enterprise information that meets the specific task through the similarity. At the same time, because the similarity setting value of the qualified enterprise information is defined by the technicians according to the requirements, the qualified enterprise information output to the technicians is highly flexible. When the technicians need to build a concise and accurate enterprise map in a short time, a small amount of enterprise information that highly meets the requirements is required, and the similarity setting value of the qualified enterprise information can be increased. When the technicians want to have an in-depth understanding of an industry / field and develop potential markets, they need to build a detailed and relatively accurate enterprise map, and a large amount of enterprise information that is more in line with the requirements is required. The similarity setting value of the qualified enterprise information can be reduced, and the enterprise information is output exhaustively, that is, the screening module enables the present invention to better meet the needs of the technicians.

[0072] (2) While extracting keywords to form corporate information, the present invention sends the qualified corporate information output to the technician as a verification set to the optimization unit in the adjustment module to calculate the joint loss function. That is, while generating qualified corporate information, the present invention optimizes the content of the specific task and the parameters of the large language model, so that the subsequently generated corporate information is generated under the optimized specific task and large language model, which is more in line with current needs. The present invention does not need to set up an additional verification set. In the process of extracting keywords to generate corporate information, the large language model parameters and specific tasks are continuously optimized, and corporate information that highly meets the needs can be output in a short time, which is accurate and efficient. The corporate information extraction process of the present invention can be adjusted automatically to adapt to the extraction of corporate information of different fields and types.

[0073] (3) The joint loss function is the basis for adjusting the parameters of the specific task and the large language model. The optimization unit of the present invention uses the qualified enterprise information as the verification set to calculate the loss function L task (θ), loss function L task (θ) is multiplied by a specific loss hyperparameter λ before it becomes part of the joint loss function, which also includes the large language model loss function L calculated last time using qualified enterprise information pretrain(θ), that is, the joint loss function is not calculated by the current qualified enterprise information based on the large language model of the specific task. task (θ) is the final word, which can avoid excessive adjustment of specific tasks and large language model parameters each time, resulting in overfitting or underfitting, which will lead to the omission of extracted keywords or the reduction of the accuracy of corporate information formed by extracted keywords.

[0074] (4) Compared with the prior art of manually extracting enterprise information from various financial information according to needs, the present invention automatically extracts enterprise information that meets the needs from financial information, saving a lot of labor costs. The extraction speed is also much higher than manual labor, and it avoids the quality of the extraction results being affected by personal subjectivity during the process of extracting enterprise information. The extraction and classification results of the present invention are highly accurate and relatively stable. The present invention can exhaustively extract enterprise information from the financial information of major platforms, based on needs, without missing any enterprise information, avoiding the possibility of omissions when manually extracting enterprise information, and because the present invention can timely extract enterprise information that meets the needs of the latest financial information, the present invention has extremely high timeliness, providing a strong guarantee for the subsequent market layout and potential market exploration of enterprises.

[0075] (5) Technical personnel can change their requirements at any time, and the specific tasks in the present invention will also change according to the changes in requirements. The screening module will also output qualified enterprise information that meets the information requirements in a very short time. That is, the present invention can adjust the requirements at any time and has a high degree of flexibility.

[0076] (6) The enterprise map constructed by the present invention has the advantages of accuracy, efficiency, low cost, high quality and high degree of satisfaction of needs compared with manual construction because the structured enterprise information obtained is accurate and efficient. In addition, the enterprise map constructed by the present invention is highly structured, easy to view, and has the function of real-time updating, that is, it has extremely high timeliness, which provides a solid foundation for the market development of various enterprises or the industrial layout analysis of competing companies. BRIEF DESCRIPTION OF THE DRAWINGS

[0077] Figure 1 A flowchart of a method for extracting enterprise information according to the present invention;

[0078] Figure 2 A flowchart of a method for constructing an enterprise graph according to the present invention;

[0079] Figure 3 A schematic diagram of the structure and data flow of an enterprise graph construction system of the present invention;

[0080] Figure 4A time-consuming comparison curve diagram between a method for extracting enterprise information of the present invention and manual extraction;

[0081] Figure 5 The figure is a curve chart comparing the accuracy between the enterprise information extraction method of the present invention and manual extraction. DETAILED DESCRIPTION

[0082] In order to make the technical solution of the present invention clearer and more specific, the present invention is clearly and completely described below in conjunction with the accompanying drawings. Any equivalent replacement of the technical features of the technical solution of the present invention and any solution derived by conventional reasoning by ordinary technicians in the field without making any creative work shall fall within the protection scope of the present invention.

[0083] Example 1

[0084] like Figure 1 A method for extracting enterprise information shown includes the following steps:

[0085] S1, after deduplication, the financial information captured from various platforms is stored in the local database, and the local database sends the newly added financial information to the text preprocessing module for preprocessing to obtain the financial text;

[0086] S2, sending demand A to the specific task unit in the adjustment module. The specific task unit generates a specific task based on demand A and the optimization unit in the adjustment module. The large language model sequentially retrieves financial texts from the text preprocessing module based on the specific task, extracts keywords from the financial texts to form structured corporate information. One piece of corporate information consists of several keywords.

[0087] S3, each piece of enterprise information enters the screening module. After the screening module calculates the similarity between each piece of enterprise information and the current specific task, the enterprise information with a similarity above the set value is output to the technical staff as qualified enterprise information; at the same time, the qualified enterprise information is sent to the optimization unit in the adjustment module by the screening module to calculate the joint loss function, and then returns to S2. The optimization unit optimizes various parameters in the specific task and the large language model based on the joint loss function. The large language model after optimizing the parameters extracts keywords from the new financial text based on the optimized specific task to form structured enterprise information.

[0088] Optionally, in S2, when demand A changes, the large language model sequentially retrieves the financial text in the text preprocessing module again based on the new specific task, and extracts keywords from the financial text to form structured corporate information.

[0089] S1 also includes the following sub-steps:

[0090] S11, when the captured financial information is in a foreign language or contains abbreviations, the foreign financial information or abbreviations are translated into Chinese and then compared with the financial information stored in the local database. If the current captured financial information is repeated with the financial information stored in the local database, the current financial information is discarded; otherwise, the current captured financial information is sent to the local database for storage;

[0091] Only Chinese financial information is stored in the local database;

[0092] Financial information includes financial news, corporate annual reports, corporate business information, etc.;

[0093] S12, the local database sends the newly added financial information to the text preprocessing module, and the text preprocessing module performs synonym replacement on each financial information, that is, replaces the words in each financial information with standard words according to the synonym standard word list;

[0094] In this embodiment, the synonym standard word list is set by the technician according to the Xinhua Dictionary and / or the industry standard of the target enterprise, and the words in each financial information are replaced with a unified standard word, which can improve the accuracy of subsequent keyword extraction;

[0095] S13, the text preprocessing module performs regular expression on the financial information after synonym replacement, and the regular expression removes noise content in the financial information by matching the financial information with a regular expression template to form a financial text, and the financial text is numbered in chronological order and stored;

[0096] Noise content includes blank characters, underlines, charts, formulas, image addresses, web page tags, etc.

[0097] Using regular expressions to remove noise content is an existing technology and will not be described in detail here.

[0098] S2 also includes the following sub-steps:

[0099] S21, manually select a number of financial texts and annotate the keywords used to form corporate information in these financial texts, use the financial texts with manually annotated keywords as a pre-training data set, and after the large language model is pre-trained based on the training set, the prompt module in the large language model constructs a preliminary prompt text template.

[0100] In the large language model, the prompt module generates a prompt text T1 according to the prompt text template and the financial text. The large language model extracts keywords from each financial text based on the prompt of the prompt text T1 to form structured enterprise information.

[0101] In the present invention, a financial text can obtain several pieces of enterprise information, each piece of enterprise information is structured information composed of several keywords, and the keywords constituting the structured enterprise information include entity names, relationships between entities, duration of relationships between entities, etc. The entities in the present invention include enterprises, products, technologies, fields, etc., and relationships between entities include the fields where the enterprises are located, the products produced by the enterprises, the technologies produced by the enterprises, the suppliers of the enterprises, the fields potentially involved by the enterprises, the potential suppliers of the enterprises, etc.

[0102] A structured enterprise information, such as "Company C - Manufacturing - Automobile - Since 1983", "Company C - Main Business - New Energy Vehicle Field", "Company D - Supply - Tire - Company C - Since 2020", etc.;

[0103] S22, the technician sets requirement A, and sends requirement A to the specific task unit in the adjustment module. The specific task unit generates a specific task according to requirement A and the output of the optimization unit in the adjustment module, and adjusts the parameters of the Prompt text template of the prompt module in the large language model through the P-Tuning fine-tuning method based on the current specific task, and introduces the current specific task into the prompt module. The prompt module uses the adjusted Prompt text template to generate a prompt text T2 with specific constraints according to the current specific task; the large language model retrieves the financial text from the text preprocessing module in the order of numbers, and extracts keywords from the currently retrieved financial text based on the prompt text T2 to form structured enterprise information;

[0104] A financial text may not contain any corporate information, or it may contain one or more corporate information;

[0105] When the demand is generated for the first time, that is, when the specific task unit in the adjustment module generates the specific task for the first time, since the optimization unit in the adjustment module has no output, the specific task generated by the specific task unit for the first time is only based on demand A; in subsequent specific task units, based on demand A, the content of the specific task is continuously adjusted according to the output of the optimization unit. The specific task is mainly a number of characters or strings contained in demand A.

[0106] Demand A is artificially set, such as "the upstream and downstream relationships between enterprises in the field of artificial intelligence", "the upstream and downstream relationships between the brands under the business group to which brand B belongs and the brands", "the potential market of company C", and other structured enterprise information that technicians hope to obtain; for example, when demand A is "the upstream and downstream relationships between enterprises in the field of artificial intelligence", the specific task unit may generate a specific task for the first time as "enterprises related to artificial intelligence", and the subsequent specific task unit may adjust the specific task to "(artificial intelligence enterprises or products / technologies produced by artificial intelligence enterprises or supply and marketing relationships between artificial intelligence enterprises) and (the establishment time of the enterprise is more than 1 year)" according to the output of the optimization unit.

[0107] In the present invention, the prompt text T2 with specific constraints will guide the large language model to focus on the specific constraints, and extract keywords from each financial text according to the specific constraints to form structured enterprise information that meets requirement A.

[0108] In S22, the prompt module uses the adjusted Prompt text template to generate a prompt text T2 with specific constraints according to the current specific task, converts the prompt text T2 into a text format that the large language model can understand, and then encodes it. The encoded prompt text T2 is then embedded in the financial text currently retrieved from the text preprocessing module in a splicing manner. The large language model extracts keywords in the current financial text based on the prompt text T2 to form structured corporate information.

[0109] The following sub-steps are also included in S3:

[0110] S31, the large language model binds the enterprise information with the financial text number of the current enterprise information and sends it to the screening module, records any enterprise information as W(i), and records the b keywords contained in the enterprise information W(i) as W(i)={W i1 ,...,W ia ,...,W ib}, where 1≤a≤b, and a and b are positive integers, the screening module retrieves the financial text x of the current enterprise information W(i) in the text preprocessing module according to the financial text number;

[0111] At the same time, the screening module retrieves the current specific task k from the specific task unit, and based on machine learning, uses the pre-trained language model combined with the conditional random field to segment the current specific task k and remove repeated words to obtain n task words, forming the task phrase R(k) of the specific task k: R(k) = {R k1 ,...,R kd ,...,R kn}, where R kdrepresents the dth task word in the current task word group R(k), 1≤d≤n, and d and n are both positive integers;

[0112] The use of pre-trained language models in combination with conditional random fields is an existing technology and will not be described in detail here;

[0113] S32, the screening module calculates the word frequency and the inverse document frequency of each keyword in the enterprise information W(i) in the corresponding financial text x, and calculates the weight of each keyword in the current enterprise information W(i) in the current financial text x based on the word frequency and the inverse document frequency; at the same time, the screening module calculates the word frequency and the inverse document frequency of each task word in the current task phrase R(k), and calculates the weight of each task word in the current task phrase R(k) based on the word frequency and the inverse document frequency, and then calculates the similarity between the current task phrase R(k) and the enterprise information W(i) according to the weight of each keyword in the enterprise information W(i) and the weight of each task word in the current task phrase R(k), and outputs the enterprise information with a similarity above the set value as qualified enterprise information to the technicians and the optimization unit;

[0114] S33, the optimization unit calculates the joint loss function L in real time based on the received qualified enterprise information total (θ):

[0115] L total (θ) = L pretrain (θ)+λ·L task (θ)

[0116] Among them, L pretrain (θ) is the large language model loss function calculated last time using qualified enterprise information, L task (θ) is the loss function of the large language model based on a specific task calculated using the current qualified enterprise information, λ is a specific loss hyperparameter, which is set manually, and θ represents the parameter set in the large language model.

[0117] Towards the joint loss function L total (θ) The gradient of the specific task unit is decreased to optimize the specific task and various parameters in the large language model. The parameters in the large language model include the parameters of the Prompt text template of the prompt module, etc., that is, returning to S22, the specific task and the large language model with optimized parameters are used to extract keywords from the new financial text to form corporate information that better meets the requirement A.

[0118] S32 also includes the following sub-steps:

[0119] S321, the screening module is based on machine learning, and uses a pre-trained language model combined with a conditional random field to segment each financial text in the text preprocessing module, and obtains a vocabulary set for each financial text. The vocabulary set corresponding to the financial text x is recorded as P(x)={P x1 ,...,P xc ,...,P xd}, 1≤c≤d, and c and d are positive integers, P xc represents the cth word in the vocabulary set P(x),

[0120] The filtering module retains only once the words that appear repeatedly in the word set P(x), forming the corresponding word set F(x) = {F x1 ,...,F xc ,...,F xm}, F xc represents the cth candidate keyword in the word set F(x), 1≤c≤m≤f, and c, m, f are positive integers.

[0121] Calculate the frequency of each keyword in the enterprise information W(i) in the corresponding financial text x:

[0122] TF(W ia )=E ia / d,

[0123] Among them, TF(W ia ) represents the keyword W in the enterprise information W(i) ia The frequency of words appearing in the financial text x, E ia Indicates keyword W ia The number of times it appears in the corresponding vocabulary set P(x), d represents the total number of words contained in the vocabulary set P(x),

[0124] The screening module records the total number of all vocabulary sets g in the current text preprocessing module, and respectively records the number of vocabulary sets that contain each keyword in the current enterprise information W(i) in these g vocabulary sets, including the keyword W ia The number of word sets is recorded as H ia , calculate the current keyword W ia The inverse document frequency IDF(W ia ):

[0125] IDF(W ia )=[log2(g)-log2(H ia )],

[0126] g vocabulary sets correspond to g financial texts, so H ia It also means that the keyword W appears in this financial text. ia Financial texts,

[0127] Calculate the weight of each keyword in the current enterprise information W(i) in the current financial text x:

[0128] TF-IDF(W ia )=TF(W ia )×IDF(W ia )=(E ia / d)×[log2(g)-log2(H ia )],

[0129] Among them, TF-IDF(W ia ) represents the keyword W in the current enterprise information W(i) ia The weight in the financial text x,

[0130] Vectorize the current enterprise information W(i): V[W(i)] = {V wi1 ,...,V wia ,...,V wib},

[0131] Among them, V[W(i)] is the vectorized representation of the current enterprise information W(i). The number of dimensions in V[W(i)] is the same as the number of patent keywords in the current enterprise information W(i), and each dimension in V[W(i)] corresponds one-to-one to the keywords in the current enterprise information W(i). wia represents the value of the ath dimension in V[W(i)], V wia The value of the keyword W ia The weighted TF-IDF (W ia );

[0132] At the same time, the screening module records the total number of vocabulary sets g in the current text preprocessing module, and respectively records the number of vocabulary sets that contain each task word in the current task phrase R(k) in these g vocabulary sets, as well as the number of times each task word in the current task phrase R(k) appears in each vocabulary set in the current text preprocessing module, and calculates the word frequency of each task word in the current task phrase R(k):

[0133]

[0134] Where P(y) represents the vocabulary set corresponding to the financial text y, and the vocabulary set P(y) is one of the g vocabulary sets contained in the current text preprocessing module. kd |P(y)] represents the task word R kd The frequency of words in the vocabulary set P(y), E[R kd |P(y)] represents the task word Rkd The number of times it appears in the vocabulary set P(y), f[P(y)] represents the total number of words contained in the vocabulary set P(y),

[0135] That is, it is necessary to calculate the word frequencies of the n task words in the current task phrase R(k) corresponding to the g vocabulary sets contained in the current text preprocessing module, a total of (n×g) word frequencies;

[0136] Calculate the inverse document frequency of each task word in the current task word group R(k):

[0137] IDF(R kd )={log2(g)-log2[H(R kd )]},

[0138] Among them, IDF(R kd ) represents the task word R kd The inverse document frequency of the g vocabulary sets contained in the current text preprocessing module, H(R kd ) indicates that the g vocabulary sets in the current text preprocessing module contain the task word R kd The number of vocabulary sets,

[0139] Calculate the weight of each task word in the current task phrase R(k) in the g vocabulary sets contained in the current text preprocessing module:

[0140]

[0141] Among them, TF-IDF[R kd |P(y)] represents the task word R in the current task phrase R(k) kd The weights in the vocabulary set P(y) contained in the current text preprocessing module,

[0142] That is, a total of (n×g) weights need to be calculated;

[0143] Vectorize the current task phrase R(k):

[0144] V[R(k)|P(y)]={V[R k1 |P(y)],...,V[R kd |P(y)],...,V[R kn |P(y)]},

[0145] Among them, V[R(k)|P(y)] is the vectorized representation of the current task phrase R(k) based on the vocabulary set P(y). The number of dimensions in V[R(k)|P(y)] is the same as the number of task words in the current task phrase R(k), both of which are n dimensions. Moreover, each dimension in V[R(k)|P(y)] corresponds one-to-one to the task words in the current task phrase R(k). kd |P(y)] represents the value of the dth dimension in V[R(k)|P(y)], V[R kd The value of |P(y)] is the task word R kd The weighted TF-IDF[R kd |P(y)];

[0146] S322, the screening module calculates the similarity between the current task phrase R(k) and the current enterprise information W(i):

[0147]

[0148] Among them, Simi[R(k),W(i)] represents the similarity between the current task phrase R(k) and the current enterprise information W(i), G represents all the vocabulary sets contained in the current text preprocessing module, and when V[R(k)|P(y)] and V[W(i)] contain different dimensions, the vector with fewer dimensions will fill the missing dimensions with 0.

[0149] If Simi[R(k),W(i)] is above the set value, the current enterprise information W(i) is qualified enterprise information, and the screening module outputs the qualified enterprise information to the technicians and the optimization unit;

[0150] In this embodiment, the setting value of Simi[R(k),W(i)] for determining that the current enterprise information W(i) is qualified enterprise information is 0.92.

[0151] To facilitate understanding, the following is an example:

[0152] The technicians set the requirement as "upstream and downstream relationships among enterprises in the new energy vehicle field."

[0153] The content of the first financial information is "Z1 Company has been deeply involved in the field of new energy vehicles for more than 20 years and has now become a leading manufacturer of new energy vehicles."

[0154] The content of the second financial information is "Z2 Company signed a tire supply agreement with Z1 Company in 2022, and will supply tires for Z1 Company's new energy vehicles."

[0155] The content of the third piece of financial information is "Z3 Company has long been supplying natural rubber to Z2 Company for the production of high-end tires."

[0156] The content of the fourth piece of financial information is "Z4 Company signed a long-term ternary lithium battery supply agreement with Z1 Company in February 2023."

[0157] The content of the fifth piece of financial information is "Z5 Company brought its latest lithium battery to participate in Z1 Company's investment promotion conference. It is reported that Z5 Company's latest lithium battery charges faster and has a longer battery life than the common lithium batteries on the market."

[0158] Using a corporate information extraction method of the present invention, the structured corporate information extracted from five pieces of financial information are respectively "Z1 Company-Manufacturing-New Energy Vehicles", "Z2 Company-Supply-Tires-Z1 Company-In 2022", "Z3 Company-Supply-Natural Rubber-Z2 Company", "Z4 Company-Supply-Ternary Lithium Batteries-Z1 Company-In February 2023", and "Z5 Company-Potential Supply-Ternary Lithium Batteries-Z1 Company".

[0159] The enterprise information extraction method of the present invention is based on a large language model and creatively sets up an adjustment module and a screening module before and after the large language model to extract enterprise information from financial information efficiently and accurately. The adjustment module not only directly receives the requirements proposed by the technicians, but also calculates the joint loss function of the output results of the screening module, and adjusts the content of the specific task and the parameters of the large language model based on the joint loss function and the requirements. The specific task helps the large language model to better understand the requirements, and extracts keywords that are more in line with the requirements from the financial text to form enterprise information. The screening module calculates the similarity between the enterprise information generated by the keywords extracted by the large language model and the current specific task based on the word frequency and the inverse document frequency, and further screens out qualified enterprise information that meets the specific task through the similarity. At the same time, because the similarity setting value of the qualified enterprise information is defined by the technicians according to the requirements, the qualified enterprise information output to the technicians is highly flexible. When the technicians need to build a concise and accurate enterprise map in a short time, a small amount of enterprise information that highly meets the requirements is required, and the similarity setting value of the qualified enterprise information can be increased. When the technicians want to have an in-depth understanding of an industry / field and develop potential markets, they need to build a detailed and relatively accurate enterprise map, and a large amount of enterprise information that is more in line with the requirements is required. The similarity setting value of the qualified enterprise information can be reduced, and the enterprise information is output exhaustively, that is, the screening module enables the present invention to meet the needs of technicians more flexibly.

[0160] While extracting keywords to form corporate information, the present invention sends the qualified corporate information output to the technician as a verification set to the optimization unit in the adjustment module to calculate the joint loss function, that is, while generating qualified corporate information, the present invention optimizes the content of the specific task and the parameters of the large language model, so that the subsequently generated corporate information is generated under the optimized specific task and the large language model, which is more in line with current needs. The present invention does not need to set up an additional verification set. In the process of extracting keywords to generate corporate information, the large language model parameters and specific tasks are continuously optimized, and corporate information that highly meets the needs can be output in a short time, which is accurate and efficient. The corporate information extraction process of the present invention can be adjusted automatically to adapt to the extraction of corporate information of different types and in different fields.

[0161] The joint loss function is the basis for adjusting the parameters of the specific task and the large language model. The optimization unit of the present invention uses the qualified enterprise information as the verification set to calculate the loss function L task (θ), loss function L task (θ) is multiplied by a specific loss hyperparameter λ before it becomes part of the joint loss function, which also includes the large language model loss function L calculated last time using qualified enterprise information pretrain (θ), that is, the joint loss function is not calculated by the current qualified enterprise information based on the large language model of the specific task. task (θ) is the final word, which can avoid excessive adjustment of specific tasks and large language model parameters each time, resulting in overfitting or underfitting, which will lead to the omission of extracted keywords or the reduction of the accuracy of corporate information formed by extracted keywords.

[0162] Compared with the prior art that manually extracts corporate information from various financial information according to needs, the present invention automatically extracts corporate information that meets the needs from financial information, saving a lot of labor costs. The extraction speed is also much higher than manual labor, and it avoids the quality of the extraction results being affected by personal subjectivity during the process of extracting corporate information. The extraction and classification results of the present invention are highly accurate and relatively stable. The present invention can perform exhaustive corporate information extraction on the financial information of major platforms, based on demand, without missing any corporate information, avoiding the possibility of omissions when manually extracting corporate information, and because the present invention can timely extract corporate information that meets the needs of the latest financial information, the present invention has extremely high timeliness, providing a strong guarantee for the company's subsequent market layout and tapping into potential markets.

[0163] Technicians can change their requirements at any time, and the specific tasks in the present invention will also change according to the changes in requirements. The screening module will also output qualified enterprise information that meets the information requirements in a very short time, that is, the present invention can adjust the requirements at any time and has a high degree of flexibility.

[0164] Randomly grab 5000 financial information, respectively use the enterprise information extraction method of the present invention and the manual extraction method to extract enterprise information based on the same requirements, and take the high-quality, multi-reviewed manual inspection results as the standard to obtain the following Figure 4 The time consumption comparison curve and accuracy comparison curve shown in the figure can intuitively show that the time consumption of the enterprise information extraction method of the present invention to extract enterprise information from the same 5000 financial information is significantly lower than that of manual extraction, and as the amount of financial information increases, the time consumed by manual extraction becomes longer and longer; Figure 5 It can be seen from the accuracy comparison curve that the accuracy of the enterprise information extraction method of the present invention in extracting enterprise information from the same 5,000 financial information pieces increases with the increase in the amount of financial information, and gradually exceeds the accuracy of manual extraction, while the accuracy of manual extraction is higher than that of the extraction method of the present invention only when the financial information is less, but as the amount of financial information increases, the accuracy of manual extraction is greatly reduced, that is, the enterprise information extraction method of the present invention can extract highly accurate enterprise information from a large amount of financial information.

[0165] Example 2

[0166] like Figure 2 The enterprise graph construction method shown in the embodiment is applied after the enterprise information extraction method described in the embodiment 1, and further includes S4:

[0167] S4, merging the same entities in the outputted qualified enterprise information to form an enterprise map, and continuously using the newly generated qualified enterprise information to update the enterprise map.

[0168] The following are also included in S4:

[0169] Merge the same entities in each qualified enterprise information to form an enterprise map;

[0170] If the entities included in the newly generated qualified enterprise information already exist in the current enterprise map, but the relationship between the entities is different from the corresponding relationship between the entities already existing in the current enterprise map, then the relationship between the entities in the current qualified enterprise information and / or the duration of the relationship between the entities are added to the corresponding entities in the current enterprise map;

[0171] If the entities contained in the newly generated qualified enterprise information already exist in the current enterprise graph, and the relationships between the entities are the same as the corresponding relationships between the entities already existing in the current enterprise graph, then determine whether the duration of the entity relationships contained in the current qualified enterprise information is the same as that in the current enterprise graph. If the corresponding entity relationships in the current enterprise graph have no duration or the end time of the duration is earlier than the end time of the duration in the current qualified enterprise information, then replace the duration of the corresponding entity relationships in the current enterprise graph with the duration in the current qualified enterprise information to update the current enterprise graph; if the end time of the corresponding entity relationship duration in the current enterprise graph is later than the end time of the duration in the current qualified enterprise information, or there is no entity relationship duration in the current qualified enterprise information, then discard the current qualified enterprise information.

[0172] The enterprise map constructed by the present invention has the advantages of accuracy, efficiency, low cost, high quality, and high degree of satisfaction to needs compared with manual construction because the structured enterprise information obtained is accurate and efficient. In addition, the enterprise map constructed by the present invention is highly structured, easy to view, and has the function of real-time updating, that is, it has extremely high timeliness, which provides a solid foundation for the market development of various enterprises or the industrial layout analysis of competing companies.

[0173] Example 3

[0174] The present invention also provides a system for constructing an enterprise graph. Figure 3 As shown, including:

[0175] Capture module, local database, text preprocessing module, adjustment module, large language model, screening module, graph construction module,

[0176] The capture module is used to capture financial information from various platforms and remove the duplicate financial information in the local database before sending it to the local database for storage;

[0177] The local database is used to store the financial information sent by the crawling module and send the newly added financial information to the text preprocessing module;

[0178] The text preprocessing module processes the financial information into financial text;

[0179] The adjustment module includes a specific task unit and an optimization unit. The demand enters the specific task unit. The specific task unit forms or modifies the specific task based on the joint loss function calculated by the demand and the optimization unit. The specific task unit sends the specific task to the prompt module in the large language model.

[0180] The optimization unit calculates a joint loss function using the qualified enterprise information output by the screening module, and optimizes the parameters in the specific task and the large language model based on the joint loss function;

[0181] The prompt module in the large language model extracts keywords from the financial text retrieved from the text preprocessing module based on the specific tasks in the specific task unit to form structured corporate information and send it to the screening module;

[0182] The screening module selects qualified enterprise information and outputs it to the technical staff, and at the same time sends the qualified enterprise information to the optimization unit and the map construction module;

[0183] The graph construction module constructs an enterprise graph based on qualified enterprise information;

[0184] Each module or unit is programmed or configured to execute the steps of an enterprise information extraction method as described in Example 1 or the steps of an enterprise graph construction method as described in Example 2.

[0185] The present invention also provides a computer-readable storage medium storing a computer program programmed or configured to execute an enterprise information extraction method as described in Example 1 or an enterprise graph construction method as described in Example 2.

[0186] The techniques, shapes, and structural parts not described in detail in the present invention are all well-known techniques.

Claims

1. A method for extracting enterprise information, characterized in that: The following steps are involved: S1, after deduplication, the financial information captured from various platforms is stored in the local database, and the local database sends the newly added financial information to the text preprocessing module for preprocessing to obtain the financial text; S2, sending demand A to the specific task unit in the adjustment module. The specific task unit generates a specific task based on demand A and the optimization unit in the adjustment module. The large language model sequentially retrieves financial texts from the text preprocessing module based on the specific task, extracts keywords from the financial texts to form structured enterprise information. A piece of corporate information consists of several keywords; S3, each piece of enterprise information enters the screening module, which calculates the similarity between each piece of enterprise information and the current specific task, and outputs the enterprise information with a similarity above the set value as qualified enterprise information to the technical staff; at the same time, the qualified enterprise information is sent to the optimization unit in the adjustment module by the screening module to calculate the joint loss function, and then returns to S2. The optimization unit optimizes various parameters in the specific task and the large language model based on the joint loss function. The large language model after optimizing the parameters extracts keywords from the new financial text based on the optimized specific task to form structured enterprise information; S2 also includes the following sub-steps: S21, manually select a number of financial texts and annotate the keywords used to form corporate information in these financial texts, use the financial texts with manually annotated keywords as a pre-training data set, and after the large language model is pre-trained based on the training set, the prompt module in the large language model constructs a preliminary prompt text template. In the large language model, the prompt module generates a prompt text T1 according to the prompt text template and the financial text. The large language model extracts keywords from each financial text based on the prompt of the prompt text T1 to form structured enterprise information. S22, the technician sets requirement A, and sends requirement A to the specific task unit in the adjustment module. The specific task unit generates a specific task according to requirement A and the output of the optimization unit in the adjustment module, and adjusts the parameters of the Prompt text template of the prompt module in the large language model through the P-Tuning fine-tuning method based on the current specific task, and introduces the current specific task into the prompt module. The prompt module uses the adjusted Prompt text template to generate a prompt text T2 with specific constraints according to the current specific task; the large language model retrieves the financial text from the text preprocessing module in the order of numbers, and extracts keywords from the currently retrieved financial text based on the prompt text T2 to form structured enterprise information; S3 also includes the following sub-steps: S31, the large language model binds the enterprise information with the financial text number of the current enterprise information and sends it to the screening module, records any enterprise information as W(i), and records the b keywords contained in the enterprise information W(i) as W(i)={W i1 ,...,W ia ,...,W ib }, Wherein, 1≤a≤b, and a and b are positive integers, the screening module retrieves the financial text x of the current enterprise information W(i) in the text preprocessing module according to the financial text number; At the same time, the screening module retrieves the current specific task k from the specific task unit, and based on machine learning, uses the pre-trained language model combined with the conditional random field to segment the current specific task k and remove repeated words to obtain n task words, forming the task phrase R(k) of the specific task k: R(k) = {R k1 ,...,R kd ,...,R kn }, where R kd represents the dth task word in the current task word group R(k), 1≤d≤n, and d and n are both positive integers; S32, the screening module calculates the word frequency and the inverse document frequency of each keyword in the enterprise information W(i) in the corresponding financial text x, and calculates the weight of each keyword in the current enterprise information W(i) in the current financial text x based on the word frequency and the inverse document frequency; at the same time, the screening module calculates the word frequency and the inverse document frequency of each task word in the current task phrase R(k), and calculates the weight of each task word in the current task phrase R(k) based on the word frequency and the inverse document frequency, and then calculates the similarity between the current task phrase R(k) and the enterprise information W(i) according to the weight of each keyword in the enterprise information W(i) and the weight of each task word in the current task phrase R(k), and outputs the enterprise information with a similarity above the set value as qualified enterprise information to the technicians and the optimization unit; S33, the optimization unit calculates the joint loss function L in real time based on the received qualified enterprise information total (θ): L total (θ)=L pretrain (θ)+λ·L task (i) Among them, L pretrain (θ) is the large language model loss function calculated last time using qualified enterprise information, L task (θ) is the loss function of the large language model based on a specific task calculated using the current qualified enterprise information, λ is a specific loss hyperparameter, which is set manually, and θ represents the parameter set in the large language model. Towards the joint loss function L total (θ) The gradient of the specific task unit is decreased to optimize the specific task and various parameters in the large language model. The parameters in the large language model include the parameters of the Prompt text template of the prompt module, etc., that is, returning to S22, the specific task and the large language model with optimized parameters are used to extract keywords from the new financial text to form corporate information that better meets the requirement A.

2. A method for extracting enterprise information according to claim 1, characterized in that: S1 also includes the following sub-steps: S11, when the captured financial information is in a foreign language or contains abbreviations, the foreign financial information or abbreviations are translated into Chinese and then compared with the financial information stored in the local database. If the current captured financial information is repeated with the financial information stored in the local database, the current financial information is discarded; otherwise, the current captured financial information is sent to the local database for storage; Financial information includes financial news, corporate annual reports, and corporate business information; S12, the local database sends the newly added financial information to the text preprocessing module, and the text preprocessing module performs synonym replacement on each financial information, that is, replaces the words in each financial information with standard words according to the synonym standard word list; S13, the text preprocessing module performs regular expression on the financial information after synonym replacement, and the regular expression removes noise content in the financial information by matching the financial information with a regular expression template to form a financial text, and the financial text is numbered in chronological order and stored; Noise content includes blank characters, underscores, charts, formulas, image addresses, and web page tags.

3. A method for extracting enterprise information according to claim 2, characterized in that: S32 also includes the following sub-steps: S321, the screening module is based on machine learning, and uses a pre-trained language model combined with a conditional random field to segment each financial text in the text preprocessing module, and obtains a vocabulary set for each financial text. The vocabulary set corresponding to the financial text x is recorded as P(x)={P x1 ,...,P xc ,...,P xd }, 1≤c≤d, and c and d are positive integers, P xc represents the cth word in the vocabulary set P(x), The filtering module retains only once the words that appear repeatedly in the word set P(x), forming the corresponding word set F(x) = {F x1 ,...,F xc ,...,F xm }, F xc represents the cth candidate keyword in the word set F(x), 1≤c≤m≤f, and c, m, f are positive integers. Calculate the frequency of each keyword in the enterprise information W(i) in the corresponding financial text x: TF(W ia )=E ia / d, Among them, TF(W ia ) represents the keyword W in the enterprise information W(i) ia The frequency of words appearing in the financial text x, E ia Indicates keyword W ia The number of times it appears in the corresponding vocabulary set P(x), d represents the total number of words contained in the vocabulary set P(x), The screening module records the total number of all vocabulary sets g in the current text preprocessing module, and respectively records the number of vocabulary sets that contain each keyword in the current enterprise information W(i) in these g vocabulary sets, including the keyword W ia The number of word sets is recorded as H ia , calculate the current keyword W ia The inverse document frequency IDF(W ia ): IDF(W ia )=[log2(g)-log2(H ia )], Calculate the weight of each keyword in the current enterprise information W(i) in the current financial text x: TF-IDF(W ia )=TF(W ia )×IDF(W ia )=(E ia / d)×[log2(g)-log2(H ia )], Among them, TF-IDF(W ia ) represents the keyword W in the current enterprise information W(i) ia The weight in the financial text x, Vectorize the current enterprise information W(i): V[W(i)] = {V wi1 ,...,V wia ,...,V wib }, Among them, V[W(i)] is the vectorized representation of the current enterprise information W(i). The number of dimensions in V[W(i)] is the same as the number of patent keywords in the current enterprise information W(i), and each dimension in V[W(i)] corresponds one-to-one to the keywords in the current enterprise information W(i). wia represents the value of the ath dimension in V[W(i)], V wia The value of the keyword W ia The weighted TF-IDF (W ia ); At the same time, the screening module records the total number of vocabulary sets g in the current text preprocessing module, and respectively records the number of vocabulary sets that contain each task word in the current task phrase R(k) in these g vocabulary sets, as well as the number of times each task word in the current task phrase R(k) appears in each vocabulary set in the current text preprocessing module, and calculates the word frequency of each task word in the current task phrase R(k): Where P(y) represents the vocabulary set corresponding to the financial text y, and the vocabulary set P(y) is one of the g vocabulary sets contained in the current text preprocessing module. kd |P(y)] represents the task word R kd The frequency of words in the vocabulary set P(y), E[R kd |P(y)] represents the task word R kd The number of times it appears in the vocabulary set P(y), f[P(y)] represents the total number of words contained in the vocabulary set P(y), Calculate the inverse document frequency of each task word in the current task word group R(k): IDF(R kd )={log2(g)-log2[H(R kd )]}, Among them, IDF(R kd ) represents the task word R kd The inverse document frequency of the g vocabulary sets contained in the current text preprocessing module, H(R kd ) indicates that the g vocabulary sets in the current text preprocessing module contain the task word R kd The number of vocabulary sets, Calculate the weight of each task word in the current task phrase R(k) in the g vocabulary sets contained in the current text preprocessing module: Among them, TF-IDF[R kd |P(y)] represents the task word R in the current task phrase R(k) kd The weights in the vocabulary set P(y) contained in the current text preprocessing module, Vectorize the current task phrase R(k): V[R(k)|P(y)]={V[R k1 |P(y)],...,V[R kd |P(y)],...,V[R kn |P(y)]}, Among them, V[R(k)|P(y)] is the vectorized representation of the current task phrase R(k) based on the vocabulary set P(y). The number of dimensions in V[R(k)|P(y)] is the same as the number of task words in the current task phrase R(k), both of which are n dimensions. Moreover, each dimension in V[R(k)|P(y)] corresponds one-to-one to the task words in the current task phrase R(k). kd |P(y)] represents the value of the dth dimension in V[R(k)|P(y)], V[R kd The value of |P(y)] is the task word R kd The weighted TF-IDF [Rkd|P(y)] in the vocabulary set P(y) contained in the current text preprocessing module; S322, the screening module calculates the similarity between the current task phrase R(k) and the current enterprise information W(i): Among them, Simi[R(k),W(i)] represents the similarity between the current task phrase R(k) and the current enterprise information W(i), G represents all the vocabulary sets contained in the current text preprocessing module, If Simi[R(k),W(i)] is above the set value, the current enterprise information W(i) is qualified enterprise information, and the screening module outputs the qualified enterprise information to the technicians and the optimization unit.

4. A method for extracting enterprise information according to any one of claims 1 to 3, characterized in that: Each piece of enterprise information is composed of several keywords, including entity name, relationship between entities, and duration of relationship between entities. Entities include enterprises, products, technologies, and fields. Relationship between entities includes the field in which the enterprise is located, the products produced by the enterprise, the technologies produced by the enterprise, the suppliers of the enterprise, the fields potentially involved by the enterprise, and the potential suppliers of the enterprise.

5. A method for constructing an enterprise graph, characterized in that: The enterprise graph construction method is applied after the enterprise information extraction method as claimed in claim 4, further comprising S4: S4, merging the same entities in the outputted qualified enterprise information to form an enterprise map, and continuously using the newly generated qualified enterprise information to update the enterprise map.

6. A method for constructing an enterprise graph according to claim 5, characterized in that: S4 specifically includes the following: Merge the same entities in each qualified enterprise information to form an enterprise map; If the entities included in the newly generated qualified enterprise information already exist in the current enterprise map, but the relationship between the entities is different from the corresponding relationship between the entities already existing in the current enterprise map, then the relationship between the entities in the current qualified enterprise information and / or the duration of the relationship between the entities are added to the corresponding entities in the current enterprise map; If the entities contained in the newly generated qualified enterprise information already exist in the current enterprise graph, and the relationships between the entities are the same as the corresponding relationships between the entities already existing in the current enterprise graph, then determine whether the duration of the entity relationships contained in the current qualified enterprise information is the same as that in the current enterprise graph. If the corresponding entity relationships in the current enterprise graph have no duration or the end time of the duration is earlier than the end time of the duration in the current qualified enterprise information, then replace the corresponding entity relationship duration in the current enterprise graph with the duration in the current qualified enterprise information to update the current enterprise graph; if the end time of the corresponding entity relationship duration in the current enterprise graph is later than the end time of the duration in the current qualified enterprise information, or there is no entity relationship duration in the current qualified enterprise information, then discard the current qualified enterprise information.

7. An enterprise graph construction system, characterized in that: include: Capture module, local database, text preprocessing module, adjustment module, large language model, screening module, graph construction module, The capture module is used to capture financial information from various platforms and remove the duplicate financial information in the local database before sending it to the local database for storage; The local database is used to store the financial information sent by the crawling module and send the newly added financial information to the text preprocessing module; The text preprocessing module processes the financial information into financial text; The adjustment module includes a specific task unit and an optimization unit. The demand enters the specific task unit. The specific task unit forms or modifies the specific task based on the joint loss function calculated by the demand and the optimization unit. The specific task unit sends the specific task to the prompt module in the large language model. The optimization unit calculates a joint loss function using the qualified enterprise information output by the screening module, and optimizes the parameters in the specific task and the large language model based on the joint loss function; The prompt module in the large language model extracts keywords from the financial text retrieved from the text preprocessing module based on the specific tasks in the specific task unit to form structured corporate information and send it to the screening module; The screening module selects qualified enterprise information and outputs it to the technical staff, and at the same time sends the qualified enterprise information to the optimization unit and the map construction module; The graph construction module constructs an enterprise graph based on qualified enterprise information; Each module or unit is programmed or configured to execute the steps of a method for constructing an enterprise map as described in claim 6.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program that is programmed or configured to execute the enterprise map construction method as described in claim 6.