Automatic enterprise discount declaration method and system based on web crawler
Features are extracted through network crawler collection and Text-Rank algorithm, combined with the matching model of multi-marking classification algorithm, and solve the problem of enterprises automatically identifying and pushing declared discounts from massive discount information, real-time acquisition and automatic declaration of discount information. Ensure the timeliness and accuracy of information.
Patent Information
- Application Number
- CN202410917791.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-11-01
AI Technical Summary
It is difficult for enterprises to obtain and automatically declare appropriate discount information from massive discount information in real time, resulting in lagging information acquisition and untimely declaration.
The network crawler-based method is used to collect discount information, extract features using the Text-Rank algorithm, and establish a matching model through a multi-mark classification algorithm, and optimize the matching model to automatically push the discount information that enterprises can declare.
Real-time acquisition and automatic declaration of enterprise discount information is realized, the timeliness and accuracy of information is ensured, the tedious work of manual search is reduced, and misreports are avoided.
Smart Images

Figure CN118886955A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of natural language processing, and in particular to a method and system for automatically declaring corporate preferential treatment based on a web crawler. Background Art
[0002] In recent years, a large number of preferential information and measures have emerged to encourage innovation and entrepreneurship. With the continuous development of mass entrepreneurship and innovation, innovation and entrepreneurship have been promoted to a larger scale, higher level and deeper degree. Innovation and entrepreneurship have also been deeply integrated with economic development, playing a huge role in upgrading the economic structure, expanding employment and improving people's livelihood.
[0003] With the continuous improvement and deepening of preferential information, a series of preferential subsidy measures are issued every year to provide enterprises with multiple preferential support such as financial rewards, tax reductions and exemptions, and loan interest subsidies. These preferential supports not only help enterprises alleviate financial pressure, but also create a better development environment for enterprises. Various preferential information is released through the government and relevant departments’ portal websites. For enterprises and entrepreneurs, there is a problem of not being able to pay attention to and obtain such information in real time, that is, they do not know what preferential policies are available and the lag in obtaining preferential policies. When there is preferential information, enterprises also need to arrange special personnel to conduct research and analyze which ones can be applied for and which ones cannot be applied for because they do not meet the requirements.
[0004] Therefore, how to find the preferential treatment that enterprises can apply for from the massive amount of preferential information and push it to the enterprises for application in a timely manner is a technical problem that needs to be solved urgently. Summary of the invention
[0005] The technical task of the present invention is to provide a method and system for automatically declaring corporate preferential treatment based on a web crawler, so as to solve the problem of how to find preferential treatment that can be claimed by enterprises from massive preferential information and push it to enterprises for declaration in a timely manner.
[0006] The technical task of the present invention is achieved in the following way: a method for automatically declaring corporate preferential treatment based on a web crawler, the method is as follows:
[0007] Establish preferential information file library: Use web crawler technology to collect information on corporate preferential applications on the Internet, and compile and organize it into a preferential information file library;
[0008] Establishing enterprise archives: Enterprises shall organize their own enterprise names, registration time, enterprise types, locations, industries, business scopes, business scales and staff size to form enterprise archives;
[0009] Data preprocessing: preprocess the collected preferential information and store the preprocessed data in the database;
[0010] Feature extraction: Use the Text-Rank algorithm to extract the preferential features of the pre-processed preferential content, and extract the features of the enterprise information in the enterprise archive as the data to be marked;
[0011] Establish a matching model: perform collision matching between the preferential information file library and the enterprise archive library to generate a matching model; and use a multi-label classification algorithm to convert the preferential information and enterprise matching problem into a multi-comparison classification problem;
[0012] Matching model optimization: The matching model is trained multiple times through ten-fold cross-validation, and the matching model is continuously optimized to make the matching performance more stable;
[0013] Automatic declaration information push: According to actual needs, set the push frequency of automatic declaration information, and automatically obtain preferential information, automatically perform declaration matching, and automatically push the matching results to users based on the push frequency.
[0014] As a preference, information on the preferential application of enterprises on the Internet is collected, including the title, text, release time, release agency, release website and attachments of the preferential information;
[0015] Among them, when collecting information about corporate preferential applications on the Internet for the first time, full collection will be carried out; in the subsequent period, incremental collection will be carried out on a daily basis.
[0016] As a preference, data preprocessing is specifically as follows:
[0017] Clean the collected preferential information;
[0018] Remove duplication from the collected preferential information;
[0019] Eliminate redundant data, dirty data, and noisy data.
[0020] As a preference, the feature extraction of the pre-processed preferential data includes application time, application conditions, subsidy method and application channel;
[0021] The application conditions are extracted in more detail, including the location, industry, enterprise size and qualification requirements of the subsidized enterprise.
[0022] As a preferred method, the Text-Rank algorithm is used to extract preferential features from the preprocessed preferential content as follows:
[0023] Text preprocessing: clean text data, remove irrelevant characters, punctuation marks and stop words; and perform word segmentation to divide the text into separate words;
[0024] Build a graph structure: create an undirected graph in which each node represents a sentence or word; for each pair of sentences or words, calculate the similarity between each pair of sentences or words; if the similarity is greater than any threshold, add an edge to the graph to indicate that there is a relationship between the corresponding two nodes;
[0025] Calculate the importance score of the node: Initially, assign an equal weight to each node; iteratively run the PageRank algorithm to calculate the importance score of the node, which is used to find the most important sentences or words in the text. Sentences or words have higher PageRank scores in the graph;
[0026] Select summary or keywords: After calculating the PageRank scores of all nodes, select text summary or keywords based on the scores; for text summary, select the sentence with the highest score as the summary; for keyword extraction, select the word with the highest score as the keyword;
[0027] Output results: The selected sentences are combined into a text summary, or the selected words are extracted as keywords.
[0028] Preferably, a multi-label classification algorithm is used to convert the problem of matching preferential information with enterprises into a multi-comparison classification problem as follows:
[0029] The extracted preferential features are used as classification marks, and the extracted enterprise archive feature data are used as the data to be marked to obtain the training samples required for classification, which are expressed as x1 = [x11, x12, x13, ..., x1n], and the corresponding result set y = {L1, L2, ..., Lm}; where the mark L takes a value of 0 or 1, 0 means that the sample does not have the mark, and 1 means that the sample has the mark; the training samples are classified and learned using the classification algorithm to establish a classification (matching) model Y = f(x); for unknown samples x, the possible marks can be predicted according to the model, and the holding probability is calculated according to the probability. The greater the holding probability, the higher the correlation between the mark and the feature;
[0030] When used by enterprises or individuals, they can set the classification threshold of the classification model according to their own circumstances. If the threshold is reached, it means that they can apply for subsidies for this preferential policy.
[0031] A system for automatically declaring corporate preferential treatment based on a web crawler, the system is used to implement the above-mentioned method for automatically declaring corporate preferential treatment based on a web crawler; the system comprises:
[0032] A preferential information file library establishment module is used to collect information on corporate preferential applications on the Internet using web crawler technology, and to compile and organize it into a preferential information file library;
[0033] The enterprise archive establishment module is used by enterprises to organize the enterprise name, registration time, enterprise type, location, industry, business scope, business scale and staff size to form an enterprise archive;
[0034] The data preprocessing module is used to preprocess the collected preferential information and store the preprocessed data in the database;
[0035] The feature extraction module is used to extract the preferential features from the preprocessed preferential content using the Text-Rank algorithm, and to extract the features from the enterprise information in the enterprise archive as the data to be marked;
[0036] The matching model building module is used to perform collision matching between the preferential information file library and the enterprise archive library to generate a matching model; and use a multi-label classification algorithm to convert the preferential information and enterprise matching problem into a multi-comparison classification problem;
[0037] The matching model optimization module is used to train the matching model multiple times through ten-fold cross-validation, continuously optimize the matching model, and make the matching performance more stable;
[0038] The automatic declaration information push module is used to set the push frequency of automatic declaration information according to actual needs, and automatically obtain preferential information, automatically perform declaration matching, and automatically push the matching results to users according to the push frequency.
[0039] As a preference, information on the preferential application of enterprises on the Internet is collected, including the title, text, release time, release agency, release website and attachments of the preferential information;
[0040] Among them, when collecting information on corporate preferential applications on the Internet for the first time, full collection will be carried out; in the later stage, incremental collection will be carried out on a daily basis;
[0041] The data preprocessing module includes:
[0042] The cleaning submodule is used to clean the collected preferential information;
[0043] Remove submodules to deduplicate collected discount information;
[0044] Elimination submodule, used to eliminate redundant data, dirty data and noise data;
[0045] The feature extraction module includes:
[0046] The text preprocessing submodule is used to clean text data, remove irrelevant characters, punctuation marks and stop words, and perform word segmentation to divide the text into separate words;
[0047] The graph structure construction submodule is used to create an undirected graph in which each node represents a sentence or word. For each pair of sentences or words, the similarity between each pair of sentences or words is calculated. If the similarity is greater than any threshold, an edge is added to the graph to indicate that there is a relationship between the corresponding two nodes.
[0048] The node score calculation submodule is used to calculate the importance score of the node. Specifically, each node is assigned an equal weight initially; the PageRank algorithm is iteratively run to calculate the importance score of the node, which is used to find the most important sentences or words in the text. The sentences or words have higher PageRank scores in the graph.
[0049] The selection submodule is used to select abstracts or keywords. Specifically, after calculating the PageRank scores of all nodes, the text abstract or keyword is selected according to the score; for text abstract, the sentence with the highest score is selected as the abstract; for keyword extraction, the word with the highest score is selected as the keyword;
[0050] The output submodule is used to compose the selected sentences into a text summary or extract the selected words as keywords;
[0051] The automatic declaration information push module uses the extracted preferential features as classification labels and the extracted enterprise archive feature data as the data to be labeled to obtain the training samples required for classification, which is expressed as x1=[x11,x12,x13,…,x1n], and the corresponding result set y={L1,L2,…,Lm}; wherein the label L takes a value of 0 or 1, 0 indicates that the sample does not have the label, and 1 indicates that the sample has the label; the training samples are classified and learned using the classification algorithm to establish a classification (matching) model Y=f(x); for unknown samples x, the model can predict the labels they may have, and calculate the holding probability based on the probability. The greater the holding probability, the higher the correlation between the label and the feature; when used by enterprises or individuals, the classification threshold of the classification model is set according to their own situation. If the threshold is reached, it means that the subsidy for the preferential treatment can be declared.
[0052] An electronic device comprising: a memory and at least one processor;
[0053] Wherein, the memory stores a computer program;
[0054] The at least one processor executes the computer program stored in the memory, so that the at least one processor executes the above-mentioned method for automatic declaration of corporate preferential treatment based on web crawlers.
[0055] A computer-readable storage medium stores a computer program, which can be executed by a processor to implement the above-mentioned method for automatically declaring corporate preferential treatment based on a web crawler.
[0056] The method and system for automatically declaring corporate preferential treatment based on a web crawler of the present invention have the following advantages:
[0057] (1) The present invention uses web crawlers to collect preferential information content, and users can obtain the latest preferential information from the Internet in real time, eliminating a lot of tedious work of manual search; because the system can be set to execute on a scheduled basis, the timeliness of preferential information and the timeliness of push are guaranteed, ensuring that enterprises will not miss or misreport;
[0058] (ii) The present invention utilizes web crawler technology to obtain the latest preferential information on the Internet in real time, thereby ensuring the timeliness of obtaining preferential information; then utilizes the Text-Rank algorithm to extract features from preferential information and enterprise information; then utilizes the multi-label classification algorithm to train the matching model, and generates an automatic declaration of enterprise preferential treatment, which is used to find the preferential treatment that can be declared by the enterprise from the massive preferential information database, and pushes it to the enterprise for declaration in a timely manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] The present invention is further described below in conjunction with the accompanying drawings.
[0060] Attached Figure 1 This is a schematic diagram of the automatic declaration method for corporate preferences based on a web crawler. DETAILED DESCRIPTION
[0061] The method and system for automatically declaring corporate preferential treatment based on a web crawler of the present invention are described in detail below with reference to the accompanying drawings and specific embodiments of the specification.
[0062] Embodiment 1:
[0063] As attached Figure 1 As shown, this embodiment provides a method for automatically declaring corporate preferential treatment based on a web crawler, and the method is specifically as follows:
[0064] S1. Establish a preferential information file library: Use web crawler technology to collect information on corporate preferential applications on the Internet, and compile and organize it into a preferential information file library;
[0065] S2. Establishment of enterprise archives: Enterprises shall organize their own enterprise names, registration time, enterprise types, locations, industries, business scopes, business scales and staff size to form enterprise archives;
[0066] S3, data preprocessing: preprocess the collected preferential information and store the preprocessed data in the database;
[0067] S4. Feature extraction: Use the Text-Rank algorithm to extract the preferential features of the preprocessed preferential content, and extract the features of the enterprise information in the enterprise archive as the data to be marked;
[0068] S5. Establish a matching model: perform collision matching between the preferential information file library and the enterprise archive library to generate a matching model; and use a multi-label classification algorithm to convert the preferential information and enterprise matching problem into a multi-comparison classification problem;
[0069] S6. Matching model optimization: The matching model is trained multiple times through ten-fold cross validation, and the matching model is continuously optimized to make the matching performance more stable;
[0070] S7. Automatic declaration information push: According to actual needs, set the push frequency of automatic declaration information, and automatically obtain preferential information, automatically perform declaration matching, and automatically push the matching results to users based on the push frequency.
[0071] In this embodiment, the information collected on the Internet about the enterprise preferential application includes the title, text, release time, release agency, release website and attachments of the preferential information;
[0072] Among them, when collecting information about corporate preferential applications on the Internet for the first time, full collection will be carried out; in the subsequent period, incremental collection will be carried out on a daily basis.
[0073] The data preprocessing in step S3 of this embodiment is specifically as follows:
[0074] S301, cleaning the collected preferential information;
[0075] S302, removing duplicate collected preferential information;
[0076] S303, eliminating redundant data, dirty data and noise data.
[0077] In this embodiment, the feature extraction of the pre-processed preferential data includes the application time, application conditions, subsidy method and application channel;
[0078] The application conditions are extracted in more detail, including the location, industry, enterprise size and qualification requirements of the subsidized enterprise.
[0079] In step S4 of this embodiment, the Text-Rank algorithm is used to extract preferential features from the pre-processed preferential content as follows:
[0080] S401, text preprocessing: cleaning text data, removing irrelevant characters, punctuation marks and stop words; and performing word segmentation to divide the text into separate words;
[0081] S402, constructing a graph structure: creating an undirected graph, in which each node represents a sentence or a word; for each pair of sentences or words, calculating the similarity between each pair of sentences or words; if the similarity is greater than any threshold, adding an edge to the graph to indicate that there is a relationship between the corresponding two nodes;
[0082] S403, calculating the importance score of the node: initially, assigning an equal weight to each node; iteratively running the PageRank algorithm to calculate the importance score of the node, which is used to find the most important sentences or words in the text, and the sentences or words have higher PageRank scores in the graph;
[0083] S404, selecting abstracts or keywords: after calculating the PageRank scores of all nodes, selecting text abstracts or keywords according to the scores; for text abstracts, selecting the sentence with the highest score as the abstract; for keyword extraction, selecting the word with the highest score as the keyword;
[0084] S405, outputting results: composing the selected sentences into a text summary, or extracting the selected words as keywords.
[0085] In step S5 of this embodiment, the multi-label classification algorithm is used to convert the preferential information and enterprise matching problem into a multi-comparison classification problem as follows:
[0086] The extracted preferential features are used as classification marks, and the extracted enterprise archive feature data are used as the data to be marked to obtain the training samples required for classification, which are expressed as x1 = [x11, x12, x13, ..., x1n], and the corresponding result set y = {L1, L2, ..., Lm}; where the mark L takes a value of 0 or 1, 0 means that the sample does not have the mark, and 1 means that the sample has the mark; the training samples are classified and learned using the classification algorithm to establish a classification (matching) model Y = f(x); for unknown samples x, the possible marks can be predicted according to the model, and the holding probability is calculated according to the probability. The greater the holding probability, the higher the correlation between the mark and the feature;
[0087] When used by enterprises or individuals, they can set the classification threshold of the classification model according to their own circumstances. If the threshold is reached, it means that they can apply for subsidies for this preferential policy.
[0088] Web crawlers are programs or scripts that automatically crawl the World Wide Web according to certain rules. They are widely used in Internet search engines or other similar websites. They can automatically collect all the page contents they can access to obtain or update the content and retrieval methods of these websites. Web crawlers can easily obtain data from specified web pages. They can crawl the public data of websites, model and analyze the data, and generate data reports that are beneficial to themselves.
[0089] The TextRank algorithm is a graph-based sorting algorithm for text. Its basic idea comes from Google's PageRank algorithm. By dividing the text into several components (words, sentences) and building a graph model, the voting mechanism is used to sort the important components in the text. Only the information of a single document can be used to extract keywords and abstracts. Unlike models such as LDA and HMM, TextRank does not require prior learning and training of multiple documents. It is widely used because of its simplicity and effectiveness. The TextRank algorithm first performs a word segmentation operation on the provided sentence, and the obtained word segments are put into a set. The importance of the word segmentation mainly depends on how many neighbors the word has before and after. The more neighbors, the more votes the word has, the higher the weight, and the more important it is. The more the word appears, the more neighbors it has; the closer the word is in the middle (compared to the beginning and the end), the more neighbors it has. The main uses of the TextRank algorithm are two aspects. One is to extract the more important keywords in the text, and the other is to select which keyword appears more frequently in a paragraph.
[0090] The multi-label learning problem is a research hotspot in the field of international machine learning. It originally originated from the ambiguous problem encountered in document classification problems. In the traditional supervised learning framework, there is a one-to-one correspondence between real-world objects and their conceptual labels. It is generally believed that such learning problems are unambiguous. We call this type of problem a single-label classification problem, that is, a sample has only a single label. However, in real-world problems, ambiguous objects are widely present. Due to the existence of ambiguous problems, a sample may be associated with multiple labels. This type of problem is a multi-label classification problem. Multi-label learning has a wide range of applications in real life, such as automatic video annotation, bioinformatics, Web mining, information retrieval, personalized recommendations and other real-world applications.
[0091] Embodiment 2:
[0092] This embodiment provides a system for automatically declaring corporate benefits based on a web crawler, which is used to implement the method for automatically declaring corporate benefits based on a web crawler in Embodiment 1; the system includes:
[0093] A preferential information file library establishment module is used to collect information on corporate preferential applications on the Internet using web crawler technology, and to compile and organize it into a preferential information file library;
[0094] The enterprise archive establishment module is used by enterprises to organize the enterprise name, registration time, enterprise type, location, industry, business scope, business scale and staff size to form an enterprise archive;
[0095] The data preprocessing module is used to preprocess the collected preferential information and store the preprocessed data in the database;
[0096] The feature extraction module is used to extract the preferential features from the preprocessed preferential content using the Text-Rank algorithm, and to extract the features from the enterprise information in the enterprise archive as the data to be marked;
[0097] The matching model building module is used to perform collision matching between the preferential information file library and the enterprise archive library to generate a matching model; and use a multi-label classification algorithm to convert the preferential information and enterprise matching problem into a multi-comparison classification problem;
[0098] The matching model optimization module is used to train the matching model multiple times through ten-fold cross-validation, continuously optimize the matching model, and make the matching performance more stable;
[0099] The automatic declaration information push module is used to set the push frequency of automatic declaration information according to actual needs, and automatically obtain preferential information, automatically perform declaration matching, and automatically push the matching results to users according to the push frequency.
[0100] In this embodiment, the information collected on the Internet about the enterprise preferential application includes the title, text, release time, release agency, release website and attachments of the preferential information;
[0101] Among them, when collecting information about corporate preferential applications on the Internet for the first time, full collection will be carried out; in the subsequent period, incremental collection will be carried out on a daily basis.
[0102] The data preprocessing module in this embodiment includes:
[0103] The cleaning submodule is used to clean the collected preferential information;
[0104] Remove submodules to deduplicate collected discount information;
[0105] The elimination submodule is used to eliminate redundant data, dirty data and noise data.
[0106] The feature extraction module in this embodiment includes:
[0107] The text preprocessing submodule is used to clean text data, remove irrelevant characters, punctuation marks and stop words, and perform word segmentation to divide the text into separate words;
[0108] The graph structure construction submodule is used to create an undirected graph in which each node represents a sentence or word. For each pair of sentences or words, the similarity between each pair of sentences or words is calculated. If the similarity is greater than any threshold, an edge is added to the graph to indicate that there is a relationship between the corresponding two nodes.
[0109] The node score calculation submodule is used to calculate the importance score of the node. Specifically, each node is assigned an equal weight initially; the PageRank algorithm is iteratively run to calculate the importance score of the node, which is used to find the most important sentences or words in the text. The sentences or words have higher PageRank scores in the graph.
[0110] The selection submodule is used to select abstracts or keywords. Specifically, after calculating the PageRank scores of all nodes, the text abstract or keyword is selected according to the score; for text abstract, the sentence with the highest score is selected as the abstract; for keyword extraction, the word with the highest score is selected as the keyword;
[0111] The output submodule is used to compose the selected sentences into a text summary, or to extract the selected words as keywords.
[0112] The automatic declaration information push module in this embodiment uses the extracted preferential features as classification marks and the extracted enterprise archive feature data as the data to be marked to obtain the training samples required for classification, which are expressed as x1=[x11,x12,x13,…,x1n], and the corresponding result set y={L1,L2,…,Lm}; wherein the mark L takes a value of 0 or 1, 0 indicates that the sample does not have the mark, and 1 indicates that the sample has the mark; the training samples are classified and learned using the classification algorithm to establish a classification (matching) model Y=f(x); for unknown samples x, the possible marks can be predicted according to the model, and the holding probability is calculated according to the probability. The greater the holding probability, the higher the correlation between the mark and the feature; when used by an enterprise or individual, the classification threshold of the classification model is set according to its own situation. If the threshold is reached, it means that the subsidy for the preferential treatment can be declared.
[0113] Embodiment 3:
[0114] This embodiment also provides an electronic device, including: a memory and at least one processor;
[0115] Wherein, the memory stores computer-executable instructions;
[0116] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the method for automatic declaration of corporate preferential treatment based on a web crawler in any embodiment of the present invention.
[0117] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The processor may be a microprocessor or any conventional processor, etc.
[0118] The memory can be used to store computer programs and / or modules. The processor realizes various functions of the electronic device by running or executing the computer programs and / or modules stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the terminal, etc. In addition, the memory can also include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SMC), a secure digital (SD) card, a flash memory card, at least one disk storage period, a flash memory device, or other volatile solid-state storage devices.
[0119] Embodiment 4:
[0120] This embodiment also provides a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions are loaded by a processor, so that the processor executes the method for automatically declaring corporate preferential treatment based on a web crawler in any embodiment of the present invention. Specifically, a system or device equipped with a storage medium can be provided, on which a software program code for implementing the functions of any of the above embodiments is stored, and a computer (or CPU or MPU) of the system or device reads and executes the program code stored in the storage medium.
[0121] In this case, the program code itself read from the storage medium can realize the function of any one of the above-mentioned embodiments, and thus the program code and the storage medium storing the program code constitute a part of the present invention.
[0122] The storage medium embodiments for providing the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RYM, DVD-RW, DVD+RW), a magnetic tape, a non-volatile memory card, and a ROM. Alternatively, the program code can be downloaded from a server computer via a communication network.
[0123] In addition, it should be clear that the functions of any of the above embodiments can be implemented not only by executing the program code read by the computer, but also by enabling an operating system operating on the computer to complete part or all of the actual operations based on instructions from the program code.
[0124] In addition, it can be understood that the program code read from the storage medium is written to a memory provided in an expansion board inserted into the computer or written to a memory provided in an expansion unit connected to the computer, and then based on the instructions of the program code, a CPU installed on the expansion board or the expansion unit is enabled to perform part or all of the actual operations, thereby realizing the functions of any of the above-mentioned embodiments.
[0125] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for automatically declaring corporate preferential treatment based on a web crawler, characterized in that: The method is as follows: Establish preferential information file library: Use web crawler technology to collect information on corporate preferential applications on the Internet, and compile and organize it into a preferential information file library; Establishing enterprise archives: Enterprises shall organize their own enterprise names, registration time, enterprise types, locations, industries, business scopes, business scales and staff size to form enterprise archives; Data preprocessing: preprocess the collected preferential information and store the preprocessed data in the database; Feature extraction: Use the Text-Rank algorithm to extract the preferential features of the pre-processed preferential content, and extract the features of the enterprise information in the enterprise archive as the data to be marked; Establish a matching model: perform collision matching between the preferential information file library and the enterprise archive library to generate a matching model; and use a multi-label classification algorithm to convert the preferential information and enterprise matching problem into a multi-comparison classification problem; Matching model optimization: The matching model is trained multiple times through ten-fold cross-validation, and the matching model is continuously optimized to make the matching performance more stable; Automatic declaration information push: According to actual needs, set the push frequency of automatic declaration information, and automatically obtain preferential information, automatically perform declaration matching, and automatically push the matching results to users based on the push frequency.
2. The method for automatically declaring corporate preferential treatment based on a web crawler according to claim 1, characterized in that: Collect information on corporate preferential applications on the Internet, including the title, text, release time, release agency, release website and attachments of preferential information; Among them, when collecting information about corporate preferential applications on the Internet for the first time, full collection will be carried out; in the subsequent period, incremental collection will be carried out on a daily basis.
3. The method for automatically declaring corporate preferential treatment based on a web crawler according to claim 1, characterized in that: The data preprocessing is as follows: Clean the collected preferential information; Remove duplicate collected discount information; Eliminate redundant data, dirty data, and noisy data.
4. The method for automatically declaring corporate preferential treatment based on a web crawler according to claim 1, characterized in that: The feature extraction of the pre-processed preferential data includes application time, application conditions, subsidy method and application channel; The application conditions are extracted item by item, including the location of the subsidized enterprise, the industry it belongs to, the size of the enterprise and the qualifications requirements.
5. The method for automatically declaring corporate preferential treatment based on a web crawler according to claim 1, characterized in that: The Text-Rank algorithm is used to extract preferential features from the preprocessed preferential content as follows: Text preprocessing: clean text data, remove irrelevant characters, punctuation marks and stop words; and perform word segmentation to divide the text into separate words; Build a graph structure: create an undirected graph where each node represents a sentence or word; for each pair of sentences or words, calculate the similarity between each pair of sentences or words; If the similarity is greater than any threshold, an edge is added to the graph to indicate that there is a relationship between the corresponding two nodes; Calculate the importance score of the node: Initially, assign an equal weight to each node; Iteratively run the PageRank algorithm to calculate the importance scores of the nodes, which is used to find the most important sentences or words in the text. Sentences or words have higher PageRank scores in the graph; Select summary or keywords: After calculating the PageRank scores of all nodes, select text summary or keywords based on the scores; for text summary, select the sentence with the highest score as the summary; for keyword extraction, select the word with the highest score as the keyword; Output results: The selected sentences are combined into a text summary, or the selected words are extracted as keywords.
6. The method for automatically declaring corporate preferential treatment based on a web crawler according to any one of claims 1 to 5, characterized in that: Using the multi-label classification algorithm, the problem of matching preferential information with enterprises is converted into a multi-comparison classification problem as follows: The extracted preferential features are used as classification marks, and the extracted enterprise archive feature data are used as the data to be marked to obtain the training samples required for classification, which are expressed as x1 = [x11, x12, x13, ..., x1n], and the corresponding result set y = {L1, L2, ..., Lm}; where the label L takes a value of 0 or 1, 0 means that the sample does not have the label, and 1 means that the sample has the label; the training samples are classified and learned using the classification algorithm to establish a classification model Y = f(x); for unknown samples x, the possible labels can be predicted according to the model, and the holding probability is calculated according to the probability. The greater the holding probability, the higher the correlation between the label and the feature; When used by enterprises or individuals, they can set the classification threshold of the classification model according to their own circumstances. If the threshold is reached, it means that they can apply for subsidies for this preferential policy.
7. An automatic enterprise preferential declaration system based on web crawlers, characterized in that: The system is used to implement the method for automatically declaring corporate preferential treatment based on a web crawler as described in any one of claims 1 to 6; the system comprises: A preferential information file library establishment module is used to collect information on corporate preferential applications on the Internet using web crawler technology, and to compile and organize it into a preferential information file library; The enterprise archive establishment module is used by enterprises to organize the enterprise name, registration time, enterprise type, location, industry, business scope, business scale and staff size to form an enterprise archive; The data preprocessing module is used to preprocess the collected preferential information and store the preprocessed data in the database; The feature extraction module is used to extract the preferential features from the preprocessed preferential content using the Text-Rank algorithm, and to extract the features from the enterprise information in the enterprise archive as the data to be marked; The matching model building module is used to perform collision matching between the preferential information file library and the enterprise archive library to generate a matching model; and use a multi-label classification algorithm to convert the preferential information and enterprise matching problem into a multi-comparison classification problem; The matching model optimization module is used to train the matching model multiple times through ten-fold cross-validation, continuously optimize the matching model, and make the matching performance more stable; The automatic declaration information push module is used to set the push frequency of automatic declaration information according to actual needs, and automatically obtain preferential information, automatically perform declaration matching, and automatically push the matching results to users according to the push frequency.
8. The automatic enterprise preferential declaration system based on web crawler according to claim 7 is characterized in that: Collect information on corporate preferential applications on the Internet, including the title, text, release time, release agency, release website and attachments of preferential information; Among them, when collecting information on corporate preferential applications on the Internet for the first time, full collection will be carried out; in the later stage, incremental collection will be carried out on a daily basis; The data preprocessing module includes: The cleaning submodule is used to clean the collected preferential information; Remove submodules to deduplicate collected discount information; Elimination submodule, used to eliminate redundant data, dirty data and noise data; The feature extraction module includes: The text preprocessing submodule is used to clean text data, remove irrelevant characters, punctuation marks and stop words, and perform word segmentation to divide the text into separate words; The graph structure construction submodule is used to create an undirected graph in which each node represents a sentence or word. For each pair of sentences or words, the similarity between each pair of sentences or words is calculated. If the similarity is greater than any threshold, an edge is added to the graph to indicate that there is a relationship between the corresponding two nodes. The node score calculation submodule is used to calculate the importance score of the node. Specifically, each node is assigned an equal weight initially; the PageRank algorithm is iteratively run to calculate the importance score of the node, which is used to find the most important sentences or words in the text. The sentences or words have higher PageRank scores in the graph. The selection submodule is used to select abstracts or keywords. Specifically, after calculating the PageRank scores of all nodes, the text abstract or keyword is selected according to the score; for text abstract, the sentence with the highest score is selected as the abstract; for keyword extraction, the word with the highest score is selected as the keyword; The output submodule is used to compose the selected sentences into a text summary or extract the selected words as keywords; The automatic declaration information push module uses the extracted preferential features as classification labels and the extracted enterprise archive feature data as the data to be labeled to obtain the training samples required for classification, which is expressed as x1=[x11,x12,x13,…,x1n], and the corresponding result set y={L1,L2,…,Lm}; wherein the label L takes a value of 0 or 1, 0 indicates that the sample does not have the label, and 1 indicates that the sample has the label; the training samples are classified and learned using the classification algorithm to establish a classification model Y=f(x); for unknown samples x, the model can predict the labels they may have, and calculate the probability of holding according to the probability. The greater the probability of holding, the higher the correlation between the label and the feature; when used by enterprises or individuals, the classification threshold of the classification model is set according to their own situation. If the threshold is reached, it means that the subsidy for the preferential treatment can be declared.
9. An electronic device, characterized in that: include: memory and at least one processor; Wherein, the memory stores a computer program; The at least one processor executes the computer program stored in the memory, so that the at least one processor executes the method for automatic declaration of corporate preferential treatment based on a web crawler as described in any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which can be executed by a processor to implement the method for automatically declaring corporate preferential treatment based on a web crawler as described in any one of claims 1 to 6.
Citation Information
Cited By
Commodity sampling model construction method and computer readable storage medium
CN114841270A
Enterprise supply and demand information acquisition method, system, equipment and medium
CN119919167A
